Skip to content

Commit 47fee64

Browse files
committed
roms/edk2-funcs: Force softfloat ARM toolchain prefix on Debian
The Debian (based) distributions currently provides 2 ARM toolchains, documented as [1]: * The ARM EABI (armel) port targets a range of older 32-bit ARM devices, particularly those used in NAS hardware and a variety of *plug computers. * The newer ARM hard-float (armhf) port supports newer, more powerful 32-bit devices using version 7 of the ARM architecture specification. For various reasons documented in [2], the EDK2 project suggests to use the softfloat toolchain (named 'armel' by Debian). Force the softfloat cross toolchain prefix on Debian distributions. [1] https://www.debian.org/ports/arm/#status [2] tianocore/edk2@41203b9a Reviewed-by: Laszlo Ersek <[email protected]> Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
1 parent 43d1455 commit 47fee64

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

roms/edk2-funcs.sh

+3
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,9 @@ qemu_edk2_get_cross_prefix()
112112
( [ "$gcc_arch" == i686 ] && [ "$host_arch" == x86_64 ] ); then
113113
# no cross-compiler needed
114114
:
115+
elif ( [ -e /etc/debian_version ] && [ "$gcc_arch" == arm ] ); then
116+
# force soft-float cross-compiler on Debian
117+
printf 'arm-linux-gnueabi-'
115118
else
116119
printf '%s-linux-gnu-\n' "$gcc_arch"
117120
fi

0 commit comments

Comments
 (0)