Revisão | 47fee64be674f121482ebc5def4dc0c3e13ed34b (tree) |
---|---|
Hora | 2020-01-21 22:15:48 |
Autor | Philippe Mathieu-Daudé <philmd@redh...> |
Commiter | Philippe Mathieu-Daudé |
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
* The newer ARM hard-float (armhf) port supports newer, more
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] https://github.com/tianocore/edk2/commit/41203b9a
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
@@ -112,6 +112,9 @@ qemu_edk2_get_cross_prefix() | ||
112 | 112 | ( [ "$gcc_arch" == i686 ] && [ "$host_arch" == x86_64 ] ); then |
113 | 113 | # no cross-compiler needed |
114 | 114 | : |
115 | + elif ( [ -e /etc/debian_version ] && [ "$gcc_arch" == arm ] ); then | |
116 | + # force soft-float cross-compiler on Debian | |
117 | + printf 'arm-linux-gnueabi-' | |
115 | 118 | else |
116 | 119 | printf '%s-linux-gnu-\n' "$gcc_arch" |
117 | 120 | fi |