]> git.apps.os.sepia.ceph.com Git - linux-firmware.git/commit
Add support to install files/symlinks in parallel.
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>
Wed, 1 Jan 2025 15:31:43 +0000 (00:31 +0900)
committerMario Limonciello <superm1@gmail.com>
Mon, 6 Jan 2025 03:05:13 +0000 (03:05 +0000)
commit2b781910a7d0a7fd67e3d4f40fd8178004c588bc
tree378d677cf7f42ccb92663c7b18851faec93a7111
parentc170fc69cf9e10a935b869777357e41bd89bd65d
Add support to install files/symlinks in parallel.

This reduces the install-zst target time from 100 s to 25 s on my test
system, a 400% speed improvement.

* Makefile (NUM_JOBS): New variable.
(install, install-xz, install-zst): Use it.
* copy-firmware.sh (num_jobs): New variable.
(has_gnu_parallel): New procedure.
<-j>: Parse new option, and use it along GNU parallel to parallelize
firmware copying and compression/symlink creation.

Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Makefile
copy-firmware.sh