summaryrefslogtreecommitdiff
path: root/target/linux/kirkwood
diff options
context:
space:
mode:
authorLuka Perkov <luka@openwrt.org>2013-10-03 02:50:03 +0000
committerLuka Perkov <luka@openwrt.org>2013-10-03 02:50:03 +0000
commit5617993e1059509ab09b1f3f210634c1f6a48af8 (patch)
tree048a9b2e2a606a59890e1f3a380d29351cbf923f /target/linux/kirkwood
parenta30df8987d472e727bdd8b482e386b223b55c024 (diff)
downloadmtk-20170518-5617993e1059509ab09b1f3f210634c1f6a48af8.zip
mtk-20170518-5617993e1059509ab09b1f3f210634c1f6a48af8.tar.gz
mtk-20170518-5617993e1059509ab09b1f3f210634c1f6a48af8.tar.bz2
kirkwood: enable dts compilation
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
Diffstat (limited to 'target/linux/kirkwood')
-rw-r--r--target/linux/kirkwood/image/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/target/linux/kirkwood/image/Makefile b/target/linux/kirkwood/image/Makefile
index dbf8877..51af440 100644
--- a/target/linux/kirkwood/image/Makefile
+++ b/target/linux/kirkwood/image/Makefile
@@ -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 \