0016-brcm2708-respect-CONFIG_TARGET_IMAGES_GZIP.patch 878 B

123456789101112131415161718192021
  1. From: Matthias Schiffer <mschiffer@universe-factory.net>
  2. Date: Fri, 10 Jul 2015 18:41:11 +0200
  3. Subject: brcm2708: respect CONFIG_TARGET_IMAGES_GZIP
  4. As the brcm2708 images use ext4, they will be huge when uncompressed.
  5. diff --git a/target/linux/brcm2708/image/Makefile b/target/linux/brcm2708/image/Makefile
  6. index e70bdd0..be667f3 100644
  7. --- a/target/linux/brcm2708/image/Makefile
  8. +++ b/target/linux/brcm2708/image/Makefile
  9. @@ -28,6 +28,10 @@ define Image/Build/RaspberryPi
  10. mcopy -i $(KDIR)/boot.img $(KDIR)/Image ::kernel.img # Copy OpenWrt built kernel
  11. ./gen_rpi_sdcard_img.sh $(BIN_DIR)/$(IMG_PREFIX)-sdcard-vfat-$(1).img $(KDIR)/boot.img $(KDIR)/root.$(1) \
  12. $(CONFIG_BRCM2708_SD_BOOT_PARTSIZE) $(CONFIG_TARGET_ROOTFS_PARTSIZE)
  13. +
  14. + ifneq ($(CONFIG_TARGET_IMAGES_GZIP),)
  15. + gzip -f9 $(BIN_DIR)/$(IMG_PREFIX)-sdcard-vfat-$(1).img
  16. + endif
  17. endef
  18. define Image/Build