build-and-push: use ccache and more jobs
Attempt to improve rebuild speed by using ccache and more jobs than processors. Kernel build time is set to empty to avoid caching misses due to changing timestamps. Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
This commit is contained in:
parent
2f62c69a0c
commit
43a44932cc
@ -65,7 +65,9 @@ git restore .
|
||||
popd
|
||||
|
||||
install -vm0644 "$GIT_LINUX_PATCHES"/config/x86_64/"$LINUX_CONFIG" "$LINUX_BUILD"/.config
|
||||
make -C"$GIT_LINUX" -j"$(nproc)" O="$LINUX_BUILD"
|
||||
CCACHE_DIR=/mnt/extssd/ccache/cache CCACHE_TEMPDIR=/mnt/extssd/ccache/temp \
|
||||
KBUILD_BUILD_TIMESTAMP='' \
|
||||
make -C"$GIT_LINUX" -j"$(( $(nproc) + 5 ))" CC='ccache cc' O="$LINUX_BUILD"
|
||||
|
||||
$SSH -- rm -fr "$TARGET_BUILD"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user