sbsa-acs,edk2-firmware: Adjust target tuple for clang
PATCH v2 1/1 sbsa-acs,edk2-firmware: Adjust target tuple for clang
Current settings assume glibc tuples and hence when building with musl C library clang can not find correct cross tools and system headers and libraries, really we should be using exact tuple that is in play so using HOST_SYS is right replacement for OE
Signed-off-by Khem Raj <[email protected]>
Cc Jon Mason <[email protected]>
Cc Ross Burton <[email protected]>
---
v2: Move the patch to edk2-firmware and use HOST_SYS
meta-arm/recipes-bsp/uefi/edk2-firmware.inc | 4 ++++ 1 file changed, 4 insertions(+)
meta-arm/recipes-bsp/uefi/edk2-firmware.inc +4 -0
@@ -64,6 +64,10 @@ export BTOOLS_PATH = "${EDK_TOOLS_PATH}/BinWrappers/PosixLike" EDK_COMPILER ?= "GCC5" EDK_COMPILER_toolchain-clang = "CLANG38" +do_configure_prepend() { + sed -i -e "s#-target ${HOST_ARCH}-linux-gnu*#-target ${HOST_SYS}#" ${S}/BaseTools/Conf/tools_def.template +} + do_compile() { sed -i -e 's:-I \.\.:-I \.\. ${BUILD_CFLAGS} :' ${EDK_TOOLS_PATH}/Source/C/Makefiles/header.makefile sed -i -e 's: -luuid: -luuid ${BUILD_LDFLAGS}:g' ${EDK_TOOLS_PATH}/Source/C/*/GNUmakefile
Signature · 1 line
2.32.0