From e28eeb713dcd1ec4712ba37e8cacb04131ffdb46 Mon Sep 17 00:00:00 2001 From: Nico Huber Date: Sun, 21 Jun 2020 15:04:37 +0200 Subject: util/abuild: Run `make .xcompile` only once If abuild called itself recursively, the file already exists and we can spare us one evaluation of all the makefiles per recursive abuild run. Change-Id: Id3e2239354ec251c24c03c971987586deeb026c5 Signed-off-by: Nico Huber Reviewed-on: https://review.coreboot.org/c/coreboot/+/42640 Tested-by: build bot (Jenkins) Reviewed-by: Tim Wawrzynczak Reviewed-by: Reka Norman Reviewed-by: Patrick Georgi --- util/abuild/abuild | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'util/abuild') diff --git a/util/abuild/abuild b/util/abuild/abuild index 5fe298ee6e..dc38efee1f 100755 --- a/util/abuild/abuild +++ b/util/abuild/abuild @@ -786,10 +786,6 @@ if ! mkdir -p "$TARGET"; then exit 1 fi -# Generate a single xcompile for all boards -export xcompile="${TARGET}/xcompile" -$MAKE -C"${ROOT}" obj="$TARGET/temp" objutil="$TARGET/sharedutils" UPDATED_SUBMODULES=1 "${xcompile}" || exit 1 - customizing=$(echo "$customizing" | cut -c3-) if [ "$customizing" = "" ]; then customizing="default configuration" @@ -798,7 +794,11 @@ fi FAILED_BOARDS="$(realpath ${TARGET}/failed_boards)" PASSED_BOARDS="$(realpath ${TARGET}/passing_boards)" +# Generate a single xcompile for all boards +export xcompile="${TARGET}/xcompile" + if [ "$recursive" = "false" ]; then + $MAKE -C"${ROOT}" obj="$TARGET/temp" objutil="$TARGET/sharedutils" UPDATED_SUBMODULES=1 "${xcompile}" || exit 1 rm -f "$FAILED_BOARDS" "$PASSED_BOARDS" fi -- cgit v1.2.3