[coreboot-gerrit] Change in coreboot[master]: util/abuild: Fix building when not in coreboot root dir

Arthur Heymans (Code Review) gerrit at coreboot.org
Wed Jun 13 22:31:53 CEST 2018


Arthur Heymans has uploaded this change for review. ( https://review.coreboot.org/27095


Change subject: util/abuild: Fix building when not in coreboot root dir
......................................................................

util/abuild: Fix building when not in coreboot root dir

Change-Id: Ibe54096f275a05bda745ae2cc76c0109281c0c4b
Signed-off-by: Arthur Heymans <arthur at aheymans.xyz>
---
M util/abuild/abuild
1 file changed, 2 insertions(+), 2 deletions(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/95/27095/1

diff --git a/util/abuild/abuild b/util/abuild/abuild
index d8f4882..28e0eb6 100755
--- a/util/abuild/abuild
+++ b/util/abuild/abuild
@@ -454,7 +454,7 @@
 	required_arches=$(egrep "^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  ')
 	# shellcheck disable=SC2016,SC2059
-	missing_arches=$(printf 'include .xcompile\nall: ; @echo $(foreach arch,'"$required_arches"',$(if $(filter $(arch),$(SUBARCH_SUPPORTED)),,$(arch)))' | make --no-print-directory -f -)
+	missing_arches=$(printf 'include .xcompile\nall: ; @echo $(foreach arch,'"$required_arches"',$(if $(filter $(arch),$(SUBARCH_SUPPORTED)),,$(arch)))' | $MAKE --no-print-directory -f -)
 	if [ -n "$missing_arches" ]; then
 		printf "skipping %s because we're missing compilers for (%s)\n" "$BUILD_NAME" "$missing_arches"
 		return
@@ -696,7 +696,7 @@
 			clean_work=true
 			;;
 		-o|--outdir)	shift
-			TARGET=$1; shift
+			TARGET=$1; MAKE="$MAKE -C $1"; shift
 			;;
 		-x|--chromeos)	shift
 			chromeos=true

-- 
To view, visit https://review.coreboot.org/27095
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ibe54096f275a05bda745ae2cc76c0109281c0c4b
Gerrit-Change-Number: 27095
Gerrit-PatchSet: 1
Gerrit-Owner: Arthur Heymans <arthur at aheymans.xyz>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20180613/8ea156e2/attachment.html>


More information about the coreboot-gerrit mailing list