Skip to content

Commit

Permalink
Arch Linux: Set number of jobs to MAKEFLAGS
Browse files Browse the repository at this point in the history
  • Loading branch information
takano32 committed Jul 11, 2023
1 parent 4f9e266 commit bcf4fca
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions archlinux/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@
set -eux

BUILD_DIR=/build-kernel/build
SUDO="sudo -u takano32"
SUDO="sudo -Eu takano32"

mkdir -p $BUILD_DIR
chown -R takano32:takano32 $BUILD_DIR

cd $BUILD_DIR
$SUDO asp update linux
$SUDO asp export linux
Expand All @@ -18,6 +17,10 @@ $SUDO git config --global http.postBuffer 524288000
while :; do $SUDO makepkg -o --skippgpcheck && break || sleep 5; done

# `makepkg` in `$BUILD_DIR/linux`
JOBS=$(getconf _NPROCESSORS_ONLN)
JOBS=$(expr "$JOBS" + "$JOBS")
MAKEFLAGS="-j$(JOBS)"
export MAKEFLAGS
$SUDO makepkg --skippgpcheck

cd $BUILD_DIR
Expand Down

0 comments on commit bcf4fca

Please sign in to comment.