mxs: gzip ext4 images
authorFelix Fietkau <nbd@nbd.name>
Fri, 13 Jan 2017 14:23:36 +0000 (15:23 +0100)
committerFelix Fietkau <nbd@nbd.name>
Fri, 13 Jan 2017 15:59:28 +0000 (16:59 +0100)
Significantly reduces disk usage

Signed-off-by: Felix Fietkau <nbd@nbd.name>
target/linux/mxs/image/Makefile

index efa4ded44a3fcdeaeb3e7be4ca2f158b5ea2d75d..1daa26e00e9de081bc04bab46fe9f20df6dd161c 100644 (file)
@@ -45,6 +45,7 @@ define Image/Build/SDCard-vfat-ext4
                $(KDIR)/root.$(1) \
                $(CONFIG_TARGET_BOOTFS_PARTSIZE) \
                $(CONFIG_TARGET_ROOTFS_PARTSIZE)
+       $(call Image/Gzip,$(BIN_DIR)/$(2))
 endef
 
 define Image/Build/SDCard-ext4-ext4
@@ -53,6 +54,7 @@ define Image/Build/SDCard-ext4-ext4
                $(BIN_DIR)/uboot-mxs-$(4)/uboot-mxs-$(4).sb \
                $(KDIR)/root.$(1) \
                $(CONFIG_TARGET_ROOTFS_PARTSIZE)
+       $(call Image/Gzip,$(BIN_DIR)/$(2))
 endef
 
 define Image/Build/Profile/olinuxino-maxi
@@ -71,6 +73,7 @@ define Image/Build
        $(call Image/Build/$(1),$(1))
        $(call Image/Build/Profile/$(PROFILE),$(1),$(IMG_PREFIX)-$(PROFILE)-sdcard.img)
        dd if=$(KDIR)/root.$(1) of=$(BIN_DIR)/$(IMG_PREFIX)-root.$(1) bs=128k conv=sync
+       $(call Image/Gzip,$(BIN_DIR)/$(IMG_PREFIX)-root.$(1))
 endef
 
 $(eval $(call BuildImage))