Makefile: build u-boot before running its generator
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
@@ -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
PATCH 1/1 Makefile: build u-boot before running its generator
Quoted 17 lines · Mian Yousaf Kaukab
SPL_FIT_GENERATORmay need to access u-boot binaries for generating u-boot.its file. For examplearch/arm/mach-rockchip/make_fit_atf.pyrequires u-boot elf. Add u-boot-nodtb.bin as dependency forU_BOOT_ITSso that u-boot binaries are available whenSPL_FIT_GENERATORis run with parallel make.Suggested-by Petr Tesarik <[email protected]>Signed-off-by Mian Yousaf Kaukab <[email protected]>--- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Makefile +0
-0
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