Skip to content

Commit 8616884

Browse files
authored
Merge pull request #52 from crazy-max/fix-platform
common: fix platform
2 parents 04f6e18 + dbe1b30 commit 8616884

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

common/build.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,6 @@ run-verify-%: platform pkg-info-%
6969
.PHONY: platform
7070
platform:
7171
$(eval $@_TMP_OUT := $(shell mktemp -d -t docker-packaging.XXXXXXXXXX))
72-
$(shell echo 'FROM busybox\nARG BUILDPLATFORM\nRUN mkdir /out && echo "$$BUILDPLATFORM" > /out/platform' | docker buildx build --platform linux/arm/v7 -q --output "$($@_TMP_OUT)" -)
72+
$(shell echo 'FROM busybox\nARG TARGETPLATFORM\nRUN mkdir /out && echo "$$TARGETPLATFORM" > /out/platform' | docker buildx build --platform local -q --output "$($@_TMP_OUT)" -)
7373
$(eval PLATFORM = $(shell cat $($@_TMP_OUT)/out/platform))
74-
rm -rf "$($@_TMP_OUT)"
74+
@rm -rf "$($@_TMP_OUT)"

0 commit comments

Comments
 (0)