diff options
author | Yann Gautier <yann.gautier@st.com> | 2020-05-14 16:54:12 +0200 |
---|---|---|
committer | Manish Pandey <manish.pandey2@arm.com> | 2020-10-09 09:24:27 +0000 |
commit | 276a9c1bf8b2a784934fd778783bd8eabe1147c4 (patch) | |
tree | 0173db5a6b2958e2de2e3a56c21d050d0eb14615 | |
parent | bb68a9d602e456dad89fbfc777cb435059d42964 (diff) | |
download | trusted-firmware-a-276a9c1bf8b2a784934fd778783bd8eabe1147c4.tar.gz |
stm32mp1: use internal MAKE_LD macro to generate stm32 linker files
The previous proprietary version was not correctly handling dependencies.
Using MAKE_LD from make_helpers files now correctly handles that.
The generated linker script is the same as before.
Change-Id: Iccfd8dc3fffa7a33e73b184b72e0dfd5d26bc9c9
Signed-off-by: Yann Gautier <yann.gautier@st.com>
-rw-r--r-- | plat/st/stm32mp1/platform.mk | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/plat/st/stm32mp1/platform.mk b/plat/st/stm32mp1/platform.mk index 41eacc8fde..16c4b1cf26 100644 --- a/plat/st/stm32mp1/platform.mk +++ b/plat/st/stm32mp1/platform.mk @@ -1,5 +1,5 @@ # -# Copyright (c) 2015-2019, ARM Limited and Contributors. All rights reserved. +# Copyright (c) 2015-2020, ARM Limited and Contributors. All rights reserved. # # SPDX-License-Identifier: BSD-3-Clause # @@ -210,9 +210,7 @@ ${BUILD_PLAT}/stm32mp1-%.o: ${BUILD_PLAT}/fdts/%.dtb plat/st/stm32mp1/stm32mp1.S -DDTB_BIN_PATH=\"$<\" \ -c plat/st/stm32mp1/stm32mp1.S -o $@ -${STM32_TF_LINKERFILE}: plat/st/stm32mp1/stm32mp1.ld.S ${BUILD_PLAT} - @echo " LDS $<" - ${Q}${AS} ${ASFLAGS} ${TF_CFLAGS} -P -E $< -o $@ +$(eval $(call MAKE_LD,${STM32_TF_LINKERFILE},plat/st/stm32mp1/stm32mp1.ld.S,2)) tf-a-%.elf: stm32mp1-%.o ${STM32_TF_LINKERFILE} @echo " LDS $<" |