[source] build: add template for installing device .dtb files

LEDE Commits lede-commits at lists.infradead.org
Sun Jul 31 10:55:12 PDT 2016


nbd pushed a commit to source.git, branch master:
https://git.lede-project.org/?p=source.git;a=commitdiff;h=94dec60d75af4bfe87d51f6b7b05074bc69e40cd

commit 94dec60d75af4bfe87d51f6b7b05074bc69e40cd
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Sun Jul 31 19:25:32 2016 +0200

    build: add template for installing device .dtb files
    
    Signed-off-by: Felix Fietkau <nbd at nbd.name>
---
 include/image-commands.mk | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/include/image-commands.mk b/include/image-commands.mk
index 790e929..160b5d8 100644
--- a/include/image-commands.mk
+++ b/include/image-commands.mk
@@ -46,6 +46,14 @@ define Build/append-dtb
 	cat $@.dtb >> $@
 endef
 
+define Build/install-dtb
+	$(foreach dts,$(DEVICE_DTS), \
+		$(CP) \
+			$(DTS_DIR)/$(dts).dtb \
+			$(BIN_DIR)/$(IMG_PREFIX)-$(dts).dtb; \
+	)
+endef
+
 define Build/fit
 	$(TOPDIR)/scripts/mkits.sh \
 		-D $(DEVICE_NAME) -o $@.its -k $@ \



More information about the lede-commits mailing list