X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=target%2Flinux%2Farmvirt%2Fimage%2FMakefile;h=0292dbab4213dd58c2973f8604e317cd99fa8783;hb=53f4a686aa8d0740c0a5b8626da6435c130de8d1;hp=73d9145e0eb714fa4afdaeb0ce9e6061fc685d56;hpb=d9426d537bcd35f4f748c985bc33f2861e0b3dd2;p=openwrt%2F.git diff --git a/target/linux/armvirt/image/Makefile b/target/linux/armvirt/image/Makefile index 73d9145e0e..0292dbab42 100644 --- a/target/linux/armvirt/image/Makefile +++ b/target/linux/armvirt/image/Makefile @@ -19,10 +19,16 @@ define Image/Build/Initramfs ) endef +define Image/Build/gzip + gzip -f9n $(BIN_DIR)/$(IMG_ROOTFS)-$(1).img +endef + +$(eval $(call Image/gzip-ext4-padded-squashfs)) + define Image/Build $(call Image/Build/$(1)) - dd if=$(KDIR)/root.$(1) bs=128k conv=sync | \ - gzip -9n >$(BIN_DIR)/$(IMG_PREFIX)-root.$(1).gz + $(CP) $(KDIR)/root.$(1) $(BIN_DIR)/$(IMG_ROOTFS)-$(1).img + $(call Image/Build/gzip/$(1)) endef $(eval $(call BuildImage))