dkms: compile kernel scripts on target for cross-compiled architectures (restore changes)
This commit is contained in:
parent
950f5b2be4
commit
002729d098
2 changed files with 11 additions and 3 deletions
|
@ -17,6 +17,10 @@ if [ ! -e /lib/modules/${VERSION}/build/include ] ; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ ! -f /lib/modules/${VERSION}/build/scripts/basic/fixdep ] ; then
|
||||||
|
make -C /lib/modules/${VERSION}/build scripts
|
||||||
|
fi
|
||||||
|
|
||||||
# Check available DKMS modules
|
# Check available DKMS modules
|
||||||
for _mod_ in /var/lib/dkms/*; do
|
for _mod_ in /var/lib/dkms/*; do
|
||||||
[ ! -d ${_mod_} ] && continue
|
[ ! -d ${_mod_} ] && continue
|
||||||
|
|
|
@ -1,16 +1,20 @@
|
||||||
# Template file for 'dkms'
|
# Template file for 'dkms'
|
||||||
pkgname=dkms
|
pkgname=dkms
|
||||||
version=2.6.1
|
version=2.6.1
|
||||||
revision=3
|
revision=4
|
||||||
conf_files="/etc/dkms/framework.conf"
|
conf_files="/etc/dkms/framework.conf"
|
||||||
depends="bash kmod gcc make coreutils linux-headers"
|
depends="bash kmod gcc make coreutils linux-headers"
|
||||||
homepage="https://github.com/dell/dkms"
|
|
||||||
distfiles="${homepage}/archive/v${version}.tar.gz"
|
|
||||||
short_desc="Dynamic Kernel Modules System"
|
short_desc="Dynamic Kernel Modules System"
|
||||||
maintainer="Juan RP <xtraeme@voidlinux.org>"
|
maintainer="Juan RP <xtraeme@voidlinux.org>"
|
||||||
license="GPL-2.0-or-later"
|
license="GPL-2.0-or-later"
|
||||||
|
homepage="https://github.com/dell/dkms"
|
||||||
|
distfiles="${homepage}/archive/v${version}.tar.gz"
|
||||||
checksum=9a34f42a80e01682efcb13c513692e72f1d21570bbc7a9eba855dde30f116ce7
|
checksum=9a34f42a80e01682efcb13c513692e72f1d21570bbc7a9eba855dde30f116ce7
|
||||||
|
|
||||||
|
if [ "$CROSS_BUILD" ]; then
|
||||||
|
depends+=" libressl-devel gmp-devel libada-devel libmpc-devel"
|
||||||
|
fi
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
# We are only interested in the bare minimum.
|
# We are only interested in the bare minimum.
|
||||||
vbin dkms
|
vbin dkms
|
||||||
|
|
Loading…
Reference in a new issue