mkosi: Make sure we build kernel headers

Required for building kernel selftests
This commit is contained in:
Daan De Meyer
2023-07-12 15:07:15 +01:00
committed by Luca Boccassi
parent c109cff9f9
commit 076deab75d
@@ -19,6 +19,7 @@ if [ -d "$SRCDIR"/mkosi.kernel/ ]; then
# Make sure systemd-boot boots this kernel and not the distro provided one by overriding the version.
make O="$BUILDDIR" VERSION=99 -j "$(nproc)"
make O="$BUILDDIR" VERSION=99 -j "$(nproc)" headers
KERNEL_RELEASE=$(make O="$BUILDDIR" VERSION=99 -s kernelrelease)
mkdir -p "$DESTDIR/usr/lib/modules/$KERNEL_RELEASE"