Skip to contentSkip to conversation

Makefile: build u-boot before running its generator

PATCH New Mian Yousaf Kaukab 1 participant 2 messages May 30, 2018 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Makefile: build u-boot before running its generator

SPL_FIT_GENERATOR may need to access u-boot binaries for generating u-boot.its file. For example arch/arm/mach-rockchip/make_fit_atf.py requires u-boot elf. Add u-boot-nodtb.bin as dependency for U_BOOT_ITS so that u-boot binaries are available when SPL_FIT_GENERATOR is run with parallel make.

---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Makefile +1 -1
index d08fb6a54d..54557d62b8 100644
@@ -1060,7 +1060,7 @@ U_BOOT_ITS = $(subst ",,$(CONFIG_SPL_FIT_SOURCE))
 else
 ifneq ($(CONFIG_SPL_FIT_GENERATOR),"")
 U_BOOT_ITS := u-boot.its
-$(U_BOOT_ITS): FORCE
+$(U_BOOT_ITS): u-boot-nodtb.bin FORCE
 	$(srctree)/$(CONFIG_SPL_FIT_GENERATOR) \
 	$(patsubst %,arch/$(ARCH)/dts/%.dtb,$(subst ",,$(CONFIG_OF_LIST))) > $@
 endif
Signature · 1 line
2.11.0
#1 lore raw

PATCH 1/1 Makefile: build u-boot before running its generator

Quoted 17 lines · Mian Yousaf Kaukab

SPL_FIT_GENERATOR may need to access u-boot binaries for generating u-boot.its file. For example arch/arm/mach-rockchip/make_fit_atf.py requires u-boot elf. Add u-boot-nodtb.bin as dependency for U_BOOT_ITS so that u-boot binaries are available when SPL_FIT_GENERATOR is run with parallel make.

---
  Makefile | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
Makefile +0 -0
index d08fb6a54d..54557d62b8 100644

Makefile U_BOOT_ITS = $(subst ",,$(CONFIG_SPL_FIT_SOURCE)) · line 1063

Quoted 5 lines
Makefile +1 -1
@@ -1060,7 +1060,7 @@ U_BOOT_ITS = $(subst ",,$(CONFIG_SPL_FIT_SOURCE))
  else
  ifneq ($(CONFIG_SPL_FIT_GENERATOR),"")
  U_BOOT_ITS := u-boot.its
-$(U_BOOT_ITS): FORCE
+$(U_BOOT_ITS): u-boot-nodtb.bin FORCE

spl is not being built even after adding this.

Makefile U_BOOT_ITS = $(subst ",,$(CONFIG_SPL_FIT_SOURCE)) · line 1066

Quoted 4 lines
Makefile +0 -0
  	$(srctree)/$(CONFIG_SPL_FIT_GENERATOR) \
  	$(patsubst %,arch/$(ARCH)/dts/%.dtb,$(subst ",,$(CONFIG_OF_LIST))) > $@
  endif

BR,
Yousaf