Remove $basever from extramodules dir

This commit is contained in:
Jan Alexander Steffens 2018-08-01 20:53:02 +00:00
parent dfa0f63a8f
commit 747ab96eea
1 changed files with 2 additions and 3 deletions

View File

@ -73,7 +73,6 @@ _package() {
install=linux.install install=linux.install
local kernver="$(<version)" local kernver="$(<version)"
local basever="$(<version cut -d. -f1-2)"
cd $_srcname cd $_srcname
@ -87,7 +86,7 @@ _package() {
# a place for external modules, # a place for external modules,
# with version file for building modules and running depmod from hook # with version file for building modules and running depmod from hook
local extradir="$pkgdir/usr/lib/modules/extramodules-$basever$_kernelname" local extradir="$pkgdir/usr/lib/modules/extramodules$_kernelname"
install -Dt "$extradir" -m644 ../version install -Dt "$extradir" -m644 ../version
ln -sr "$extradir" "$modulesdir/extramodules" ln -sr "$extradir" "$modulesdir/extramodules"
@ -103,7 +102,7 @@ _package() {
local subst=" local subst="
s|%PKGBASE%|$pkgbase|g s|%PKGBASE%|$pkgbase|g
s|%KERNVER%|$kernver|g s|%KERNVER%|$kernver|g
s|%EXTRAMODULES%|$extramodules|g s|%EXTRAMODULES%|$extradir|g
" "
# hack to allow specifying an initially nonexisting install file # hack to allow specifying an initially nonexisting install file