diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-10-26 23:59:52 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-10-26 23:59:52 +0900 |
| commit | 672cf9abcac6f25abfdd2541cae6455c6da38fc3 (patch) | |
| tree | e063250d519fd6da87c20f1224e0af9c70985980 | |
| parent | 868e5931a9048c7b4b964225a9d23558082e4434 (diff) | |
internal/rosa/package/kernel: oldconfig wrapper
This makes updating kernel configuration much easier, removing the need
to manually edit the generated script.
Signed-off-by: Ophestra <cat@gensokyo.uk>
| -rw-r--r-- | internal/rosa/package/kernel/oldconfig | 2 | ||||
| -rw-r--r-- | internal/rosa/package/kernel/package.az | 9 |
2 files changed, 10 insertions, 1 deletions
diff --git a/internal/rosa/package/kernel/oldconfig b/internal/rosa/package/kernel/oldconfig new file mode 100644 index 00000000..8e3fdff3 --- /dev/null +++ b/internal/rosa/package/kernel/oldconfig @@ -0,0 +1,2 @@ +#!/bin/sh +ROSA_MAKE_TARGET=oldconfig exec /system/all diff --git a/internal/rosa/package/kernel/package.az b/internal/rosa/package/kernel/package.az index 2f28e1d2..3f5c5c36 100644 --- a/internal/rosa/package/kernel/package.az +++ b/internal/rosa/package/kernel/package.az @@ -100,6 +100,8 @@ package kernel { ".installkernel": "installkernel"; ".depmod": "depmod"; + + "/system/oldconfig": "oldconfig"; }; env = [ @@ -143,10 +145,15 @@ install -Dm0500 \ "KBUILD_BUILD_TIMESTAMP='2106-02-07 06:28:15 UTC'", "KBUILD_BUILD_USER=kbuild", "KBUILD_BUILD_HOST=localhost", - "all", + `"${ROSA_MAKE_TARGET:-all}"`, ]; install = ` +if [ -n "${ROSA_MAKE_TARGET+x}" ]; then + mv -fv /tmp/kbuild/.config /work + exit 0 +fi + # kernel is not aware of kmod moduledir install -Dm0500 \ /usr/src/.depmod \ |
