X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fopenwrt.git;a=blobdiff_plain;f=target%2Flinux%2Farchs38%2Fimage%2FMakefile;fp=target%2Flinux%2Farchs38%2Fimage%2FMakefile;h=e9aac1f688f47633bfc18feef51fc939fd3d3cf2;hp=62d5fb3e2184f3c953222d0d8996ada1b1fcebda;hb=b9713ad6305c075c4388bce6cce7f5cb9bfe4104;hpb=4ce3c416965e1d08728833cc7d074688041c163e diff --git a/target/linux/archs38/image/Makefile b/target/linux/archs38/image/Makefile index 62d5fb3e21..e9aac1f688 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