Skip to contentSkip to conversation

uboot: ensure u-boot-dtb.img gets built if enabled

PATCH New Peter Korsgaard 1 participant 2 messages May 2, 2016 – May 5, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 uboot: ensure u-boot-dtb.img gets built if enabled

u-boot-dtb.img only gets built by default (all target) if CONFIG_OF_SEPARATE _AND_ CONFIG_SPL_FRAMEWORK are enabled.

Certain SoCs (E.G. Action Semi S500) use a proprietary first level bootloader instead of u-boot SPL, but still use u-boot-dtb.img as the first level bootloader parses the uImage header for size/loadaddr.

Ensure u-boot-dtb.img gets built if enabled by explicitly listing it as a u-boot make target (next to all) to support such setups.

---
 boot/uboot/uboot.mk | 1 +
 1 file changed, 1 insertion(+)
boot/uboot/uboot.mk +1 -0
index 48f40c3..e071303 100644
@@ -50,6 +50,7 @@ else ifeq ($(BR2_TARGET_UBOOT_FORMAT_NAND_BIN),y)
 UBOOT_BIN = u-boot-nand.bin
 else ifeq ($(BR2_TARGET_UBOOT_FORMAT_DTB_IMG),y)
 UBOOT_BIN = u-boot-dtb.img
+UBOOT_MAKE_TARGET = all $(UBOOT_BIN)
 else ifeq ($(BR2_TARGET_UBOOT_FORMAT_IMG),y)
 UBOOT_BIN = u-boot.img
 else ifeq ($(BR2_TARGET_UBOOT_FORMAT_IMX),y)
Signature · 1 line
2.7.0
#1 lore raw

PATCH 1/1 uboot: ensure u-boot-dtb.img gets built if enabled

Quoted 5 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Peter" == Peter Korsgaard <[email protected]> writes:

u-boot-dtb.img only gets built by default (all target) if CONFIG_OF_SEPARATE _AND_ CONFIG_SPL_FRAMEWORK are enabled.

Quoted 8 lines

Certain SoCs (E.G. Action Semi S500) use a proprietary first level bootloader instead of u-boot SPL, but still use u-boot-dtb.img as the first level bootloader parses the uImage header for size/loadaddr.

Ensure u-boot-dtb.img gets built if enabled by explicitly listing it as a u-boot make target (next to all) to support such setups.

Committed, thanks.

Signature · 2 lines
Venlig hilsen,
Peter Korsgaard