0014-sunxi-respect-CONFIG_TARGET_IMAGES_GZIP.patch 731 B

123456789101112131415161718192021
  1. From: Matthias Schiffer <mschiffer@universe-factory.net>
  2. Date: Thu, 16 Jul 2015 22:13:59 +0200
  3. Subject: sunxi: respect CONFIG_TARGET_IMAGES_GZIP
  4. The ext4 images are huge uncompressed.
  5. diff --git a/target/linux/sunxi/image/Makefile b/target/linux/sunxi/image/Makefile
  6. index 19ab935..d3f4409 100644
  7. --- a/target/linux/sunxi/image/Makefile
  8. +++ b/target/linux/sunxi/image/Makefile
  9. @@ -43,6 +43,10 @@ define Image/Build/SDCard
  10. $(CONFIG_SUNXI_SD_BOOT_PARTSIZE) \
  11. $(CONFIG_TARGET_ROOTFS_PARTSIZE) \
  12. $(KDIR)/uboot-sunxi-$(PROFILE)-u-boot-with-spl.bin
  13. +
  14. + ifneq ($(CONFIG_TARGET_IMAGES_GZIP),)
  15. + gzip -f9n $(BIN_DIR)/$(IMG_PREFIX)-$(PROFILE)-sdcard-vfat-$(1).img
  16. + endif
  17. endef
  18. define Image/Build/Profile/A10-OLinuXino-Lime