Openwrt/include
Matthias Schiffer 4bd7990488
build: compress kernel debuginfo using zstd
zstd with its default settings (compression level -3) compresses better
than bzip2 -9 (which is the default setting), and is an order of magnitude
faster.

I made the following measurements for the most common compression tools
(all standard Debian Buster versions, default flags unless noted
otherwise), using the debug information of a large x86-64 kernel with
ALL_KMODS:

* kernel-debug.tar: 376M
* kernel-debug.tar.gz: 101M, compressed in ~12s
* kernel-debug.tar.bz2: 91M, compressed in ~15s
* kernel-debug.tar.xz: 57M, compressed in ~101s
* kernel-debug.tar.zst: 86M, compressed in ~1s

With zstd, there is still some room for improvement by increasing the
compression, but the slight increase in compression ratio
(22.83% -> 19.46%) does not justify the significant increase in
compression time (about 5 times on my machine) in my opinion.

Note that multithreaded compression (-T argument) does not affect
reproducibility with zstd.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
2020-05-31 11:03:31 +02:00
..
site Revert faulty tree push 2019-08-12 12:27:06 +02:00
autotools.mk autotools.mk: autoreconf: fix missing install-sh 2019-07-26 08:09:16 +02:00
cmake.mk cmake: Install host packages to lib instead of lib64 2019-12-23 00:22:07 +01:00
debug.mk
depends.mk
device_table.txt
download.mk build: add zstd support to pack/unpack functions 2020-05-31 11:03:30 +02:00
feeds.mk build: suppress error output in feeds.mk 2019-03-22 00:40:29 +01:00
hardened-ld-pie.specs
hardening.mk buildsystem: Make PIE ASLR option tristate 2020-01-13 15:34:36 +01:00
host-build.mk build: call Host/Uninstall before wiping the host build dir 2019-10-21 14:18:17 +02:00
image-commands.mk build: image: set default parameter for check-size 2020-03-21 19:59:08 +01:00
image-legacy.mk
image.mk treewide: convert sed -r to posix -E 2020-04-04 11:28:15 +01:00
kernel-build.mk build: compress kernel debuginfo using zstd 2020-05-31 11:03:31 +02:00
kernel-defaults.mk kernel-defaults: ensure SOURCE_DATE_EPOCH on /init 2019-10-02 17:11:44 +02:00
kernel-version.mk kernel: bump 5.4 to 5.4.42 2020-05-20 15:26:22 +02:00
kernel.mk build: move symvers files to kernel build dir 2020-04-09 09:54:02 +02:00
netfilter.mk kernel: netfilter.mk: fix kmod-ipt-nat6 installation on 5.4 2020-04-20 15:07:17 +02:00
nls.mk
package-bin.mk
package-defaults.mk
package-dumpinfo.mk
package-ipkg.mk buildsystem: add CPE information to ipkg packages and manifest files 2020-05-05 22:07:59 +02:00
package-seccomp.mk
package.mk build: Remove STAGING_DIR_HOST references for InstallDev/UninstallDev 2020-03-01 21:35:59 +01:00
prereq-build.mk build: prereq: change minimum make version to 3.82 2020-04-29 14:26:23 +01:00
prereq.mk build: cleanup possibly dangling Python 2 host symlink 2019-07-26 08:09:16 +02:00
quilt.mk
rootfs.mk rootfs.mk: ensure all timestamp are set to SOURCE_DATE_EPOCH 2019-09-21 03:26:38 +02:00
scan.awk
scan.mk build: have scripts/feeds honor all toplevel .mk-files of a feed 2019-10-27 14:32:13 +01:00
shell.sh
subdir.mk
target.mk kernel: remove further obsolete kernel version switches 2020-01-18 19:39:05 +01:00
toolchain-build.mk
toplevel.mk build: add option to treat recursive deps as error 2020-05-20 17:03:45 +02:00
u-boot.mk u-boot.mk: switch download to https 2020-04-26 21:20:47 +02:00
uclibc++.mk libcxx: Add package 2019-12-23 00:22:07 +01:00
unpack.mk build: add zstd support to pack/unpack functions 2020-05-31 11:03:30 +02:00
verbose.mk
version.mk version.mk: use https:// instead of http:// 2019-06-11 01:49:44 +02:00