Browse Source

build: add template for installing device .dtb files

Signed-off-by: Felix Fietkau <[email protected]>
Felix Fietkau 9 years ago
parent
commit
94dec60d75
1 changed files with 8 additions and 0 deletions
  1. 8 0
      include/image-commands.mk

+ 8 - 0
include/image-commands.mk

@@ -46,6 +46,14 @@ define Build/append-dtb
 	cat [email protected] >> $@
 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 [email protected] -k $@ \