kirkwood: enable dts compilation
authorLuka Perkov <luka@openwrt.org>
Thu, 3 Oct 2013 02:50:03 +0000 (02:50 +0000)
committerLuka Perkov <luka@openwrt.org>
Thu, 3 Oct 2013 02:50:03 +0000 (02:50 +0000)
In 3.10 we might build those, so for now just add this functionality.

Signed-off-by: Luka Perkov <luka@openwrt.org>
SVN-Revision: 38297

target/linux/kirkwood/image/Makefile

index dbf8877652734f2b8b9b31e7f2cd5504e81bb7c0..51af440d34e4c93d6bcc563cdc62cdfec5e45b87 100644 (file)
@@ -17,6 +17,12 @@ endif
 endef
 
 define Image/Build
+       $(foreach board,$(BOARDS),
+               $(LINUX_DIR)/scripts/dtc/dtc \
+                       -O dtb -o $(BIN_DIR)/$(IMG_PREFIX)-$(board).dtb \
+                       -I dts $(LINUX_DIR)/arch/arm/boot/dts/kirkwood-$(board).dts ;
+       )
+
        $(if $(Image/Build/$(1)), \
                $(call Image/Build/$(1),$(1)), \
                $(CP) $(KDIR)/root.$(1) $(BIN_DIR)/$(IMG_PREFIX)-$(1).img \