From 0b01dbe8593b355a96998080c551e0570c82d037 Mon Sep 17 00:00:00 2001 From: Tom Hochstein Date: Wed, 30 Jun 2021 07:05:19 -0500 Subject: imx-atf: Upgrade to NXP release 5.10.35-2.0.0 Update recipe SRCREV and branch to point to new version available as a part of NXP release [lf_v2.4]. Signed-off-by: Tom Hochstein --- recipes-bsp/imx-atf/imx-atf_2.4.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'recipes-bsp') diff --git a/recipes-bsp/imx-atf/imx-atf_2.4.bb b/recipes-bsp/imx-atf/imx-atf_2.4.bb index 07807eff1..26b9e7d11 100644 --- a/recipes-bsp/imx-atf/imx-atf_2.4.bb +++ b/recipes-bsp/imx-atf/imx-atf_2.4.bb @@ -7,10 +7,10 @@ LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/BSD-3-Clause;m PV .= "+git${SRCPV}" -SRCBRANCH = "imx_5.4.70_2.3.0" +SRCBRANCH = "lf_v2.4" SRC_URI = "git://source.codeaurora.org/external/imx/imx-atf.git;protocol=https;branch=${SRCBRANCH} \ " -SRCREV = "2a26786460edd4f0ec3111e7027c93c57fc572c1" +SRCREV = "ec35fef92b71a79075f214f8cff0738cd4482ed0" S = "${WORKDIR}/git" -- cgit v1.2.3-54-g00ecf From 79ba26618a075332ac9106f55c1aad573e42c9e0 Mon Sep 17 00:00:00 2001 From: Tom Hochstein Date: Wed, 30 Jun 2021 07:10:22 -0500 Subject: imx-atf: Remove -O2 from CFLAGS for 8MQ The i.MX 8M Quad has only 64 kB of OCRAM, and the following build break is observed: ``` | aarch64-poky-linux-ld.bfd: /opt/work/upstream/fsl-xwayland/tmp/work/cortexa53-crypto-mx8m-fsl-linux/imx-atf/2.4+gitAUTOINC+ec35fef92b-r0/git/build-optee/imx8mq/release/bl31/bl31.elf section `coherent_ram' will not fit in region `RAM' | aarch64-poky-linux-ld.bfd: BL31 image has exceeded its limit. | aarch64-poky-linux-ld.bfd: region `RAM' overflowed by 4096 bytes ``` Fix the break by disabling -O2 optimization. Signed-off-by: Tom Hochstein --- recipes-bsp/imx-atf/imx-atf_2.4.bb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'recipes-bsp') diff --git a/recipes-bsp/imx-atf/imx-atf_2.4.bb b/recipes-bsp/imx-atf/imx-atf_2.4.bb index 26b9e7d11..f4db002be 100644 --- a/recipes-bsp/imx-atf/imx-atf_2.4.bb +++ b/recipes-bsp/imx-atf/imx-atf_2.4.bb @@ -27,6 +27,8 @@ EXTRA_OEMAKE += " \ BUILD_OPTEE = "${@bb.utils.contains('MACHINE_FEATURES', 'optee', 'true', 'false', d)}" +CFLAGS_remove_mx8mq = "-O2" + do_compile() { # Clear LDFLAGS to avoid the option -Wl recognize issue unset LDFLAGS -- cgit v1.2.3-54-g00ecf