@ -12,10 +12,14 @@ ifeq ($(DEVICE_TREE),)
DEVICE_TREE := unset
DEVICE_TREE := unset
e n d i f
e n d i f
ARCH_PATH := arch/$( ARCH) /dts
dtb_depends := arch-dtbs
i f n e q ( $( EXT_DTB ) , )
i f n e q ( $( EXT_DTB ) , )
DTB := $( EXT_DTB)
DTB := $( EXT_DTB)
e l s e
e l s e
DTB := arch/$( ARCH) /dts/$( DEVICE_TREE) .dtb
DTB := $( ARCH_PATH) /$( DEVICE_TREE) .dtb
dtb_depends += $( DTB:.dtb= .dts)
e n d i f
e n d i f
$(obj)/dt.dtb : $( DTB ) FORCE
$(obj)/dt.dtb : $( DTB ) FORCE
@ -23,7 +27,10 @@ $(obj)/dt.dtb: $(DTB) FORCE
targets += dt.dtb
targets += dt.dtb
$(DTB) : arch -dtbs
$(DTB) : $( dtb_depends )
i f e q ( $( EXT_DTB ) , )
$( Q) $( MAKE) $( build) = $( ARCH_PATH) $@
e n d i f
$( Q) test -e $@ || ( \
$( Q) test -e $@ || ( \
echo >& 2; \
echo >& 2; \
echo >& 2 "Device Tree Source is not correctly specified." ; \
echo >& 2 "Device Tree Source is not correctly specified." ; \
@ -33,7 +40,7 @@ $(DTB): arch-dtbs
/bin/false)
/bin/false)
arch-dtbs :
arch-dtbs :
$( Q) $( MAKE) $( build) = arch/ $( ARCH) /dts dtbs
$( Q) $( MAKE) $( build) = $( ARCH_PATH ) dtbs
.SECONDARY : $( obj ) /dt .dtb .S
.SECONDARY : $( obj ) /dt .dtb .S