[source] build: enable gzipping of images on x86 even if ext4 is disabled

LEDE Commits lede-commits at lists.infradead.org
Thu Jul 6 02:30:47 PDT 2017


nbd pushed a commit to source.git, branch master:
https://git.lede-project.org/7887a46f4533e4ba6de0f24ea9a9fc838d0ea7aa

commit 7887a46f4533e4ba6de0f24ea9a9fc838d0ea7aa
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Mon Mar 27 15:18:22 2017 +0200

    build: enable gzipping of images on x86 even if ext4 is disabled
    
    There is lots of padding between the boot partition and the rootfs, so
    gzipping is helpful here
    
    Signed-off-by: Felix Fietkau <nbd at nbd.name>
---
 config/Config-images.in         | 2 +-
 target/linux/x86/image/Makefile | 6 ++----
 2 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/config/Config-images.in b/config/Config-images.in
index 95752f7..55aff7d 100644
--- a/config/Config-images.in
+++ b/config/Config-images.in
@@ -242,7 +242,7 @@ menu "Target Images"
 
 	config TARGET_IMAGES_GZIP
 		bool "GZip images"
-		depends on TARGET_IMAGES_PAD || TARGET_ROOTFS_EXT4FS
+		depends on TARGET_IMAGES_PAD || TARGET_ROOTFS_EXT4FS || TARGET_x86
 		default y
 
 	comment "Image Options"
diff --git a/target/linux/x86/image/Makefile b/target/linux/x86/image/Makefile
index ca5d012..d3005d7 100644
--- a/target/linux/x86/image/Makefile
+++ b/target/linux/x86/image/Makefile
@@ -153,11 +153,9 @@ ifneq ($(CONFIG_TARGET_IMAGES_GZIP),)
   define Image/Build/gzip/ext4
 	$(call Image/Build/gzip,ext4)
   endef
-  ifneq ($(CONFIG_TARGET_IMAGES_PAD),)
-    define Image/Build/gzip/squashfs
+  define Image/Build/gzip/squashfs
 	$(call Image/Build/gzip,squashfs)
-    endef
-  endif
+  endef
 endif
 
 define Image/BuildKernel



More information about the lede-commits mailing list