Skip to content
Snippets Groups Projects
Commit 8935689a authored by Felix Fietkau's avatar Felix Fietkau
Browse files

mxs: gzip ext4 images


Significantly reduces disk usage

Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
parent 515d012e
No related branches found
No related tags found
No related merge requests found
...@@ -45,6 +45,7 @@ define Image/Build/SDCard-vfat-ext4 ...@@ -45,6 +45,7 @@ define Image/Build/SDCard-vfat-ext4
$(KDIR)/root.$(1) \ $(KDIR)/root.$(1) \
$(CONFIG_TARGET_BOOTFS_PARTSIZE) \ $(CONFIG_TARGET_BOOTFS_PARTSIZE) \
$(CONFIG_TARGET_ROOTFS_PARTSIZE) $(CONFIG_TARGET_ROOTFS_PARTSIZE)
$(call Image/Gzip,$(BIN_DIR)/$(2))
endef endef
define Image/Build/SDCard-ext4-ext4 define Image/Build/SDCard-ext4-ext4
...@@ -53,6 +54,7 @@ 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 \ $(BIN_DIR)/uboot-mxs-$(4)/uboot-mxs-$(4).sb \
$(KDIR)/root.$(1) \ $(KDIR)/root.$(1) \
$(CONFIG_TARGET_ROOTFS_PARTSIZE) $(CONFIG_TARGET_ROOTFS_PARTSIZE)
$(call Image/Gzip,$(BIN_DIR)/$(2))
endef endef
define Image/Build/Profile/olinuxino-maxi define Image/Build/Profile/olinuxino-maxi
...@@ -71,6 +73,7 @@ define Image/Build ...@@ -71,6 +73,7 @@ define Image/Build
$(call Image/Build/$(1),$(1)) $(call Image/Build/$(1),$(1))
$(call Image/Build/Profile/$(PROFILE),$(1),$(IMG_PREFIX)-$(PROFILE)-sdcard.img) $(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 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 endef
$(eval $(call BuildImage)) $(eval $(call BuildImage))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment