Do not enforce GCCx_ARM_PREFIX=arm-linux-gnu- on Debian based
distributions.
This is a kludge not meant for merging!
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
---
roms/edk2-funcs.sh | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/roms/edk2-funcs.sh b/roms/edk2-funcs.sh
index 402fc126fb..2f1fa2af1a 100644
--- a/roms/edk2-funcs.sh
+++ b/roms/edk2-funcs.sh
@@ -113,6 +113,11 @@ qemu_edk2_get_cross_prefix()
# no cross-compiler needed
:
else
+ if [ -f /etc/lsb-release ] && [ "$gcc_arch" = arm ]; then
+ # XXX kludge for Debian-based distribs
+ printf 'arm-linux-gnueabihf-\n'
+ return 0
+ fi
printf '%s-linux-gnu-\n' "$gcc_arch"
fi
}
--
2.20.1