summaryrefslogtreecommitdiffstats
path: root/recipes-bsp/imx-atf/imx-atf_2.6.bb
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-bsp/imx-atf/imx-atf_2.6.bb')
-rw-r--r--recipes-bsp/imx-atf/imx-atf_2.6.bb12
1 files changed, 7 insertions, 5 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..3f627150b 100644
--- a/recipes-bsp/imx-atf/imx-atf_2.6.bb
+++ b/recipes-bsp/imx-atf/imx-atf_2.6.bb
@@ -7,8 +7,11 @@ LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/BSD-3-Clause;m
7 7
8PV .= "+git${SRCPV}" 8PV .= "+git${SRCPV}"
9 9
10SRC_URI = "git://source.codeaurora.org/external/imx/imx-atf.git;protocol=https;branch=${SRCBRANCH} \ 10SRC_URI = " \
11 file://0001-Makefile-Suppress-array-bounds-error.patch" 11 git://source.codeaurora.org/external/imx/imx-atf.git;protocol=https;branch=${SRCBRANCH} \
12 file://0001-Makefile-Suppress-array-bounds-error.patch \
13 file://rwx-segments.patch \
14"
12SRCBRANCH = "lf_v2.6" 15SRCBRANCH = "lf_v2.6"
13SRCREV = "c6a19b1a351308cc73443283f6aa56b2eff791b8" 16SRCREV = "c6a19b1a351308cc73443283f6aa56b2eff791b8"
14 17
@@ -29,9 +32,7 @@ EXTRA_OEMAKE += " \
29 32
30# Let the Makefile handle setting up the CFLAGS and LDFLAGS as it is a standalone application 33# Let the Makefile handle setting up the CFLAGS and LDFLAGS as it is a standalone application
31CFLAGS[unexport] = "1" 34CFLAGS[unexport] = "1"
32# Needed for binutils >= 2.39 to prevent build failure. 35LDFLAGS[unexport] = "1"
33# imx-atf links with ld, thus no '-Wl,' prefix
34LDFLAGS = "--no-warn-rwx-segments"
35AS[unexport] = "1" 36AS[unexport] = "1"
36LD[unexport] = "1" 37LD[unexport] = "1"
37 38
@@ -58,6 +59,7 @@ EXTRA_OEMAKE += 'IMX_BOOT_UART_BASE=${ATF_BOOT_UART_BASE}'
58do_configure[noexec] = "1" 59do_configure[noexec] = "1"
59 60
60do_compile() { 61do_compile() {
62 # Clear LDFLAGS to avoid the option -Wl recognize issue
61 oe_runmake bl31 63 oe_runmake bl31
62 if ${BUILD_OPTEE}; then 64 if ${BUILD_OPTEE}; then
63 oe_runmake clean BUILD_BASE=build-optee 65 oe_runmake clean BUILD_BASE=build-optee