Quellcode durchsuchen

sunxi: respect CONFIG_TARGET_IMAGES_GZIP

Signed-off-by: Matthias Schiffer <[email protected]>

SVN-Revision: 46608
Zoltan Herpai vor 10 Jahren
Ursprung
Commit
1c66ebcd2d
1 geänderte Dateien mit 4 neuen und 0 gelöschten Zeilen
  1. 4 0
      target/linux/sunxi/image/Makefile

+ 4 - 0
target/linux/sunxi/image/Makefile

@@ -45,6 +45,10 @@ define Image/Build/SDCard
 		$(CONFIG_SUNXI_SD_BOOT_PARTSIZE) \
 		$(CONFIG_TARGET_ROOTFS_PARTSIZE) \
 		$(KDIR)/uboot-sunxi-$(PROFILE)-u-boot-with-spl.bin
+
+  ifneq ($(CONFIG_TARGET_IMAGES_GZIP),)
+	gzip -f9n $(BIN_DIR)/$(IMG_PREFIX)-$(PROFILE)-sdcard-vfat-$(1).img
+  endif
 endef
 
 define Image/Build/Profile/A10-OLinuXino-Lime