summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xutil/abuild/abuild5
1 files changed, 3 insertions, 2 deletions
diff --git a/util/abuild/abuild b/util/abuild/abuild
index 4a62cfa045..23b22aaa9b 100755
--- a/util/abuild/abuild
+++ b/util/abuild/abuild
@@ -471,13 +471,14 @@ function build_config
required_arches=$(grep -E "^CONFIG_ARCH_(BOOTBLOCK|R.MSTAGE|VERSTAGE)" "$TARGET/${BUILD_NAME}/config.build" | \
sed "s,^CONFIG_ARCH_[^_]*_\([^=]*\)=.*$,\1," |sort -u |tr 'A-Z\n\r' 'a-z ')
- missing_arches="$($MAKE --no-print-directory -f - \
- REQUIRED_ARCHES="$required_arches" <<'EOF'
+ missing_arches="$($MAKE --no-print-directory -f Makefile -f - \
+ REQUIRED_ARCHES="$required_arches" obj="${build_dir}" <<'EOF'
include .xcompile
.PHONY: missing_arches
missing_arches:
$(if $(XCOMPILE_COMPLETE),,$(error .xcompile is invalid.))
@echo $(foreach arch,$(REQUIRED_ARCHES),$(if $(filter $(arch),$(SUBARCH_SUPPORTED)),,$(arch)))
+.DEFAULT_GOAL := missing_arches
EOF
)"
# shellcheck disable=SC2181