You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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>
4 years ago
..
site Revert faulty tree push 5 years ago
autotools.mk autotools.mk: autoreconf: fix missing install-sh 5 years ago
cmake.mk cmake: Install host packages to lib instead of lib64 4 years ago
debug.mk include: remove trailing whitespaces 9 years ago
depends.mk build: add missing wildcard for ignoring .pkgdir in dependency checks 7 years ago
device_table.txt image: ensure that /dev/console exist in rootfs images 11 years ago
download.mk build: add zstd support to pack/unpack functions 4 years ago
feeds.mk build: suppress error output in feeds.mk 5 years ago
hardened-ld-pie.specs build: add hardened builds with PIE (ASLR) support 6 years ago
hardening.mk buildsystem: Make PIE ASLR option tristate 4 years ago
host-build.mk build: call Host/Uninstall before wiping the host build dir 5 years ago
image-commands.mk build: image: set default parameter for check-size 4 years ago
image-legacy.mk image: fix ar71xx legacy images 7 years ago
image.mk treewide: convert sed -r to posix -E 4 years ago
kernel-build.mk build: compress kernel debuginfo using zstd 4 years ago
kernel-defaults.mk kernel-defaults: ensure SOURCE_DATE_EPOCH on /init 5 years ago
kernel-version.mk kernel: bump 5.4 to 5.4.42 4 years ago
kernel.mk build: move symvers files to kernel build dir 4 years ago
netfilter.mk kernel: netfilter.mk: fix kmod-ipt-nat6 installation on 5.4 4 years ago
nls.mk treewide: fix build depends to refer to source package names 6 years ago
package-bin.mk build: use if-then to avoid non-zero return codes in bin/ packaging code 7 years ago
package-defaults.mk include/package-defaults.mk: fix default Build/Prepare with empty ./src 6 years ago
package-dumpinfo.mk build: expose ABI version in .packageauxvars 5 years ago
package-ipkg.mk buildsystem: add CPE information to ipkg packages and manifest files 4 years ago
package-seccomp.mk include: add a seccomp filter install wrapper 9 years ago
package.mk build: Remove STAGING_DIR_HOST references for InstallDev/UninstallDev 4 years ago
prereq-build.mk build: prereq: change minimum make version to 3.82 4 years ago
prereq.mk build: cleanup possibly dangling Python 2 host symlink 5 years ago
quilt.mk build: Use LINUX_DIR for Kernel/Patch 5 years ago
rootfs.mk rootfs.mk: ensure all timestamp are set to SOURCE_DATE_EPOCH 5 years ago
scan.awk build: propagate override information to .packageinfo 9 years ago
scan.mk build: have scripts/feeds honor all toplevel .mk-files of a feed 5 years ago
shell.sh build: use mkhash to replace various quirky md5sum/openssl calls 7 years ago
subdir.mk build: remove GNU time dependency 6 years ago
target.mk kernel: remove further obsolete kernel version switches 4 years ago
toolchain-build.mk toolchain: Include hardening.mk for toolchain build 5 years ago
toplevel.mk build: add option to treat recursive deps as error 4 years ago
u-boot.mk u-boot.mk: switch download to https 4 years ago
uclibc++.mk libcxx: Add package 4 years ago
unpack.mk build: add zstd support to pack/unpack functions 4 years ago
verbose.mk include/verbose.mk: Add sc to failure message 6 years ago
version.mk version.mk: use https:// instead of http:// 5 years ago