realtek: Migrate to libdeflate
authorOlliver Schinagl <oliver@schinagl.nl>
Wed, 14 Dec 2022 14:16:33 +0000 (15:16 +0100)
committerSander Vanheule <sander@svanheule.net>
Mon, 2 Jan 2023 09:18:44 +0000 (10:18 +0100)
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@schinagl.nl>
Reviewed-by: Robert Marko <robimarko@gmail.com>
Reviewed-by: Rosen Penev <rosenp@gmail.com>
Reviewed-by: Sander Vanheule <sander@svanheule.net>
target/linux/realtek/image/Makefile
target/linux/realtek/image/common.mk
target/linux/realtek/image/rtl838x.mk

index 66d7ee489548758f91ebe2aea4b881d5b45a3651..7c5b67191cb779f2d83b722ce2a6e3b6ab8221d5 100644 (file)
@@ -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)
index 702158978fa1e180887df8e42d0ee84f8b32a81e..8f536bf15f5886e3a94874d6a57c2fd4dafd9821 100644 (file)
@@ -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
index 8727bfa6fb1ddc50c6fabb52816d6c3f38bf6ace..b2e0cc91beb22668aa2b9a953eb48bf47db29727 100644 (file)
@@ -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