Compare commits

...

5 Commits

Author SHA1 Message Date
0fd3dc7497
build-and-push: improve final message
Avoid redundant printing of the closing messages by disabling
verbose mode prior.

Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
2024-08-24 17:50:24 +02:00
fa50d8cb9d
build-and-push/install: set install jobs
As the target now resides on SSD storage, increasing the jobs
for module installations might be beneficial.

Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
2024-08-24 17:50:23 +02:00
43a44932cc
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>
2024-08-24 17:43:53 +02:00
2f62c69a0c
build-and-push: remove quiet flag from ssh
Show more useful errors if SSH fails.

Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
2024-08-24 17:42:14 +02:00
bd9361429f
build-and-push: change directories
Use a mounted SSD to improve speed.

Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
2024-08-24 17:41:26 +02:00
2 changed files with 10 additions and 7 deletions

View File

@ -23,9 +23,9 @@
set -Ceux
GIT_LINUX=~/Work/git/linux
GIT_LINUX=/mnt/extssd/git/linux
GIT_LINUX_PATCHES=~/Work/git/kernel-source
LINUX_BUILD=~/Work/kernel-build
LINUX_BUILD=/mnt/extssd/build/linux
LINUX_CONFIG=default
LINUX_VERSION=6.4.0-"$LINUX_CONFIG"-dirty
@ -36,7 +36,7 @@ TARGET_PIPE=/run/user/"$(id -u)"/bisect
TARGET_BUILD=/tmp/build
SSH_KEY=~/.ssh/bisect.pub
SSH="ssh -i $SSH_KEY -q -l $TARGET_USER $TARGET_HOST"
SSH="ssh -i $SSH_KEY -l $TARGET_USER $TARGET_HOST"
if ! $SSH -- true
then
@ -65,13 +65,15 @@ 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"
rsync --exclude='.tmp*' --info=progress2 -lr "$LINUX_BUILD"/ "$TARGET_USER"@"$TARGET_HOST":"$TARGET_BUILD"
$SSH -- make -C/usr/src/linux O="$TARGET_BUILD" modules_install
$SSH -- make -C/usr/src/linux -j16 O="$TARGET_BUILD" modules_install
$SSH -- make -C/usr/src/linux O="$TARGET_BUILD" install
VMLINUZ=/boot/vmlinuz-"$GIT_COMMIT"
@ -82,6 +84,7 @@ $SSH -- dracut --kernel-image "$VMLINUZ" "$INITRD" "$LINUX_VERSION"
$SSH -- grub2-mkconfig -o /boot/grub2/grub.cfg
ROOT="$($SSH -- blkid -o value -s UUID -t LABEL=ROOT)"
echo "Root partition UUID: $ROOT"
set +x
echo "Root partition UUID: $ROOT"
echo 'Now reboot, test, and update the bisection.'

View File

@ -18,7 +18,7 @@
builddir=/tmp/build
commit="${1?Specify commit hash}"
make -C/usr/src/linux -j6 O="$builddir" modules_install
make -C/usr/src/linux -j16 O="$builddir" modules_install
make -C/usr/src/linux O="$builddir" install
VMLINUZ=/boot/vmlinuz-"$commit"