[U-Boot] [PATCH] arm: stm32mp1: deploy spl in root folder

Patrick Delaunay patrick.delaunay at st.com
Mon Jan 28 10:13:27 UTC 2019


Update generation of spl binaries
- continue to generate all SPL files in spl sub-directory
- copy in root folder the needed file for user (YOCTO, buildroot):
  u-boot-spl.stm32



Signed-off-by: Patrick Delaunay <patrick.delaunay at st.com>
---
Hi,

This patch update http://patchwork.ozlabs.org/patch/1020706 already merged
in u-boot/master.

In fact, it is my v2 proposal to avoid to change the current behavior:
I prefer to keep all the spl generation in spl directory
but I agree to copy the generated file in root folder:
it can be easier for end-user.

This patch avoid to break current behavior, and current upstream effort
of stm32mp1 bsp in YOCTO.

Patrick


 arch/arm/mach-stm32mp/config.mk | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/arch/arm/mach-stm32mp/config.mk b/arch/arm/mach-stm32mp/config.mk
index 124729c..f371aac 100644
--- a/arch/arm/mach-stm32mp/config.mk
+++ b/arch/arm/mach-stm32mp/config.mk
@@ -7,7 +7,10 @@ ALL-$(CONFIG_SPL_BUILD) += u-boot-spl.stm32
 
 MKIMAGEFLAGS_u-boot-spl.stm32 = -T stm32image -a $(CONFIG_SPL_TEXT_BASE) -e $(CONFIG_SPL_TEXT_BASE)
 
-u-boot-spl.stm32: MKIMAGEOUTPUT = u-boot-spl.stm32.log
+spl/u-boot-spl.stm32: MKIMAGEOUTPUT = spl/u-boot-spl.stm32.log
 
-u-boot-spl.stm32: spl/u-boot-spl.bin FORCE
+spl/u-boot-spl.stm32: spl/u-boot-spl.bin FORCE
 	$(call if_changed,mkimage)
+
+u-boot-spl.stm32 : spl/u-boot-spl.stm32
+	$(call if_changed,copy)
-- 
2.7.4



More information about the U-Boot mailing list