allow multitree projects to define xgcc tree

let them specific it, rather than falling back
to coreboot/default (can also be used for coreboot boards)

Signed-off-by: Leah Rowe <leah@libreboot.org>
audit2-merge1
Leah Rowe 2024-01-21 05:58:37 +00:00 committed by Leah Rowe
parent a5b0df897f
commit 2e6dec0c27
5 changed files with 6 additions and 1 deletions

View File

@ -1,2 +1,3 @@
tree="default"
xtree="default"
xarch="aarch64-elf arm-eabi"

View File

@ -1,2 +1,3 @@
tree="default"
xtree="default"
xarch="aarch64-elf arm-eabi"

View File

@ -1,2 +1,3 @@
tree="default"
xtree="default"
xarch="aarch64-elf arm-eabi"

View File

@ -1,2 +1,3 @@
tree="default"
xtree="default"
xarch="i386-elf"

View File

@ -12,7 +12,7 @@ set -u -e
eval "$(setvars "" xarch cfgsdir codedir config config_name xlang mode \
elfdir listfile project target target_dir targets tree _f target1 \
bootstrapargs autoconfargs cmakedir makeargs autogenargs)"
bootstrapargs autoconfargs cmakedir makeargs autogenargs xtree)"
main()
{
@ -156,6 +156,7 @@ check_cross_compiler()
for _xarch in $xarch; do
cbdir="src/coreboot/${tree}"
[ "$project" != "coreboot" ] && cbdir="src/coreboot/default"
[ -n "$xtree" ] && cbdir="src/coreboot/$xtree"
x_ ./update trees -f coreboot ${cbdir#src/coreboot/}