commit | 3abe9b6dd051628b4129774c063daf4334d8e44a | [log] [tgz] |
---|---|---|
author | Anthony <anthonyhkf@google.com> | Fri Sep 23 10:32:45 2022 +0800 |
committer | Benjamin Fair <benjaminfair@google.com> | Wed Sep 28 18:59:47 2022 +0000 |
tree | f3a0c25d5daea306a21c956a7ffb004a9288e09c | |
parent | c6fd16b949fb5174ae3d04c3b100889efe429406 [diff] |
meta-nuvoton-npcm8xx: add no-warn-rwx-segments Similar fix is added in https://github.com/OP-TEE/optee_os/pull/5474 Due to the changes in binutils, when there is any warning during the linking, it would be treated as a fatal error, breaking the compilation. Google-Bug-Id: 247841789 In-review: https://github.com/Nuvoton-Israel/openbmc/pull/580 Signed-off-by: Anthony <anthonyhkf@google.com> Signed-off-by: Benjamin Fair <benjaminfair@google.com> Change-Id: I5d99a9c5778e3dd8adb2372fd2836e2645588b0e
diff --git a/meta-nuvoton-npcm8xx/recipes-bsp/arm-trusted-firmware/arm-trusted-firmware.inc b/meta-nuvoton-npcm8xx/recipes-bsp/arm-trusted-firmware/arm-trusted-firmware.inc index 2f47829..e0fac3d 100644 --- a/meta-nuvoton-npcm8xx/recipes-bsp/arm-trusted-firmware/arm-trusted-firmware.inc +++ b/meta-nuvoton-npcm8xx/recipes-bsp/arm-trusted-firmware/arm-trusted-firmware.inc
@@ -33,6 +33,8 @@ AS[unexport] = "1" LD[unexport] = "1" +EXTRA_OEMAKE = "LDFLAGS='--no-warn-rwx-segments'" + do_configure() { oe_runmake clean -C ${S} PLAT=${PLATFORM} }
diff --git a/meta-nuvoton-npcm8xx/recipes-security/optee/optee-os.bb b/meta-nuvoton-npcm8xx/recipes-security/optee/optee-os.bb index d8938d3..b6c456f 100644 --- a/meta-nuvoton-npcm8xx/recipes-security/optee/optee-os.bb +++ b/meta-nuvoton-npcm8xx/recipes-security/optee/optee-os.bb
@@ -33,7 +33,7 @@ CROSS_COMPILE_ta_arm64=${HOST_PREFIX} \ NOWERROR=1 \ ta-targets=ta_arm64 \ - LDFLAGS= \ + LDFLAGS='--no-warn-rwx-segments' \ LIBGCC_LOCATE_CFLAGS=--sysroot=${STAGING_DIR_HOST} \ " @@ -67,4 +67,4 @@ FILES:${PN}-staticdev = "/usr/include/optee/" RDEPENDS:${PN}-dev += "${PN}-staticdev" -PACKAGE_ARCH = "${MACHINE_ARCH}" \ No newline at end of file +PACKAGE_ARCH = "${MACHINE_ARCH}"