Files
2022-02-08 11:20:42 -08:00

19 lines
418 B
Bash

#!/usr/bin/env bash
set -euo pipefail
# This file actually compiles the Linux Kernel
source INFO
SCRIPT_DIR="$(dirname -- "$(readlink -f -- "${BASH_SOURCE[0]}")")"
NUM_JOBS=`nproc`
echo "==> Using all available cores to compile the Linux Kernel. If you want to use less, then edit this build.sh file."
echo "==> Building the Linux Kernel..."
cd $SCRIPT_DIR/${KERNEL_DIR}
make all -j${NUM_JOBS}
echo "==> Done."