* [Buildroot] [git commit] package/docker-cli: define <pkg>_GOMOD variable
@ 2020-08-29 12:35 Thomas Petazzoni
0 siblings, 0 replies; only message in thread
From: Thomas Petazzoni @ 2020-08-29 12:35 UTC (permalink / raw)
To: buildroot
commit: https://git.buildroot.net/buildroot/commit/?id=b80bcd7ffa5a815334ead9c99c6b938c4d6b5a7b
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master
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 <christian@paral.in>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
---
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'
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-08-29 12:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-29 12:35 [Buildroot] [git commit] package/docker-cli: define <pkg>_GOMOD variable Thomas Petazzoni
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.