summaryrefslogtreecommitdiff
path: root/libre/tp_smapi
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2017-09-09 00:12:45 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2017-09-09 00:12:45 -0500
commitc8f23a44ecc4a2681aeccb32611195b59a606aec (patch)
tree8e4a0d9babeeb58fa5e850653c3b97147ff82fd2 /libre/tp_smapi
parent3fc1edec0a17be1bbf73c2fe2a8d2f033f4c93af (diff)
rebuild module packages against linux-libre-4.12.10_gnu-1
Diffstat (limited to 'libre/tp_smapi')
-rw-r--r--libre/tp_smapi/PKGBUILD27
1 files changed, 11 insertions, 16 deletions
diff --git a/libre/tp_smapi/PKGBUILD b/libre/tp_smapi/PKGBUILD
index 7af2e4ac1..06d1ad33c 100644
--- a/libre/tp_smapi/PKGBUILD
+++ b/libre/tp_smapi/PKGBUILD
@@ -11,11 +11,11 @@
# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
# Contributor: Luke Shumaker <lukeshu@sbcglobal.net>
-_kernelname=-lts
+_kernelname=
if [[ ${_kernelname} == "" ]]; then
- _basekernel=4.11
- _archrel=19
+ _basekernel=4.12
+ _archrel=28
_parabolarel=1
elif [[ ${_kernelname} == -lts ]]; then
_basekernel=4.9
@@ -48,27 +48,22 @@ fi
install='kmod.install'
source=("${_pkgname}-${pkgver}.tar.gz::https://github.com/evgeni/${_pkgname}/archive/${__pkgname}/${pkgver}.tar.gz")
-md5sums=('6a51d3aa459ad7a6ebfbb8c29527b3ee')
+sha256sums=('cd28bf6ee21b2c27b88d947cb0bfcb19648c7daa5d350115403dbcad05849381')
build() {
- cd "${srcdir}/${_pkgname}-${__pkgname}-${pkgver}"
+ cd "${_pkgname}-${__pkgname}-${pkgver}"
- _kernver="$(cat /usr/lib/modules/${_extramodules}/version)"
+ # https://bugs.archlinux.org/task/54975 (kernel has no _GLOBAL_OFFSET_TABLE_):
+ # Clear EXTRA_CFLAGS since it defaults to injecting CFLAGS and -fno-plt breaks the modules
- make HDAPS=1 KVER="${_kernver}" KBASE="/usr/lib/modules/${_kernver}"
+ make HDAPS=1 KVER="$(</usr/lib/modules/${_extramodules}/version)" EXTRA_CFLAGS=
}
package() {
- _kernver="$(cat /usr/lib/modules/${_extramodules}/version)"
+ cd "${_pkgname}-${__pkgname}-${pkgver}"
- # Actually install
- make -C "/usr/lib/modules/${_kernver}/build" \
- INSTALL_MOD_PATH="${pkgdir}/usr" \
- M="${srcdir}/${_pkgname}-${__pkgname}-${pkgver}" modules_install
-
- cd "${pkgdir}/usr/lib/modules"
- mv "${_kernver}/extra" "${_extramodules}"
- rmdir "${_kernver}"
+ # install kernel modules
+ find . -name "*.ko" -exec install -Dt "${pkgdir}/usr/lib/modules/${_extramodules}" {} +
# compress kernel modules
find "${pkgdir}" -name "*.ko" -exec gzip -9 {} +