From 923e1647e8326a0efbcea9b22670e4e769bafede Mon Sep 17 00:00:00 2001 From: Marvin Giessing Date: Wed, 20 Apr 2022 21:32:44 +0200 Subject: [PATCH] Added support for ppc64le --- Makefile | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 7b6b8e90cb..34b3fea36f 100644 --- a/Makefile +++ b/Makefile @@ -26,13 +26,16 @@ else ifeq ($(arch), arm64) # arm64 BASE_DOCKER_SHA=${arm64} else ifeq ($(arch), aarch64) - # arm64 - BASE_DOCKER_SHA=${arm64} + # arm64 + BASE_DOCKER_SHA=${arm64} +else ifeq ($(arch), ppc64le) + # ppc64le + BASE_DOCKER_SHA=${ppc64le} else - echo >&2 "only support amd64 or arm64 arch" && exit 1 + echo >&2 "only support amd64, arm64 or ppc64le arch" && exit 1 endif -DOCKER_ARCHS ?= amd64 arm64 -# Generate two target: docker-xxx-amd64, docker-xxx-arm64. +DOCKER_ARCHS ?= amd64 arm64 ppc64le +# Generate two target: docker-xxx-amd64, docker-xxx-arm64, docker-xxx-ppc64le. # Run make docker-xxx -n to see the result with dry run. BUILD_DOCKER_ARCHS = $(addprefix docker-build-,$(DOCKER_ARCHS)) TEST_DOCKER_ARCHS = $(addprefix docker-test-,$(DOCKER_ARCHS)) @@ -157,7 +160,7 @@ ifeq ($(GIT_BRANCH), main) crossbuild: | $(PROMU) @echo ">> crossbuilding all binaries" # we only care about below two for the main branch - $(PROMU) crossbuild -v -p linux/amd64 -p linux/arm64 + $(PROMU) crossbuild -v -p linux/amd64 -p linux/arm64 -p linux/ppc64le else crossbuild: | $(PROMU) @echo ">> crossbuilding all binaries"