From: Christian Stewart Date: Sat, 29 Aug 2020 09:44:33 +0000 (+0200) Subject: package/docker-cli: define _GOMOD variable X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b80bcd7ffa5a815334ead9c99c6b938c4d6b5a7b;p=buildroot.git 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 --- 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'