Skip to contentSkip to conversation

rockchip: make_fit_atf.py depends on u-boot

PATCH In review Andreas Färber 2 participants 3 messages Jun 3, 2018 – Oct 4, 2018 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rockchip: make_fit_atf.py depends on u-boot

u-boot.itb depends on u-boot-nodtb.bin, which in turn depends on u-boot. u-boot.its from Rockchip make_fit_atf.py (used by {evb,firefly}-rk3399) wants to read u-boot but is lacking this dependency, so that u-boot.itb cannot be built in one go. Detect its use and add the missing dependency.

---
 Makefile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
Makefile +4 -1
index f31ee60e4c..3723346c4f 100644
@@ -1051,7 +1051,10 @@ U_BOOT_ITS = $(subst ",,$(CONFIG_SPL_FIT_SOURCE))
 else
 ifneq ($(CONFIG_SPL_FIT_GENERATOR),"")
 U_BOOT_ITS := u-boot.its
-$(U_BOOT_ITS): FORCE
+ifeq ($(CONFIG_SPL_FIT_GENERATOR),"arch/arm/mach-rockchip/make_fit_atf.py")
+U_BOOT_ITS_DEPS += u-boot
+endif
+$(U_BOOT_ITS): $(U_BOOT_ITS_DEPS) FORCE
 	$(srctree)/$(CONFIG_SPL_FIT_GENERATOR) \
 	$(patsubst %,arch/$(ARCH)/dts/%.dtb,$(subst ",,$(CONFIG_OF_LIST))) > $@
 endif
Signature · 1 line
2.16.3
Reviewed-by on v1 1/1
#1 lore raw
Quoted 11 lines

u-boot.itb depends on u-boot-nodtb.bin, which in turn depends on u-boot. u-boot.its from Rockchip make_fit_atf.py (used by {evb,firefly}-rk3399) wants to read u-boot but is lacking this dependency, so that u-boot.itb cannot be built in one go. Detect its use and add the missing dependency.

---
 Makefile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
#2 lore raw
In reply to Andreas Färber
Quoted 11 lines

u-boot.itb depends on u-boot-nodtb.bin, which in turn depends on u-boot. u-boot.its from Rockchip make_fit_atf.py (used by {evb,firefly}-rk3399) wants to read u-boot but is lacking this dependency, so that u-boot.itb cannot be built in one go. Detect its use and add the missing dependency.

---
 Makefile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

Applied to u-boot-rockchip, thanks!