[meta-arm] meta-arm: Fix passing of linker flags

Submitted by Khasim Mohammed on June 15, 2020, 4:27 p.m. | Patch ID: 173601

Details

Message ID 20200615162727.8810-1-khasim.mohammed@arm.com
State New
Headers show

Commit Message

Khasim Mohammed June 15, 2020, 4:27 p.m.
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 <khasim.mohammed@arm.com>
Signed-off-by: Diego Sueiro <diego.sueiro@arm.com>
---
 meta-arm/recipes-bsp/uefi/edk2-firmware.inc | 3 +++
 1 file changed, 3 insertions(+)

Patch hide | download patch | download mbox

diff --git a/meta-arm/recipes-bsp/uefi/edk2-firmware.inc b/meta-arm/recipes-bsp/uefi/edk2-firmware.inc
index 7b9327c..6696768 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

Comments

Ross Burton June 16, 2020, 1:23 p.m.
Commit summary should be something like:

"arm/edk2-firmware: fix passing of linker flags"

(yes, Diego was asking about commit message guidelines yesterday, and
I have a patch queued to document this)

Ross

On Mon, 15 Jun 2020 at 17:27, Khasim Mohammed <khasim.mohammed@arm.com> wrote:
>
> 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 <khasim.mohammed@arm.com>
> Signed-off-by: Diego Sueiro <diego.sueiro@arm.com>
> ---
>  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 7b9327c..6696768 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
> --
> 2.17.1
>
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#673): https://lists.yoctoproject.org/g/meta-arm/message/673
Mute This Topic: https://lists.yoctoproject.org/mt/74898395/3617530
Group Owner: meta-arm+owner@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/meta-arm/unsub  [oe-patchwork@oe-patch.openembedded.org]
-=-=-=-=-=-=-=-=-=-=-=-