[source] archs38: build dtb files in Image/Prepare so that they are available for Device/*

LEDE Commits lede-commits at lists.infradead.org
Wed Jan 11 07:35:06 PST 2017


nbd pushed a commit to source.git, branch master:
https://git.lede-project.org/b9713ad6305c075c4388bce6cce7f5cb9bfe4104

commit b9713ad6305c075c4388bce6cce7f5cb9bfe4104
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Wed Jan 11 16:25:48 2017 +0100

    archs38: build dtb files in Image/Prepare so that they are available for Device/*
    
    Signed-off-by: Felix Fietkau <nbd at nbd.name>
---
 target/linux/archs38/image/Makefile | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/target/linux/archs38/image/Makefile b/target/linux/archs38/image/Makefile
index 62d5fb3..e9aac1f 100644
--- a/target/linux/archs38/image/Makefile
+++ b/target/linux/archs38/image/Makefile
@@ -40,6 +40,13 @@ DEVICE_DTS_LIST:= axs103_idu nsim_hs_idu
 FAT32_BLOCK_SIZE=1024
 FAT32_BLOCKS=$(shell echo $$(($(CONFIG_AXS10X_SD_BOOT_PARTSIZE)*1024*1024/$(FAT32_BLOCK_SIZE))))
 
+define Image/Prepare
+	# Build .dtb for all boards we may run on
+	$(foreach dts,$(DEVICE_DTS_LIST),
+		$(call Image/BuildDTB,$(DTS_DIR)/$(dts).dts,$(DTS_DIR)/$(dts).dtb)
+	)
+endef
+
 define Image/Build/SDCard
 	rm -f $(KDIR_TMP)/$(IMG_PREFIX)-$(PROFILE)-boot.img
 	mkfs.fat $(KDIR_TMP)/$(IMG_PREFIX)-$(PROFILE)-boot.img -C $(FAT32_BLOCKS)
@@ -68,11 +75,6 @@ define Image/BuildKernel
 		$(KDIR)/vmlinux, \
 		$(BIN_DIR)/$(IMG_PREFIX)-uImage \
 	)
-
-	# Build .dtb for all boards we may run on
-	$(foreach dts,$(DEVICE_DTS_LIST),
-		$(call Image/BuildDTB,$(DTS_DIR)/$(dts).dts,$(DTS_DIR)/$(dts).dtb)
-	)
 endef
 
 define Image/Build



More information about the lede-commits mailing list