From b7baaaf782f40bf6a1d017a1f41480b6229a12c9 Mon Sep 17 00:00:00 2001 From: Ben Whitten Date: Fri, 17 Jun 2016 15:00:17 +0100 Subject: kernel: Move append-dtb to common image-commands This build step is used by various targets, move it to a common section. Signed-off-by: Ben Whitten --- include/image-commands.mk | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') diff --git a/include/image-commands.mk b/include/image-commands.mk index e156eb6004..e8549d46f6 100644 --- a/include/image-commands.mk +++ b/include/image-commands.mk @@ -38,6 +38,11 @@ define Build/tplink-safeloader $(if $(findstring sysupgrade,$(word 1,$(1))),-S) && mv $@.new $@ || rm -f $@ endef +define Build/append-dtb + $(if $(DEVICE_DTS_DIR),$(call Image/BuildDTB,$(DEVICE_DTS_DIR)/$(DEVICE_DTS).dts,$(DTS_DIR)/$(DEVICE_DTS).dtb)) + cat $(DTS_DIR)/$(DEVICE_DTS).dtb >> $@ +endef + define Build/fit $(TOPDIR)/scripts/mkits.sh \ -D $(DEVICE_NAME) -o $@.its -k $@ \ -- cgit v1.2.3