.. | .. |
---|
453 | 453 | dtb-$(CONFIG_ARCH_STI) += stih410-b2260.dtb |
---|
454 | 454 | |
---|
455 | 455 | # 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/) |
---|
456 | 457 | EMBED_KERN_DTB_PATH := $(CONFIG_EMBED_KERNEL_DTB_PATH:"%"=%) |
---|
457 | 458 | EMBED_KERN_DTS_PATH := $(subst dtb,dts, $(EMBED_KERN_DTB_PATH)) |
---|
458 | 459 | ifneq ($(wildcard $(EMBED_KERN_DTS_PATH)),) |
---|
459 | 460 | EMBED_KERN_DTB=$(shell echo $(EMBED_KERN_DTB_PATH) | awk -F '/' '{ print $$NF }') |
---|
460 | 461 | dtb-y += $(EMBED_KERN_DTB) |
---|
461 | 462 | endif |
---|
| 463 | +endif |
---|
462 | 464 | |
---|
463 | 465 | targets += $(dtb-y) |
---|
464 | 466 | |
---|