removal of extramodules
This commit is contained in:
parent
7d16cc3620
commit
5f5b261f60
2 changed files with 10 additions and 18 deletions
2
.SRCINFO
2
.SRCINFO
|
@ -30,7 +30,7 @@ pkgbase = linux-clear
|
||||||
sha256sums = SKIP
|
sha256sums = SKIP
|
||||||
sha256sums = 8c11086809864b5cef7d079f930bd40da8d0869c091965fa62e95de9a0fe13b5
|
sha256sums = 8c11086809864b5cef7d079f930bd40da8d0869c091965fa62e95de9a0fe13b5
|
||||||
sha256sums = dbf4ac4b873ce6972e63b78d74ddba18f2701716163bb7f4b4fe5e909346a6e1
|
sha256sums = dbf4ac4b873ce6972e63b78d74ddba18f2701716163bb7f4b4fe5e909346a6e1
|
||||||
sha256sums = ae2e95db94ef7176207c690224169594d49445e04249d2499e9d2fbc117a0b21
|
sha256sums = 452b8d4d71e1565ca91b1bebb280693549222ef51c47ba8964e411b2d461699c
|
||||||
sha256sums = c043f3033bb781e2688794a59f6d1f7ed49ef9b13eb77ff9a425df33a244a636
|
sha256sums = c043f3033bb781e2688794a59f6d1f7ed49ef9b13eb77ff9a425df33a244a636
|
||||||
sha256sums = ed9d35cb7d7bd829ff6253353efa5e2d119820fe4f4310aea536671f5e4caa37
|
sha256sums = ed9d35cb7d7bd829ff6253353efa5e2d119820fe4f4310aea536671f5e4caa37
|
||||||
sha256sums = ad6344badc91ad0630caacde83f7f9b97276f80d26a20619a87952be65492c65
|
sha256sums = ad6344badc91ad0630caacde83f7f9b97276f80d26a20619a87952be65492c65
|
||||||
|
|
26
PKGBUILD
26
PKGBUILD
|
@ -152,8 +152,8 @@ CONFIG_MODULE_COMPRESS_XZ=y|' ./.config
|
||||||
fi
|
fi
|
||||||
|
|
||||||
### Prepared version
|
### Prepared version
|
||||||
make -s kernelrelease > ../version
|
make -s kernelrelease > version
|
||||||
msg2 "Prepared %s version %s" "$pkgbase" "$(<../version)"
|
msg2 "Prepared %s version %s" "$pkgbase" "$(<version)"
|
||||||
|
|
||||||
### Optionally load needed modules for the make localmodconfig
|
### Optionally load needed modules for the make localmodconfig
|
||||||
# See https://aur.archlinux.org/packages/modprobed-db
|
# See https://aur.archlinux.org/packages/modprobed-db
|
||||||
|
@ -195,11 +195,11 @@ _package() {
|
||||||
backup=("etc/mkinitcpio.d/${pkgbase}.preset")
|
backup=("etc/mkinitcpio.d/${pkgbase}.preset")
|
||||||
install=linux.install
|
install=linux.install
|
||||||
|
|
||||||
|
cd $_srcname
|
||||||
|
|
||||||
local kernver="$(<version)"
|
local kernver="$(<version)"
|
||||||
local modulesdir="$pkgdir/usr/lib/modules/$kernver"
|
local modulesdir="$pkgdir/usr/lib/modules/$kernver"
|
||||||
|
|
||||||
cd ${_srcname}
|
|
||||||
|
|
||||||
msg2 "Installing boot image..."
|
msg2 "Installing boot image..."
|
||||||
# systemd expects to find the kernel here to allow hibernation
|
# systemd expects to find the kernel here to allow hibernation
|
||||||
# https://github.com/systemd/systemd/commit/edda44605f06a41fb86b7ab8128dcf99161d2344
|
# https://github.com/systemd/systemd/commit/edda44605f06a41fb86b7ab8128dcf99161d2344
|
||||||
|
@ -212,13 +212,6 @@ _package() {
|
||||||
msg2 "Installing modules..."
|
msg2 "Installing modules..."
|
||||||
make INSTALL_MOD_PATH="$pkgdir/usr" modules_install
|
make INSTALL_MOD_PATH="$pkgdir/usr" modules_install
|
||||||
|
|
||||||
# a place for external modules,
|
|
||||||
# with version file for building modules and running depmod from hook
|
|
||||||
local extramodules="extramodules$_kernelname"
|
|
||||||
local extradir="$pkgdir/usr/lib/modules/$extramodules"
|
|
||||||
install -Dt "$extradir" -m644 ../version
|
|
||||||
ln -sr "$extradir" "$modulesdir/extramodules"
|
|
||||||
|
|
||||||
# remove build and source links
|
# remove build and source links
|
||||||
rm "$modulesdir"/{source,build}
|
rm "$modulesdir"/{source,build}
|
||||||
|
|
||||||
|
@ -228,7 +221,6 @@ _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
|
|
||||||
"
|
"
|
||||||
|
|
||||||
# hack to allow specifying an initially nonexisting install file
|
# hack to allow specifying an initially nonexisting install file
|
||||||
|
@ -252,12 +244,12 @@ _package() {
|
||||||
_package-headers() {
|
_package-headers() {
|
||||||
pkgdesc="Header files and scripts for building modules for linux-clear"
|
pkgdesc="Header files and scripts for building modules for linux-clear"
|
||||||
|
|
||||||
|
cd ${_srcname}
|
||||||
local builddir="$pkgdir/usr/lib/modules/$(<version)/build"
|
local builddir="$pkgdir/usr/lib/modules/$(<version)/build"
|
||||||
|
|
||||||
cd ${_srcname}
|
|
||||||
|
|
||||||
msg2 "Installing build files..."
|
msg2 "Installing build files..."
|
||||||
install -Dt "$builddir" -m644 Makefile .config Module.symvers System.map vmlinux
|
install -Dt "$builddir" -m644 .config Makefile Module.symvers System.map \
|
||||||
|
localversion.* version vmlinux
|
||||||
install -Dt "$builddir/kernel" -m644 kernel/Makefile
|
install -Dt "$builddir/kernel" -m644 kernel/Makefile
|
||||||
install -Dt "$builddir/arch/x86" -m644 arch/x86/Makefile
|
install -Dt "$builddir/arch/x86" -m644 arch/x86/Makefile
|
||||||
cp -t "$builddir" -a scripts
|
cp -t "$builddir" -a scripts
|
||||||
|
@ -321,7 +313,7 @@ _package-headers() {
|
||||||
|
|
||||||
msg2 "Adding symlink..."
|
msg2 "Adding symlink..."
|
||||||
mkdir -p "$pkgdir/usr/src"
|
mkdir -p "$pkgdir/usr/src"
|
||||||
ln -sr "$builddir" "$pkgdir/usr/src/$pkgbase-$pkgver"
|
ln -sr "$builddir" "$pkgdir/usr/src/$pkgbase"
|
||||||
|
|
||||||
msg2 "Fixing permissions..."
|
msg2 "Fixing permissions..."
|
||||||
chmod -Rc u=rwX,go=rX "$pkgdir"
|
chmod -Rc u=rwX,go=rX "$pkgdir"
|
||||||
|
@ -341,7 +333,7 @@ sha256sums=('78f3c397513cf4ff0f96aa7d09a921d003e08fa97c09e0bb71d88211b40567b2'
|
||||||
'SKIP'
|
'SKIP'
|
||||||
'8c11086809864b5cef7d079f930bd40da8d0869c091965fa62e95de9a0fe13b5'
|
'8c11086809864b5cef7d079f930bd40da8d0869c091965fa62e95de9a0fe13b5'
|
||||||
'dbf4ac4b873ce6972e63b78d74ddba18f2701716163bb7f4b4fe5e909346a6e1'
|
'dbf4ac4b873ce6972e63b78d74ddba18f2701716163bb7f4b4fe5e909346a6e1'
|
||||||
'ae2e95db94ef7176207c690224169594d49445e04249d2499e9d2fbc117a0b21'
|
'452b8d4d71e1565ca91b1bebb280693549222ef51c47ba8964e411b2d461699c'
|
||||||
'c043f3033bb781e2688794a59f6d1f7ed49ef9b13eb77ff9a425df33a244a636'
|
'c043f3033bb781e2688794a59f6d1f7ed49ef9b13eb77ff9a425df33a244a636'
|
||||||
'ed9d35cb7d7bd829ff6253353efa5e2d119820fe4f4310aea536671f5e4caa37'
|
'ed9d35cb7d7bd829ff6253353efa5e2d119820fe4f4310aea536671f5e4caa37'
|
||||||
'ad6344badc91ad0630caacde83f7f9b97276f80d26a20619a87952be65492c65')
|
'ad6344badc91ad0630caacde83f7f9b97276f80d26a20619a87952be65492c65')
|
||||||
|
|
Reference in a new issue