xbps-triggers: (dkms) build 'prepare0' instead of 'scripts'

to ensure modpost is built on the host else modules don't build on
crossbuilt kernels >= 5.0 sinc
    linux/60df1aee2aecb53efb4218b4dfdf7d6c80a5a3de
moved modpost from target 'scripts' to 'prepare0'.

The same has been applied to xbps-triggers/dkms
This commit is contained in:
Piraty 2020-09-12 15:16:49 +02:00 committed by Piraty
parent ae715228a2
commit 49b2a2e5b3
2 changed files with 4 additions and 4 deletions

View file

@ -70,9 +70,9 @@ add_modules() {
echo "Skipping kernel-${_kver}. kernel-headers package not installed..."
continue
fi
if [ ! -f ${f}/build/scripts/basic/fixdep ] ; then
echo -n "Building scripts for kernel-${_kver}... "
yes "" | make -j$(nproc) -C ${f}/build scripts > ${f}/build/make.log 2>&1
if [ ! -f ${f}/build/scripts/basic/fixdep ] || [ ! -f ${f}/build/scripts/mod/modpost ] ; then
echo -n "Prepare to build modules for kernel-${_kver}... "
yes "" | make -j$(nproc) -C ${f}/build prepare0 > ${f}/build/make.log 2>&1
if [ $? -eq 0 ]; then
echo "done."
else

View file

@ -1,6 +1,6 @@
# Template file for 'xbps-triggers'
pkgname=xbps-triggers
version=0.117
version=0.118
revision=1
bootstrap=yes
short_desc="XBPS triggers for Void Linux"