aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/apm821xx
diff options
context:
space:
mode:
authorChristian Lamparter <chunkeey@gmail.com>2023-01-02 11:04:11 +0100
committerChristian Lamparter <chunkeey@gmail.com>2023-03-26 16:39:37 +0200
commit4ca858f1a082414bf7ace719c1b61ae54fd8e015 (patch)
treeefac26f89a63ca90d2f264f4a7ed9c71be72f65a /target/linux/apm821xx
parent8634c1080d5033e8cf0069ee7447821726232b95 (diff)
downloadupstream-4ca858f1a082414bf7ace719c1b61ae54fd8e015.tar.gz
upstream-4ca858f1a082414bf7ace719c1b61ae54fd8e015.tar.bz2
upstream-4ca858f1a082414bf7ace719c1b61ae54fd8e015.zip
apm821xx: Migrate to libdeflate
libdeflate's gzip compressor provides a better compression ratio and uboot's decompressor has no problem with the data streams. Tested on MX60, WNDR4700, WNDAP660 Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
Diffstat (limited to 'target/linux/apm821xx')
-rw-r--r--target/linux/apm821xx/image/nand.mk6
-rw-r--r--target/linux/apm821xx/image/sata.mk8
2 files changed, 7 insertions, 7 deletions
diff --git a/target/linux/apm821xx/image/nand.mk b/target/linux/apm821xx/image/nand.mk
index db3c9c0722..1d28df98e5 100644
--- a/target/linux/apm821xx/image/nand.mk
+++ b/target/linux/apm821xx/image/nand.mk
@@ -51,7 +51,7 @@ define Device/meraki_mx60
IMAGES := sysupgrade.bin
DTB_SIZE := 20480
IMAGE_SIZE := 1021m
- KERNEL := kernel-bin | gzip | dtb | MuImage-initramfs gzip
+ KERNEL := kernel-bin | libdeflate-gzip | dtb | MuImage-initramfs gzip
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
UBINIZE_OPTS := -E 5
DEVICE_COMPAT_VERSION := 2.0
@@ -70,7 +70,7 @@ define Device/netgear_wndap6x0
IMAGE_SIZE := 27392k
IMAGES := sysupgrade.bin factory.img
KERNEL_SIZE := 6080k
- KERNEL := dtb | kernel-bin | gzip | MuImage-initramfs gzip
+ KERNEL := dtb | kernel-bin | libdeflate-gzip | MuImage-initramfs gzip
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
IMAGE/factory.img := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi
UBINIZE_OPTS := -E 5
@@ -114,7 +114,7 @@ define Device/netgear_wndr4700
# CHECK_DNI_FIRMWARE_ROOTFS_INTEGRITY in do_chk_dniimg()
KERNEL := kernel-bin | lzma -d16 | uImage lzma | pad-offset $$(BLOCKSIZE) 64 | \
append-uImage-fakehdr filesystem | dtb | create-uImage-dtb | prepend-dtb
- KERNEL_INITRAMFS := kernel-bin | gzip | dtb | MuImage-initramfs gzip
+ KERNEL_INITRAMFS := kernel-bin | libdeflate-gzip | dtb | MuImage-initramfs gzip
IMAGE/factory.img := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | \
netgear-dni | check-size
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
diff --git a/target/linux/apm821xx/image/sata.mk b/target/linux/apm821xx/image/sata.mk
index 89af488e09..8a9bd57988 100644
--- a/target/linux/apm821xx/image/sata.mk
+++ b/target/linux/apm821xx/image/sata.mk
@@ -12,14 +12,14 @@ define Device/wd_mybooklive
SUPPORTED_DEVICES += mbl wd,mybooklive-duo
BLOCKSIZE := 1k
DTB_SIZE := 16384
- KERNEL := kernel-bin | dtb | gzip | uImage gzip
- KERNEL_INITRAMFS := kernel-bin | gzip | dtb | MuImage-initramfs gzip
+ KERNEL := kernel-bin | dtb | libdeflate-gzip | uImage gzip
+ KERNEL_INITRAMFS := kernel-bin | libdeflate-gzip | dtb | MuImage-initramfs gzip
IMAGES := factory.img.gz sysupgrade.img.gz
ARTIFACTS := apollo3g.dtb
DEVICE_DTB := apollo3g.dtb
FILESYSTEMS := ext4 squashfs
- IMAGE/factory.img.gz := boot-script | boot-img | hdd-img | gzip
- IMAGE/sysupgrade.img.gz := boot-script | boot-img | hdd-img | gzip | append-metadata
+ IMAGE/factory.img.gz := boot-script | boot-img | hdd-img | libdeflate-gzip
+ IMAGE/sysupgrade.img.gz := boot-script | boot-img | hdd-img | libdeflate-gzip | append-metadata
ARTIFACT/apollo3g.dtb := export-dtb
endef