From 8421997dbbacc487ddf192af6fac0004ebd4c44d Mon Sep 17 00:00:00 2001 From: Max Krummenacher Date: Tue, 30 Aug 2022 16:31:41 +0200 Subject: Revert "imx-atf: fix build error with binutils 2.39" This reverts commit bac8c6af8471addb7add0d1b1ddfbbbd36bed16e. Revert this in favour of a binutils version agnostic patch. Signed-off-by: Max Krummenacher --- recipes-bsp/imx-atf/imx-atf_2.6.bb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/recipes-bsp/imx-atf/imx-atf_2.6.bb b/recipes-bsp/imx-atf/imx-atf_2.6.bb index 1df61cab8..b0426f0b2 100644 --- a/recipes-bsp/imx-atf/imx-atf_2.6.bb +++ b/recipes-bsp/imx-atf/imx-atf_2.6.bb @@ -29,9 +29,7 @@ EXTRA_OEMAKE += " \ # Let the Makefile handle setting up the CFLAGS and LDFLAGS as it is a standalone application CFLAGS[unexport] = "1" -# Needed for binutils >= 2.39 to prevent build failure. -# imx-atf links with ld, thus no '-Wl,' prefix -LDFLAGS = "--no-warn-rwx-segments" +LDFLAGS[unexport] = "1" AS[unexport] = "1" LD[unexport] = "1" @@ -58,6 +56,7 @@ EXTRA_OEMAKE += 'IMX_BOOT_UART_BASE=${ATF_BOOT_UART_BASE}' do_configure[noexec] = "1" do_compile() { + # Clear LDFLAGS to avoid the option -Wl recognize issue oe_runmake bl31 if ${BUILD_OPTEE}; then oe_runmake clean BUILD_BASE=build-optee -- cgit v1.2.3-54-g00ecf