forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
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