summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKubeEdge Bot <48982446+kubeedge-bot@users.noreply.github.com>2022-01-22 12:17:28 +0800
committerGitHub <noreply@github.com>2022-01-22 12:17:28 +0800
commit34f21a4b278f73ee75f84298ae6352c635b14002 (patch)
treef1c4b391c03f43463144410b1fad965f809010a7 /Makefile
parentMerge pull request #3570 from vincentgoat/fix_sync_error (diff)
parentsupport multi architecture image build (diff)
downloadkubeedge-34f21a4b278f73ee75f84298ae6352c635b14002.tar.gz
Merge pull request #3530 from gy95/crossimage
support multi architecture image build
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index ad35ea2d3..38d8654a8 100644
--- a/Makefile
+++ b/Makefile
@@ -324,6 +324,27 @@ image:
hack/make-rules/image.sh $(WHAT)
endif
+define CROSS_IMAGE_HELP_INFO
+# Use Buildx to build multi-architecture docker images.
+#
+# Args:
+# WHAT: component names to build. support: $(BINARIES)
+# If not specified, "everything" will be built.
+#
+# Example:
+# make crossbuildimage
+# make crossbuildimage HELP=y
+# make crossbuildimage WHAT=cloudcore
+endef
+.PHONY: crossbuildimage
+ifeq ($(HELP),y)
+crossbuildimage:
+ @echo "CROSS_IMAGE_HELP_INFO"
+else
+crossbuildimage:
+ hack/make-rules/crossbuildimage.sh $(WHAT)
+endif
+
define INSTALL_HELP_INFO
# install
#