xbps-triggers: update to 0.126.

adds the ability to limit the number of makejobs to the dkms trigger
This commit is contained in:
classabbyamp 2023-09-30 21:45:14 -04:00 committed by classabbyamp
parent 6cb5dcabf9
commit 2a8eff2496
2 changed files with 7 additions and 4 deletions

View File

@ -52,6 +52,9 @@ remove_modules() {
add_modules() {
local rval=
[ -r /etc/default/dkms ] && . /etc/default/dkms
: "${DKMS_JOBS:=$(nproc)}"
# Add/build and install the specified modules for all kernels.
set -- ${dkms_modules}
while [ $# -gt 0 ]; do
@ -77,7 +80,7 @@ add_modules() {
fi
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
yes "" | make -j "$DKMS_JOBS" -C ${f}/build prepare0 > ${f}/build/make.log 2>&1
if [ $? -eq 0 ]; then
echo "done."
else
@ -89,7 +92,7 @@ add_modules() {
set -- ${dkms_modules}
while [ $# -gt 0 ]; do
echo -n "Building DKMS module '$1-$2' for kernel-${_kver}... "
$DKMS build -q -m "$1" -v "$2" -k "${_kver}" >/dev/null 2>&1
$DKMS build -j "${DKMS_JOBS}" -q -m "$1" -v "$2" -k "${_kver}" >/dev/null 2>&1
if [ $? -eq 0 ]; then
echo "done."
else
@ -99,7 +102,7 @@ add_modules() {
shift 2; continue
fi
echo -n "Installing DKMS module '$1-$2' for kernel-${_kver}... "
$DKMS install --force -q -m "$1" -v "$2" -k "${_kver}" >/dev/null 2>&1
$DKMS install --force -j "${DKMS_JOBS}" -q -m "$1" -v "$2" -k "${_kver}" >/dev/null 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.125
version=0.126
revision=1
bootstrap=yes
short_desc="XBPS triggers for Void Linux"