Searched hist:"60091 ebfdbfd1c9dfff6b0e77802945eac5df046" (Results 1 – 1 of 1) sorted by relevance
| /optee_os/core/arch/arm/plat-imx/ |
| H A D | link.mk | 60091ebfdbfd1c9dfff6b0e77802945eac5df046 Wed May 11 15:50:03 UTC 2022 Clement Faure <clement.faure@nxp.com> core: imx: link: generate entry_point_address.txt for uTee image
For some platforms like mx7ulpevk, the `UL` attribute for CFG_DRAM_BASE is necessary to avoid the following error:
$ PLATFORM=imx-mx7ulpevk make uTee core/mm/mobj.c: In function ‘mobj_init’: ./out/arm-plat-imx/include/generated/conf.h:222:64: warning: integer overflow in expression of type ‘int’ results in ‘-1644167168’ [-Woverflow] 222 | #define CFG_TZDRAM_START (0x60000000 - 0x01e00000 - 0x00200000 + 0x40000000) | ^
However, this `UL` attribute prevents the shell from properly computing the CFG_TZDRAM_START value :
$ PLATFORM=imx-mx7ulpevk make uTee bash: (UL(0x60000000) - 0x01e00000 - 0x00200000 + 0x40000000): missing `)' (error token is "(0x60000000) - 0x01e00000 - 0x00200000 + 0x40000000)")
To address both issues, remove the `UL` attribute from CFG_TZDRAM_START with Makefile string substitution.
Fixes: 0f8347dcafe ("core: imx: generate uImage for imx6 and imx7 platforms") Signed-off-by: Clement Faure <clement.faure@nxp.com> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
|