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 (#2833)
Browse files Browse the repository at this point in the history
Signed-off-by: Rajas Kakodkar <[email protected]>
  • Loading branch information
rajaskakodkar authored Sep 29, 2020
1 parent 46a96ce commit d764cae
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
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 d764cae

Please sign in to comment.