xbps-triggers: dkms: build kernel scripts on target for cross-compiled architectures

This commit is contained in:
marmeladema 2019-02-13 23:28:18 +00:00 committed by Helmut Pozimski
parent 179e838f05
commit 3d2cfac8ce
2 changed files with 12 additions and 1 deletions

View file

@ -70,6 +70,17 @@ 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}... "
make -C ${f}/build scripts &> ${f}/build/make.log
if [ $? -eq 0 ]; then
echo "done."
else
echo "FAILED!"
echo "Kernel scripts failed to build, please check /${f}/build/make.log"
echo "for errors in the log file."
fi
fi
set -- ${dkms_modules}
while [ $# -gt 0 ]; do
echo -n "Building DKMS module '$1-$2' for kernel-${_kver}... "

View file

@ -1,6 +1,6 @@
# Template file for 'xbps-triggers'
pkgname=xbps-triggers
version=0.111
version=0.112
revision=1
noarch=yes
bootstrap=yes