dkms: build 'prepare0' instead of 'scripts'
to ensure modpost is built on the host else modules don't build on crossbuilt kernels >= 5.0 since linux/60df1aee2aecb53efb4218b4dfdf7d6c80a5a3de moved modpost from target 'scripts' to 'prepare0'. The same has been applied to xbps-triggers/dkms
This commit is contained in:
parent
d8c718525e
commit
ae715228a2
2 changed files with 3 additions and 3 deletions
|
@ -19,8 +19,8 @@ fi
|
||||||
|
|
||||||
export IGNORE_CC_MISMATCH=1
|
export IGNORE_CC_MISMATCH=1
|
||||||
|
|
||||||
if [ ! -f /lib/modules/${VERSION}/build/scripts/basic/fixdep ] ; then
|
if [ ! -f /lib/modules/${VERSION}/build/scripts/basic/fixdep ] || [ ! -f /lib/modules/${VERSION}/build/scripts/mod/modpost ]; then
|
||||||
yes "" | make -j $(nproc) -C /lib/modules/${VERSION}/build scripts
|
yes "" | make -j $(nproc) -C /lib/modules/${VERSION}/build prepare0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check available DKMS modules
|
# Check available DKMS modules
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'dkms'
|
# Template file for 'dkms'
|
||||||
pkgname=dkms
|
pkgname=dkms
|
||||||
version=2.8.3
|
version=2.8.3
|
||||||
revision=2
|
revision=3
|
||||||
conf_files="/etc/dkms/framework.conf"
|
conf_files="/etc/dkms/framework.conf"
|
||||||
depends="bash kmod gcc make coreutils"
|
depends="bash kmod gcc make coreutils"
|
||||||
short_desc="Dynamic Kernel Modules System"
|
short_desc="Dynamic Kernel Modules System"
|
||||||
|
|
Loading…
Reference in a new issue