coreboot: AMD Fam10/15: don't build GCC-GNAT
do this with board.cfg option: crossgcc_ada="n" add this environmental variable when building crossgcc, if crossgcc_ada="n": BUILD_LANGUAGES=c This avoids building the GNAT/Ada compiler in GCC. Coreboot 4.11 is only used for some AGESA boards that don't need Ada (their video init is the old style, written in C, it's not libgfxinit) Signed-off-by: Leah Rowe <leah@libreboot.org>fsdg20230625
parent
b7d22a9c36
commit
b55cc19f41
|
@ -6,3 +6,4 @@ payload_grub="n"
|
|||
payload_grub_withseabios="n"
|
||||
payload_seabios="n"
|
||||
payload_memtest="n"
|
||||
crossgcc_ada="n"
|
||||
|
|
|
@ -6,3 +6,4 @@ payload_grub="n"
|
|||
payload_grub_withseabios="n"
|
||||
payload_seabios="n"
|
||||
payload_memtest="n"
|
||||
crossgcc_ada="n"
|
||||
|
|
|
@ -5,3 +5,4 @@ payload_grub="y"
|
|||
payload_grub_withseabios="y"
|
||||
payload_seabios="y"
|
||||
payload_memtest="y"
|
||||
crossgcc_ada="n"
|
||||
|
|
|
@ -5,3 +5,4 @@ payload_grub="y"
|
|||
payload_grub_withseabios="y"
|
||||
payload_seabios="y"
|
||||
payload_memtest="y"
|
||||
crossgcc_ada="n"
|
||||
|
|
|
@ -5,3 +5,4 @@ payload_grub="y"
|
|||
payload_grub_withseabios="y"
|
||||
payload_seabios="y"
|
||||
payload_memtest="y"
|
||||
crossgcc_ada="n"
|
||||
|
|
|
@ -5,3 +5,4 @@ payload_grub="y"
|
|||
payload_grub_withseabios="y"
|
||||
payload_seabios="y"
|
||||
payload_memtest="y"
|
||||
crossgcc_ada="n"
|
||||
|
|
|
@ -5,3 +5,4 @@ payload_grub="n"
|
|||
payload_grub_withseabios="n"
|
||||
payload_seabios="y"
|
||||
payload_memtest="y"
|
||||
crossgcc_ada="n"
|
||||
|
|
|
@ -5,3 +5,4 @@ payload_grub="n"
|
|||
payload_grub_withseabios="n"
|
||||
payload_seabios="y"
|
||||
payload_memtest="y"
|
||||
crossgcc_ada="n"
|
||||
|
|
|
@ -5,3 +5,4 @@ payload_grub="y"
|
|||
payload_grub_withseabios="y"
|
||||
payload_seabios="y"
|
||||
payload_memtest="y"
|
||||
crossgcc_ada="n"
|
||||
|
|
|
@ -5,3 +5,4 @@ payload_grub="y"
|
|||
payload_grub_withseabios="y"
|
||||
payload_seabios="y"
|
||||
payload_memtest="y"
|
||||
crossgcc_ada="n"
|
||||
|
|
|
@ -5,3 +5,4 @@ payload_grub="y"
|
|||
payload_grub_withseabios="y"
|
||||
payload_seabios="y"
|
||||
payload_memtest="y"
|
||||
crossgcc_ada="n"
|
||||
|
|
|
@ -5,3 +5,4 @@ payload_grub="y"
|
|||
payload_grub_withseabios="y"
|
||||
payload_seabios="y"
|
||||
payload_memtest="y"
|
||||
crossgcc_ada="n"
|
||||
|
|
|
@ -81,6 +81,8 @@ seabios_opromloadonly="0"
|
|||
payload_memtest="n"
|
||||
payload_uboot="n"
|
||||
uboot_config="undefined"
|
||||
# ditto option whether to compile ada in crossgcc:
|
||||
crossgcc_ada="y" # yes by default
|
||||
# Override the above defaults using board.cfg
|
||||
. "resources/coreboot/${board}/board.cfg"
|
||||
|
||||
|
@ -158,7 +160,13 @@ if [ "${payload_uboot}" = "y" ] && \
|
|||
uboot_config="default"
|
||||
fi
|
||||
|
||||
# ada support needed for libgfxinit submodule
|
||||
if [ "${crossgcc_ada}" != "y" ] && [ "${crossgcc_ada}" != "n" ]; then
|
||||
crossgcc_ada="y"
|
||||
fi
|
||||
|
||||
# Override all payload directives with cmdline args
|
||||
# (do not override crossgcc_ada)
|
||||
if [ ! -z ${payloads} ]; then
|
||||
echo "setting payloads $payloads"
|
||||
payload_grub="n"
|
||||
|
@ -191,6 +199,9 @@ fi
|
|||
|
||||
cat version > "${cbdir}/.coreboot-version"
|
||||
|
||||
if [ "${crossgcc_ada}" = "n" ]; then
|
||||
export BUILD_LANGUAGES=c
|
||||
fi
|
||||
if [ "${arch}" = "x86_32" ] || [ "${arch}" = "x86_64" ]; then
|
||||
if [ ! -d "${cbdir}/util/crossgcc/xgcc/i386-elf/" ]; then
|
||||
# Even for 64-bit machines, coreboot builds 32-bit ROM
|
||||
|
|
Loading…
Reference in New Issue