endif
### Image scripts ###
-define Build/build-dtb
- $(call Image/BuildDTB,$(DTS_DIR)/$(DEVICE_DTS).dts,$@.dtb)
-endef
-
define Build/gen-cfg
cat config.txt > $@.config
echo -e "\ndevice_tree=$(DEVICE_DTS).dtb" >> $@.config
mcopy -i $@.boot cmdline.txt ::
mcopy -i $@.boot $@.config ::config.txt
mcopy -i $@.boot $(word 1,$^) ::kernel.img
- mcopy -i $@.boot $@.dtb ::$(DEVICE_DTS).dtb
+ mcopy -i $@.boot $(DTS_DIR)/$(DEVICE_DTS).dtb ::$(DEVICE_DTS).dtb
endef
define Build/sdcard-img
PROFILES = Default $$(DEVICE_PROFILE)
KERNEL := kernel-bin
IMAGES := sdcard.bin
- IMAGE/sdcard.bin := build-dtb | gen-cfg | boot-img | sdcard-img
+ IMAGE/sdcard.bin := gen-cfg | boot-img | sdcard-img
DEVICE_PROFILE :=
DEVICE_DTS :=
endef