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 <leah@libreboot.org>
master
Leah Rowe 2024-11-19 02:52:28 +00:00 committed by Leah Rowe
parent 739207021d
commit 414ff6095c
1 changed files with 1 additions and 0 deletions

View File

@ -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"