summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorOle Ernst2015-10-05 18:35:27 +0200
committerOle Ernst2015-10-05 18:35:27 +0200
commit16626ee7a1f3e77089357a6731febb42c2e055f1 (patch)
tree60b0b646ef1cc6f3926ec28e7ffb4340c15cb95f
parent8169d10fdf96e06050584bbd0d031456c8896263 (diff)
downloadaur-16626ee7a1f3e77089357a6731febb42c2e055f1.tar.gz
enable rebuilding of modules without a reboot
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD12
-rw-r--r--media-build-dvbsky.install5
3 files changed, 12 insertions, 7 deletions
diff --git a/.SRCINFO b/.SRCINFO
index f93cbdc0b5d..7199f93e1aa 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = media-build-dvbsky
pkgdesc = Driver for DVBSky cards/boxes
pkgver = 20150322
- pkgrel = 4
+ pkgrel = 5
url = http://www.dvbsky.net/Support_linux.html
install = media-build-dvbsky.install
arch = i686
diff --git a/PKGBUILD b/PKGBUILD
index 5fedeccad28..53ec39e2962 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Ole Ernst <olebowle[at]gmx[dot]com>
pkgname=media-build-dvbsky
pkgver=20150322
-pkgrel=4
+pkgrel=5
pkgdesc="Driver for DVBSky cards/boxes"
arch=('i686' 'x86_64')
url="http://www.dvbsky.net/Support_linux.html"
@@ -26,20 +26,22 @@ prepare() {
ln -sr v4l/sit2_op.o.x${CARCH: -2} v4l/sit2_op.o
cp v4l/sit2_mod.dvb linux/drivers/media/dvb-frontends/sit2_mod.c
sed -i '/eth_rebuild_header/d' linux/drivers/media/dvb-core/dvb_net.c
- sed -i -e "s|/sbin/lsmod|$(which lsmod)|" -e 's|/sbin/depmod|#/sbin/depmod|' v4l/Makefile
- sed -i 's|/sbin/depmod|#/sbin/depmod|' v4l/scripts/make_makefile.pl
+ sed -i '/depmod/d' v4l/Makefile v4l/scripts/make_makefile.pl
patch -p1 -i ../add_c2800e.patch
patch -p1 -i ../dma_buf_export.patch
+
+ export _kernver=$(</usr/lib/modules/extramodules-[0-9]\.+([0-9])-ARCH/version)
+ sed -i "s/KERNEL_VERSION=.*/KERNEL_VERSION=$_kernver/" "$startdir/$install"
}
build() {
cd "$srcdir/media_build-bst"
#media-build doesn't like parallel jobs
- make -j1
+ make VER=$_kernver -j1
}
package() {
cd "$srcdir/media_build-bst"
- make DESTDIR="$pkgdir" KDIR26="/usr/lib/modules/$(uname -r)/updates/kernel/drivers/media" media-install
+ make DESTDIR="$pkgdir" KDIR26="/usr/lib/modules/$_kernver/updates/kernel/drivers/media" media-install
find "$pkgdir" -type f -name '*.ko' -exec gzip -9 {} \;
}
diff --git a/media-build-dvbsky.install b/media-build-dvbsky.install
index 99d5edb4ea8..15069d617fc 100644
--- a/media-build-dvbsky.install
+++ b/media-build-dvbsky.install
@@ -1,5 +1,8 @@
+KERNEL_VERSION=
+
post_install() {
- /usr/bin/depmod -a
+ echo ">>> Updating module dependencies. Please wait ..."
+ depmod $KERNEL_VERSION
}
post_upgrade() {