File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ crossbuild crossbuild.help :
88 @echo crossbuild requires Docker to be installed
99else
1010
11+ UNAME_M := $(shell uname -m)
12+
1113#
1214# Short list of common builds
1315#
@@ -38,6 +40,17 @@ CB_PROF_CPREFIX:=fr40x-prof-
3840# List of profiling images (only directories that contain a Dockerfile.cb)
3941CB_PROF_IMAGES: =$(sort $(patsubst $(PT ) /% /Dockerfile.cb,% ,$(wildcard $(PT ) /* /Dockerfile.cb) ) )
4042
43+ #
44+ # Building from arm64 is not supported. Check if a build target was requested.
45+ #
46+ ifneq (,$(filter $(UNAME_M ) ,arm64 aarch64) )
47+ _CB_BUILD_TARGETS := crossbuild crossbuild.common crossbuild.prof \
48+ $(foreach IMG,$(CB_IMAGES ) ,crossbuild.$(IMG ) ) \
49+ $(foreach IMG,$(CB_PROF_IMAGES ) ,crossbuild.$(IMG ) .prof)
50+ ifneq (,$(filter $(_CB_BUILD_TARGETS ) ,$(MAKECMDGOALS ) ) )
51+ $(error Building from arm64 is currently not supported)
52+ endif
53+ endif
4154
4255# Location of the .git dir (may be different for e.g. submodules)
4356GITDIR: =$(shell perl -MCwd -e 'print Cwd::abs_path shift' $$(git rev-parse --git-dir ) )
You can’t perform that action at this time.
0 commit comments