aboutsummaryrefslogtreecommitdiff
path: root/plat/nxp
diff options
context:
space:
mode:
authorJiafei Pan <Jiafei.Pan@nxp.com>2021-06-25 17:18:26 +0800
committerJiafei Pan <Jiafei.Pan@nxp.com>2021-06-25 17:18:26 +0800
commite4d0fa0b25d52ec8a232fe0c74947c48478e5225 (patch)
tree7ab2712b71710a9b15ecff0d789175fc40fc174e /plat/nxp
parent96e63ccf2064122d60be172e2a304e87edbcf613 (diff)
downloadtrusted-firmware-a-e4d0fa0b25d52ec8a232fe0c74947c48478e5225.tar.gz
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 <Jiafei.Pan@nxp.com> Change-Id: Iebb86a0b9bc8cab1676bd8e898cf4a1b6d16f472
Diffstat (limited to 'plat/nxp')
-rw-r--r--plat/nxp/soc-lx2160a/soc.def2
1 files changed, 1 insertions, 1 deletions
diff --git a/plat/nxp/soc-lx2160a/soc.def b/plat/nxp/soc-lx2160a/soc.def
index bb76981fe2..24d1d139d4 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