Skip to content

Commit 204594a

Browse files
committed
fix TARGETPLATFORM
Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent e3cad25 commit 204594a

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ debian-% raspbian-% ubuntu-%: checkout ## build deb packages for the specified d
9595
static: DOCKER_BUILD_PKGS:=static-linux cross-mac cross-win cross-arm
9696
static: checkout ## build static-compiled packages
9797
for p in $(DOCKER_BUILD_PKGS); do \
98-
$(MAKE) -C $@ VERSION=$(VERSION) GO_VERSION=$(GO_VERSION) TARGETPLATFORM=$(TARGETPLATFORM) CONTAINERD_VERSION=$(CONTAINERD_VERSION) RUNC_VERSION=$(RUNC_VERSION) $${p}; \
98+
$(MAKE) -C $@ VERSION=$(VERSION) GO_VERSION=$(GO_VERSION) CONTAINERD_VERSION=$(CONTAINERD_VERSION) RUNC_VERSION=$(RUNC_VERSION) $${p}; \
9999
done
100100

101101
.PHONY: verify

static/Makefile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,10 @@ ifneq ($(strip $(RUNC_VERSION)),)
2828
DOCKER_BUILD_OPTS +=--build-arg=RUNC_VERSION=$(RUNC_VERSION)
2929
endif
3030

31-
ifeq ($(strip $(TARGETPLATFORM)),)
32-
TARGETPLATFORM=local
33-
endif
31+
# doing this looks to be resetting the per-target variant (sigh)
32+
#ifeq ($(strip $(TARGETPLATFORM)),)
33+
#TARGETPLATFORM=local
34+
#endif
3435

3536
.PHONY: help
3637
help: ## show make targets
@@ -166,7 +167,7 @@ static-engine:
166167

167168
.PHONY: static-buildx-plugin
168169
static-buildx-plugin:
169-
cd $(BUILDX_DIR) && docker buildx bake --set binaries.platform=$(TARGETPLATFORM) binaries && mv ./bin/buildx ./bin/docker-buildx$(EXT)
170+
cd $(BUILDX_DIR) && docker buildx bake --set binaries.platform=$(TARGETPLATFORM) binaries && mv ./bin/buildx$(EXT) ./bin/docker-buildx$(EXT)
170171

171172
.PHONY: static-compose-plugin
172173
static-compose-plugin:

0 commit comments

Comments
 (0)