X-Git-Url: https://git.archive.openwrt.org/?p=openwrt.git;a=blobdiff_plain;f=target%2Flinux%2Fbrcm2708%2Fimage%2FMakefile;fp=target%2Flinux%2Fbrcm2708%2Fimage%2FMakefile;h=3744cace58ce695901a2285024da8ed5fde17dc1;hp=7a68c506cfb3a1734af73243c6e39a09e35c7f66;hb=251b0945ac327da94cbc8fc5c54403e230b368fe;hpb=c2d63cc0752dbd9cd31648a2fb744f80686759b0 diff --git a/target/linux/brcm2708/image/Makefile b/target/linux/brcm2708/image/Makefile index 7a68c506cf..3744cace58 100644 --- a/target/linux/brcm2708/image/Makefile +++ b/target/linux/brcm2708/image/Makefile @@ -21,6 +21,12 @@ else endef endif +define Image/Prepare + rm -rf $(KDIR)/overlays + mkdir -p $(KDIR)/overlays + $(CP) $(DTS_DIR)/overlays/*.dtb $(KDIR)/overlays/ +endef + ### Image scripts ### define Build/gen-cfg cat config.txt > $@.config @@ -41,6 +47,7 @@ define Build/boot-img mcopy -i $@.boot $@.config ::config.txt mcopy -i $@.boot $(word 1,$^) ::kernel.img mcopy -i $@.boot $(DTS_DIR)/$(DEVICE_DTS).dtb ::$(DEVICE_DTS).dtb + mcopy -s -i $@.boot $(KDIR)/overlays :: endef define Build/sdcard-img