Skip to content

Commit

Permalink
Set ARCH based on go env
Browse files Browse the repository at this point in the history
We had ARCH hard-coded to amd64. This commit changes it so that we take
it from go env instead. That way we should automatically get the proper
architechture on different devices.

Signed-off-by: Lennart Jern <[email protected]>
  • Loading branch information
lentzi90 committed May 2, 2024
1 parent 912613a commit a12acd6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ BMO_IMAGE_NAME ?= baremetal-operator
BMO_CONTROLLER_IMG ?= $(REGISTRY)/$(BMO_IMAGE_NAME)
TAG ?= v1beta1
BMO_TAG ?= capm3-$(TAG)
ARCH ?= amd64
ARCH ?= $(shell go env GOARCH)
ALL_ARCH = amd64 arm arm64 ppc64le s390x

# Allow overriding manifest generation destination directory
Expand All @@ -96,7 +96,6 @@ ENVTEST_OS := linux
ifeq ($(shell uname -s), Darwin)
ENVTEST_OS := darwin
endif
ARCH ?= amd64

## --------------------------------------
## Help
Expand Down

0 comments on commit a12acd6

Please sign in to comment.