mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-16 09:34:18 +00:00
fix(st): properly check LOADADDR
LOADADDR variable is retrieved from line starting with RAM in map file. But if the build path contains RAM, this keywords will appear several times and the grep will fail. Correct that by really checking the line starting with RAM thanks to grep '^RAM'. Change-Id: I2ce23edb5255028b1a56ba45c16569a42ae21ae2 Signed-off-by: Yann Gautier <yann.gautier@foss.st.com> Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/tf-a/+/328648
This commit is contained in:
parent
d1a974a3b7
commit
9f72f5eac8
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ tf-a-%.bin: tf-a-%.elf
|
|||
tf-a-%.stm32: tf-a-%.bin ${STM32_DEPS}
|
||||
@echo
|
||||
@echo "Generate $@"
|
||||
$(eval LOADADDR = $(shell cat $(@:.stm32=.map) | grep RAM | awk '{print $$2}'))
|
||||
$(eval LOADADDR = $(shell cat $(@:.stm32=.map) | grep '^RAM' | awk '{print $$2}'))
|
||||
$(eval ENTRY = $(shell cat $(@:.stm32=.map) | grep "__BL2_IMAGE_START" | awk '{print $$1}'))
|
||||
${Q}${STM32IMAGE} -s $< -d $@ \
|
||||
-l $(LOADADDR) -e ${ENTRY} \
|
||||
|
|
Loading…
Add table
Reference in a new issue