From b80bcd7ffa5a815334ead9c99c6b938c4d6b5a7b Mon Sep 17 00:00:00 2001 From: Christian Stewart Date: Sat, 29 Aug 2020 11:44:33 +0200 Subject: [PATCH] package/docker-cli: define _GOMOD variable In preparation for the go.mod integration, define the DOCKER_CLI_GOMOD variable. We also use it as a handy shortcut when defining DOCKER_CLI_LDFLAGS. Signed-off-by: Christian Stewart Signed-off-by: Thomas Petazzoni --- package/docker-cli/docker-cli.mk | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package/docker-cli/docker-cli.mk b/package/docker-cli/docker-cli.mk index 1466b0afbd..9ef1270137 100644 --- a/package/docker-cli/docker-cli.mk +++ b/package/docker-cli/docker-cli.mk @@ -15,10 +15,11 @@ DOCKER_CLI_DEPENDENCIES = host-pkgconf DOCKER_CLI_TAGS = autogen DOCKER_CLI_BUILD_TARGETS = cmd/docker +DOCKER_CLI_GOMOD = github.com/docker/cli DOCKER_CLI_LDFLAGS = \ - -X github.com/docker/cli/cli.GitCommit=$(DOCKER_CLI_VERSION) \ - -X github.com/docker/cli/cli.Version=$(DOCKER_CLI_VERSION) + -X $(DOCKER_CLI_GOMOD)/cli.GitCommit=$(DOCKER_CLI_VERSION) \ + -X $(DOCKER_CLI_GOMOD)/cli.Version=$(DOCKER_CLI_VERSION) ifeq ($(BR2_PACKAGE_DOCKER_CLI_STATIC),y) DOCKER_CLI_LDFLAGS += -extldflags '-static' -- 2.30.2