hc
2023-11-06 9df731a176aab8e03b984b681b1bea01ccff6644
u-boot/arch/arm/dts/Makefile
....@@ -453,12 +453,14 @@
453453 dtb-$(CONFIG_ARCH_STI) += stih410-b2260.dtb
454454
455455 # Compile embeded kernel dts to dtb, and put it behind of u-boot.dtb
456
+ifeq ($(findstring arch/arm/dts/,$(EMBED_KERN_DTB_PATH)),arch/arm/dts/)
456457 EMBED_KERN_DTB_PATH := $(CONFIG_EMBED_KERNEL_DTB_PATH:"%"=%)
457458 EMBED_KERN_DTS_PATH := $(subst dtb,dts, $(EMBED_KERN_DTB_PATH))
458459 ifneq ($(wildcard $(EMBED_KERN_DTS_PATH)),)
459460 EMBED_KERN_DTB=$(shell echo $(EMBED_KERN_DTB_PATH) | awk -F '/' '{ print $$NF }')
460461 dtb-y += $(EMBED_KERN_DTB)
461462 endif
463
+endif
462464
463465 targets += $(dtb-y)
464466