[openwrt/openwrt] realtek: Migrate to libdeflate

LEDE Commits lede-commits at lists.infradead.org
Mon Jan 2 01:37:32 PST 2023


svanheule pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/9260027535b8f7eab5481b7f545a3fc6477d14fa

commit 9260027535b8f7eab5481b7f545a3fc6477d14fa
Author: Olliver Schinagl <oliver at schinagl.nl>
AuthorDate: Wed Dec 14 15:16:33 2022 +0100

    realtek: Migrate to libdeflate
    
    Libdeflate is a more advanced gzip compressor, which allows for faster
    decompression, higher compression speed (factor 3-4), while being fully
    gzip compatible.
    
    Some comparison
    gzip    | libdeflate-gzip | delta  | image [openwrt-realtek-rtl839x-*]
    --------+-----------------+--------+-----------------------------------------------
    6589174 | 6298794         | 290380 | d-link_dgs-1210-52-initramfs-kernel.bin
    6291632 | 6029488         | 262144 | d-link_dgs-1210-52-squashfs-factory_image1.bin
    6292270 | 6030128         | 262142 | d-link_dgs-1210-52-squashfs-sysupgrade.bin
    6589142 | 6298760         | 290382 | zyxel_gs1900-48-initramfs-kernel.bin
    6292264 | 6030122         | 262142 | zyxel_gs1900-48-squashfs-sysupgrade.bin
    
    and changing lzma to (libdeflate-)gzip on existing rtl930x target:
    gzip    | libdeflate-gzip | delta  | image [openwrt-realtek-rtl930x-*]
    --------+-----------------+--------+--------------------------------------
    6816230 | 6510382         | 305848 | zyxel_xgs1250-12-initramfs-kernel.bin
    
    Signed-off-by: Olliver Schinagl <oliver at schinagl.nl>
    Reviewed-by: Robert Marko <robimarko at gmail.com>
    Reviewed-by: Rosen Penev <rosenp at gmail.com>
    Reviewed-by: Sander Vanheule <sander at svanheule.net>
---
 target/linux/realtek/image/Makefile   | 4 ++--
 target/linux/realtek/image/common.mk  | 4 ++--
 target/linux/realtek/image/rtl838x.mk | 2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/target/linux/realtek/image/Makefile b/target/linux/realtek/image/Makefile
index 66d7ee4895..7c5b67191c 100644
--- a/target/linux/realtek/image/Makefile
+++ b/target/linux/realtek/image/Makefile
@@ -90,12 +90,12 @@ define Device/Default
   KERNEL := \
 	kernel-bin | \
 	append-dtb | \
-	gzip | \
+	libdeflate-gzip | \
 	uImage gzip
   KERNEL_INITRAMFS := \
 	kernel-bin | \
 	append-dtb | \
-	gzip | \
+	libdeflate-gzip | \
 	uImage gzip
   DEVICE_DTS_DIR := ../dts-$(KERNEL_PATCHVER)
   DEVICE_DTS = $$(SOC)_$(1)
diff --git a/target/linux/realtek/image/common.mk b/target/linux/realtek/image/common.mk
index 702158978f..8f536bf15f 100644
--- a/target/linux/realtek/image/common.mk
+++ b/target/linux/realtek/image/common.mk
@@ -7,7 +7,7 @@ define Device/d-link_dgs-1210
   KERNEL := \
 	kernel-bin | \
 	append-dtb | \
-	gzip | \
+	libdeflate-gzip | \
 	uImage gzip | \
 	dlink-cameo
   CAMEO_KERNEL_PART := 2
@@ -60,7 +60,7 @@ define Device/zyxel_gs1900
   KERNEL_INITRAMFS := \
 	kernel-bin | \
 	append-dtb | \
-	gzip | \
+	libdeflate-gzip | \
 	zyxel-vers | \
 	uImage gzip
 endef
diff --git a/target/linux/realtek/image/rtl838x.mk b/target/linux/realtek/image/rtl838x.mk
index 8727bfa6fb..b2e0cc91be 100644
--- a/target/linux/realtek/image/rtl838x.mk
+++ b/target/linux/realtek/image/rtl838x.mk
@@ -70,7 +70,7 @@ define Device/engenius_ews2910p
   KERNEL_INITRAMFS := \
 	kernel-bin | \
 	append-dtb | \
-	gzip | \
+	libdeflate-gzip | \
 	uImage gzip -n 'IMG-0.00.00-c0.0.00'
 endef
 TARGET_DEVICES += engenius_ews2910p




More information about the lede-commits mailing list