Skip to content
This repository has been archived by the owner on May 6, 2022. It is now read-only.

Commit

Permalink
Adding cross build support for s390x binary
Browse files Browse the repository at this point in the history
Signed-off-by: Rajas Kakodkar <rajas.kakodkar@ibm.com>
  • Loading branch information
rajaskakodkar committed Aug 5, 2020
1 parent f7c033d commit a077a62
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Makefile
Expand Up @@ -71,6 +71,7 @@ export GO111MODULE=on

ALL_ARCH=amd64 arm arm64 ppc64le s390x
ALL_CLIENT_PLATFORM=darwin linux windows
ALL_CLIENT_ARCHS=amd64 s390x

PLATFORM ?= linux
# This is the current platform, so that we can build a native client binary by default
Expand Down Expand Up @@ -437,7 +438,11 @@ svcat-install: svcat
svcat-all: $(addprefix svcat-for-,$(ALL_CLIENT_PLATFORM))

svcat-for-%:
$(MAKE) PLATFORM=$* VERSION=$(TAG_VERSION) svcat-xbuild
@if [ $(subst linux,,$*) ]; then \
$(MAKE) PLATFORM=$* VERSION=$(TAG_VERSION) svcat-xbuild; \
else \
$(foreach CLIENT_ARCH,$(ALL_CLIENT_ARCHS), $(MAKE) PLATFORM=$* VERSION=$(TAG_VERSION) ARCH=$(CLIENT_ARCH) svcat-xbuild;) \
fi

svcat-xbuild: $(BINDIR)/svcat/$(TAG_VERSION)/$(PLATFORM)/$(ARCH)/svcat$(FILE_EXT)
$(BINDIR)/svcat/$(TAG_VERSION)/$(PLATFORM)/$(ARCH)/svcat$(FILE_EXT): .init .generate_files
Expand Down

0 comments on commit a077a62

Please sign in to comment.