From ce613023d23b8641f6f458526c4717dce7843922 Mon Sep 17 00:00:00 2001 From: Khasim Mohammed Date: Tue, 16 Jun 2020 22:25:58 +0530 Subject: [PATCH] arm/edk2-firmware: fix passing of linker flags The build initially worked because host machine had util-linux-dev installed, the build failed otherwise. This patch will fix the passing of linker flags. Change-Id: If2f31e8e31109b9c8fd62b32d2f80902a1dd3cfd Signed-off-by: Khasim Syed Mohammed Signed-off-by: Diego Sueiro Signed-off-by: Jon Mason --- meta-arm/recipes-bsp/uefi/edk2-firmware.inc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meta-arm/recipes-bsp/uefi/edk2-firmware.inc b/meta-arm/recipes-bsp/uefi/edk2-firmware.inc index 7b9327c5..66967680 100644 --- a/meta-arm/recipes-bsp/uefi/edk2-firmware.inc +++ b/meta-arm/recipes-bsp/uefi/edk2-firmware.inc @@ -48,6 +48,9 @@ python __anonymous() { } 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 + # Copy the templates as we don't run envsetup cp ${EDK_TOOLS_PATH}/Conf/build_rule.template ${WORKSPACE}/Conf/build_rule.txt cp ${EDK_TOOLS_PATH}/Conf/tools_def.template ${WORKSPACE}/Conf/tools_def.txt