mirror of https://github.com/hak5/openwrt.git
arc770: build dtb files in Image/Prepare so that they are available for Device/*
Signed-off-by: Felix Fietkau <nbd@nbd.name>lede-17.01
parent
b9713ad630
commit
90f0ca0ddc
|
@ -40,6 +40,13 @@ DEVICE_DTS_LIST:= axs101 nsim_700
|
||||||
FAT32_BLOCK_SIZE=1024
|
FAT32_BLOCK_SIZE=1024
|
||||||
FAT32_BLOCKS=$(shell echo $$(($(CONFIG_AXS10X_SD_BOOT_PARTSIZE)*1024*1024/$(FAT32_BLOCK_SIZE))))
|
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
|
define Image/Build/SDCard
|
||||||
rm -f $(KDIR_TMP)/$(IMG_PREFIX)-$(PROFILE)-boot.img
|
rm -f $(KDIR_TMP)/$(IMG_PREFIX)-$(PROFILE)-boot.img
|
||||||
mkfs.fat $(KDIR_TMP)/$(IMG_PREFIX)-$(PROFILE)-boot.img -C $(FAT32_BLOCKS)
|
mkfs.fat $(KDIR_TMP)/$(IMG_PREFIX)-$(PROFILE)-boot.img -C $(FAT32_BLOCKS)
|
||||||
|
@ -68,11 +75,6 @@ define Image/BuildKernel
|
||||||
$(KDIR)/vmlinux, \
|
$(KDIR)/vmlinux, \
|
||||||
$(BIN_DIR)/$(IMG_PREFIX)-uImage \
|
$(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
|
endef
|
||||||
|
|
||||||
define Image/Build
|
define Image/Build
|
||||||
|
|
Loading…
Reference in New Issue