From 637c0a1521a03e3f65de85dcc5ffd478b37a5360 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Tue, 19 Nov 2024 02:52:28 +0000 Subject: [PATCH] trees: unset CROSS_COMPILE per target When building a coreboot image, if they enable the x86 U-Boot payloads, sometimes what happens is you have CROSS_COMPILE set, for i386-elf, but then it's still set to that when later building 64-bit U-Boot, which needs x86_64-elf. We currently rely on hostcc to build U-Boot. To mitigate this, unset CROSS_COMPILE in the main loop of the trees script, for building project targets. Signed-off-by: Leah Rowe --- script/trees | 1 + 1 file changed, 1 insertion(+) diff --git a/script/trees b/script/trees index 726f7332..8f468d49 100755 --- a/script/trees +++ b/script/trees @@ -73,6 +73,7 @@ build_targets() [ $# -gt 0 ] || targets="$(ls -1 "$configdir")" || $err "!o $configdir" for x in $targets; do + unset CROSS_COMPILE [ "$x" = "list" ] && x_ ls -1 "config/$project" && \ listfile="" && break target="$x"