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:
lgcosta committed 2026-11-12 20:11:02 -03:00
1 parent dff2185b20
commit 131672d6ce
2 files changed
+6 -2

No files matched your search

+4 -1
View File
@@ -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 \