[OpenWrt-Devel] [PATCH 0/2] Switch to zstd for kernel debuginfo compression

Matthias Schiffer mschiffer at universe-factory.net
Wed May 13 15:19:43 EDT 2020


We are looking into enabling CONFIG_COLLECT_KERNEL_DEBUG by default for
Gluona [1], but at the moment the increase in build time is prohibitive
for a fast development cycle: the bzip2 compression takes  18s on my
notebook, 15s on a more powerful machine - more than 10% of the total
incremental build time for a single device!

As it turns out, bzip2 is very far from state-of-the-art nowadays - I
was able to reduce the compression time to 1~2s and make the resulting
archive smaller at the same time by using zstd instead. See patch 2/2
for my benchmark results using different compression tools.

zstd has been available in major distros for a while now (at least
Debian oldstable), so making use of the resulting artifact should be
possible as easily as before. Direct support via the tar command was
added in GNU tar 1.31, release January 2019.


[1] https://github.com/freifunk-gluon/gluon/pull/1971


Matthias Schiffer (2):
  tools: add zstd
  build: compress kernel debuginfo using zstd

 include/kernel-build.mk                       |  2 +-
 tools/Makefile                                |  1 +
 tools/zstd/Makefile                           | 20 ++++++
 ...re-portable-header-prefix-usage-1987.patch | 61 +++++++++++++++++++
 4 files changed, 83 insertions(+), 1 deletion(-)
 create mode 100644 tools/zstd/Makefile
 create mode 100644 tools/zstd/patches/0001-build-issue-More-portable-header-prefix-usage-1987.patch

-- 
2.26.2


_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list