]> code.ossystems Code Review - meta-freescale.git/commitdiff
imx-atf: Remove -O2 from CFLAGS for 8MQ 818/head
authorTom Hochstein <tom.hochstein@nxp.com>
Wed, 30 Jun 2021 12:10:22 +0000 (07:10 -0500)
committerTom Hochstein <tom.hochstein@nxp.com>
Fri, 2 Jul 2021 13:05:13 +0000 (08:05 -0500)
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 <tom.hochstein@nxp.com>
recipes-bsp/imx-atf/imx-atf_2.4.bb

index 26b9e7d111ba01ad213cd83fa69bb4ee0ca07cc9..f4db002be30254f4e0913cfca4896e5f954f7333 100644 (file)
@@ -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