diff options
| -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 \ |
