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
parent
a5b0df897f
commit
2e6dec0c27
|
@ -1,2 +1,3 @@
|
||||||
tree="default"
|
tree="default"
|
||||||
|
xtree="default"
|
||||||
xarch="aarch64-elf arm-eabi"
|
xarch="aarch64-elf arm-eabi"
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
tree="default"
|
tree="default"
|
||||||
|
xtree="default"
|
||||||
xarch="aarch64-elf arm-eabi"
|
xarch="aarch64-elf arm-eabi"
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
tree="default"
|
tree="default"
|
||||||
|
xtree="default"
|
||||||
xarch="aarch64-elf arm-eabi"
|
xarch="aarch64-elf arm-eabi"
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
tree="default"
|
tree="default"
|
||||||
|
xtree="default"
|
||||||
xarch="i386-elf"
|
xarch="i386-elf"
|
||||||
|
|
|
@ -12,7 +12,7 @@ set -u -e
|
||||||
|
|
||||||
eval "$(setvars "" xarch cfgsdir codedir config config_name xlang mode \
|
eval "$(setvars "" xarch cfgsdir codedir config config_name xlang mode \
|
||||||
elfdir listfile project target target_dir targets tree _f target1 \
|
elfdir listfile project target target_dir targets tree _f target1 \
|
||||||
bootstrapargs autoconfargs cmakedir makeargs autogenargs)"
|
bootstrapargs autoconfargs cmakedir makeargs autogenargs xtree)"
|
||||||
|
|
||||||
main()
|
main()
|
||||||
{
|
{
|
||||||
|
@ -156,6 +156,7 @@ check_cross_compiler()
|
||||||
for _xarch in $xarch; do
|
for _xarch in $xarch; do
|
||||||
cbdir="src/coreboot/${tree}"
|
cbdir="src/coreboot/${tree}"
|
||||||
[ "$project" != "coreboot" ] && cbdir="src/coreboot/default"
|
[ "$project" != "coreboot" ] && cbdir="src/coreboot/default"
|
||||||
|
[ -n "$xtree" ] && cbdir="src/coreboot/$xtree"
|
||||||
|
|
||||||
x_ ./update trees -f coreboot ${cbdir#src/coreboot/}
|
x_ ./update trees -f coreboot ${cbdir#src/coreboot/}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue