Skip to contentSkip to conversation

arm, Makefile: Concatenation of u-boot-spl.bin and u-boot.img

PATCH Superseded Ashish Kumar 2 participants 3 messages Apr 27, 2017

Subsystems (2)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 2/3 arm, Makefile: Concatenation of u-boot-spl.bin and u-boot.img

Concatenation of u-boot-spl.bin and u-boot.img for NXP layerscape platform SoC: LS1088A/LS2080A and their variants

New Kconfig option added SPL_USE_HEADER for the same

---
 Makefile                                  | 14 +++++++++++++-
 arch/arm/cpu/armv8/fsl-layerscape/Kconfig |  7 +++++++
 2 files changed, 20 insertions(+), 1 deletion(-)
Makefile +13 -1
index 323d646..73b1854 100644
@@ -989,8 +989,20 @@ u-boot.dis:	u-boot
 ifdef CONFIG_TPL
 SPL_PAYLOAD := tpl/u-boot-with-tpl.bin
 else
+ifdef CONFIG_OF_CONTROL
+ifeq ($(CONFIG_SPL_USE_HEADER),y)
+SPL_PAYLOAD := u-boot-dtb.img
+else
+SPL_PAYLOAD := u-boot-dtb.bin
+endif   #ifeq ($(CONFIG_SPL_USE_HEADER),y)
+else
+ifeq ($(CONFIG_SPL_USE_HEADER),y)
+SPL_PAYLOAD := u-boot.img
+else
 SPL_PAYLOAD := u-boot.bin
-endif
+endif   #ifeq ($(CONFIG_SPL_USE_HEADER),y)
+endif	#ifdef CONFIG_OF_CONTROL
+endif	#ifdef CONFIG_TPL
 
 OBJCOPYFLAGS_u-boot-with-spl.bin = -I binary -O binary \
 				   --pad-to=$(CONFIG_SPL_PAD_TO)
arch/arm/cpu/armv8/fsl-layerscape/Kconfig +7 -0
index d539c95..2b3e612 100644
@@ -54,6 +54,7 @@ config ARCH_LS1088A
 	bool
 	select ARMV8_SET_SMPEN
 	select FSL_LSCH3
+	select SPL_USE_HEADER
 	select SYS_FSL_DDR
 	select SYS_FSL_DDR_LE
 	select SYS_FSL_DDR_VER_50
@@ -405,6 +406,12 @@ config SYS_FSL_ERRATUM_A009660
 config SYS_FSL_ERRATUM_A009929
 	bool
 
+config SPL_USE_HEADER
+	bool
+	depends on ARCH_LS1088A || ARCH_LS2080A
+	default y if ARCH_LS1088A
+	default y if ARCH_LS2080A
+
 config SYS_MC_RSV_MEM_ALIGN
 	hex "Management Complex reserved memory alignment"
 	depends on RESV_RAM
Signature · 1 line
2.7.4
#1 lore raw

PATCH 2/3 arm, Makefile: Concatenation of u-boot-spl.bin and u-boot.img

Quoted 10 lines · Ashish Kumar

Concatenation of u-boot-spl.bin and u-boot.img for NXP layerscape platform SoC: LS1088A/LS2080A and their variants

New Kconfig option added SPL_USE_HEADER for the same

---
 Makefile                                  | 14 +++++++++++++-
 arch/arm/cpu/armv8/fsl-layerscape/Kconfig |  7 +++++++
 2 files changed, 20 insertions(+), 1 deletion(-)

Ashish,

Please do NOT post on both internal and upstream mailing lists in the same thread. Any reply from outside will cause issue.

York

#2 lore raw

PATCH 2/3 arm, Makefile: Concatenation of u-boot-spl.bin and u-boot.img

In reply to Ashish Kumar
Quoted 4 lines · Ashish Kumar

Concatenation of u-boot-spl.bin and u-boot.img for NXP layerscape platform SoC: LS1088A/LS2080A and their variants

New Kconfig option added SPL_USE_HEADER for the same

I think the logic should be reversed. By default, let's use the image with header. For exceptions, use raw image.

York