diff options
author | Yann Gautier <yann.gautier@st.com> | 2020-09-18 10:21:29 +0200 |
---|---|---|
committer | Manish Pandey <manish.pandey2@arm.com> | 2020-10-09 09:24:50 +0000 |
commit | 128e0b3e2e07e151f6c9c8563707ef9f60825eee (patch) | |
tree | 7f9f32f120df1164c3a75d5fd0630d88a2cfa6f8 /plat | |
parent | 3e0727d6dea00bd4a3f40051bfb633adf56868ef (diff) | |
download | arm-trusted-firmware-128e0b3e2e07e151f6c9c8563707ef9f60825eee.tar.gz |
stm32mp1: update rules for stm32image tool
In heavy parallel builds, it has sometimes been seen issues with the
tool not generated before it was needed. Change some rules order and
dependency to solve that.
Change-Id: I8f4b4f46a2ea0fe496bc66bca47c66d1c81d3c99
Signed-off-by: Yann Gautier <yann.gautier@st.com>
Diffstat (limited to 'plat')
-rw-r--r-- | plat/st/stm32mp1/platform.mk | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/plat/st/stm32mp1/platform.mk b/plat/st/stm32mp1/platform.mk index 159689606..904a51486 100644 --- a/plat/st/stm32mp1/platform.mk +++ b/plat/st/stm32mp1/platform.mk @@ -197,11 +197,13 @@ endif .PHONY: check_dtc_version stm32image clean_stm32image .SUFFIXES: -all: check_dtc_version ${STM32_TF_STM32} stm32image +all: check_dtc_version stm32image ${STM32_TF_STM32} distclean realclean clean: clean_stm32image -stm32image: +stm32image: ${STM32IMAGE} + +${STM32IMAGE}: ${STM32IMAGE_SRC} ${Q}${MAKE} CPPFLAGS="" --no-print-directory -C ${STM32IMAGEPATH} clean_stm32image: @@ -234,10 +236,12 @@ tf-a-%.bin: tf-a-%.elf @echo "Built $@ successfully" @echo -tf-a-%.stm32: tf-a-%.bin stm32image +tf-a-%.stm32: ${STM32IMAGE} tf-a-%.bin @echo - @echo "Generated $@" + @echo "Generate $@" $(eval LOADADDR = $(shell cat $(@:.stm32=.map) | grep RAM | awk '{print $$2}')) $(eval ENTRY = $(shell cat $(@:.stm32=.map) | grep "__BL2_IMAGE_START" | awk '{print $$1}')) - ${STM32IMAGE} -s $< -d $@ -l $(LOADADDR) -e ${ENTRY} -v ${STM32_TF_VERSION} + ${Q}${STM32IMAGE} -s $(word 2,$^) -d $@ \ + -l $(LOADADDR) -e ${ENTRY} \ + -v ${STM32_TF_VERSION} @echo |