diff options
author | Leah Rowe <leah@libreboot.org> | 2024-11-19 02:52:28 +0000 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2024-11-19 02:52:28 +0000 |
commit | 637c0a1521a03e3f65de85dcc5ffd478b37a5360 (patch) | |
tree | a7b82c94cb6d17678e80afa29ad0925c85102ecd | |
parent | f13819386bf35f081eecbacea965549b7df75e24 (diff) |
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>
-rwxr-xr-x | script/trees | 1 |
1 files changed, 1 insertions, 0 deletions
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" |