mirror of https://github.com/openwall/lkrg.git
11 lines
328 B
Bash
Executable File
11 lines
328 B
Bash
Executable File
#!/bin/bash -eux
|
|
# mkosi.build - Compile and install module into DESTDIR.
|
|
|
|
KERNELRELEASE=$(ls -d /lib/modules/* | sort -V | tail -1)
|
|
KERNELRELEASE=${KERNELRELEASE##/lib/modules/}
|
|
export KERNELRELEASE
|
|
|
|
banner build $KERNELRELEASE >&2
|
|
make -j$(nproc)
|
|
install -Dpm 644 p_lkrg.ko $DESTDIR/lib/modules/$KERNELRELEASE/extra/p_lkrg.ko
|