Jump to content

[Armbian build PR] - Use multithreading in xz compression for kernel `make` and change KBUILD to `build@armbian`


RSS Bot

Recommended Posts

Description

Add parallel compression for xz with the option XZ_OPT="--threads=0"

gzip and bzip were already using parallel compressors. xz has this option built-in, so add the argument to make use of it.

Source: https://lore.kernel.org/lkml/20200901151002.988547791@linuxfoundation.org/

Also change KBUILD user and host to make cat /proc/version show something like Linux version 6.9.8 (build@armbian) instead of Linux version 6.9.8 (armbian@next). build@armbian refers to the Armbian build framework (this repository)

How Has This Been Tested?

  • [x] ./compile.sh build BOARD=nanopi-r6c BRANCH=edge BUILD_DESKTOP=no BUILD_MINIMAL=no EXPERT=yes KERNEL_CONFIGURE=no RELEASE=trixie
  • [ ] Benchmark could be done, but I don't know how I can force a full kernel rebuild without using any caching at all

Checklist:

  • [x] My code follows the style guidelines of this project
  • [x] I have performed a self-review of my own code
  • [x] I have commented my code, particularly in hard-to-understand areas
  • [x] My changes generate no new warnings
  • [x] Any dependent changes have been merged and published in downstream modules

View the full article

Link to comment
Share on other sites

Armbian & Khadas are rewarding contributors

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines