mirror of
https://github.com/lgcosta/pf-linux-port.git
synced 2026-11-12 22:38:03 -03:00
fix(build): resolve the kernel tree in one place
kernel-config.sh looked for the tree two levels up and build-kernel.sh did not pass on the tree it had resolved, so a plain ./scripts/build-kernel.sh could configure one tree and build another. Both resolve <repo>/../linux-7.3.4.
This commit is contained in:
1 parent
dff2185b20
commit
131672d6ce
2 files changed
+6
-2
No files matched your search
@@ -4,7 +4,8 @@ set -euo pipefail
|
||||
REPO="$(cd "$(dirname "$0")/.." && pwd)"
|
||||
K="${KERNELDIR:-$(cd "$REPO/../linux-7.3.4" && pwd)}"
|
||||
cd "$K"
|
||||
"$REPO/scripts/kernel-config.sh" "${1:-}"
|
||||
# kernel-config.sh must configure the *same* tree we are about to build.
|
||||
KERNELDIR="$K" "$REPO/scripts/kernel-config.sh" "${1:-}"
|
||||
JOBS="${JOBS:-$(($(nproc)-2))}"
|
||||
make -j"$JOBS" -s bzImage modules_prepare
|
||||
# External module builds need Module.symvers (kbuild only writes
|
||||
|
||||
@@ -3,7 +3,10 @@
|
||||
# defconfig baseline + direct-kernel-boot deps. Idempotent.
|
||||
# `kernel-config.sh test` additionally enables DEBUG_KMEMLEAK (soak builds).
|
||||
set -euo pipefail
|
||||
K="${KERNELDIR:-$(cd "$(dirname "$0")/../../linux_kernel/linux-7.3.4" && pwd)}"
|
||||
REPO="$(cd "$(dirname "$0")/.." && pwd)"
|
||||
# Default: the kernel tree next to the repository (pf_port/../linux-7.3.4),
|
||||
# same rule as build-kernel.sh / build-module.sh.
|
||||
K="${KERNELDIR:-$REPO/../linux-7.3.4}"
|
||||
cd "$K"
|
||||
[ -f .config ] || make defconfig
|
||||
scripts/config --file .config \
|
||||
|
||||
Reference in new issue
Block a user