From e4d0fa0b25d52ec8a232fe0c74947c48478e5225 Mon Sep 17 00:00:00 2001 From: Jiafei Pan Date: Fri, 25 Jun 2021 17:18:26 +0800 Subject: [PATCH] refactor(plat/nxp/lx216x): refine variable definition This patch will make BL2_BASE to be hex valaue but not a shell command. Signed-off-by: Jiafei Pan Change-Id: Iebb86a0b9bc8cab1676bd8e898cf4a1b6d16f472 --- plat/nxp/soc-lx2160a/soc.def | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plat/nxp/soc-lx2160a/soc.def b/plat/nxp/soc-lx2160a/soc.def index bb76981fe..24d1d139d 100644 --- a/plat/nxp/soc-lx2160a/soc.def +++ b/plat/nxp/soc-lx2160a/soc.def @@ -91,7 +91,7 @@ OCRAM_SIZE := 0x40000 # Location of BL2 on OCRAM BL2_BASE_ADDR := $(shell echo $$(( $(OCRAM_START_ADDR) + $(NXP_ROM_RSVD) + $(CSF_HDR_SZ) ))) # Covert to HEX to be used by create_pbl.mk -BL2_BASE := $$(echo "obase=16; ${BL2_BASE_ADDR}" | bc) +BL2_BASE := $(shell echo "0x"$$(echo "obase=16; ${BL2_BASE_ADDR}" | bc)) # BL2_HDR_LOC is at (OCRAM_ADDR + NXP_ROM_RSVD) # This value BL2_HDR_LOC + CSF_HDR_SZ should not overalp with BL2_BASE