diff options
author | David P <megver83@parabola.nu> | 2017-12-20 15:14:38 -0300 |
---|---|---|
committer | David P <megver83@parabola.nu> | 2017-12-20 15:16:44 -0300 |
commit | dfcc799a24a32fa9befc46fdb399860a4c0f0bef (patch) | |
tree | 9f665ad9c3fdffd6c5b5c5d3959b1e7c056b5d48 /libre | |
parent | d8da3a664204c257d5d181e8ba286c0dd0f50870 (diff) | |
download | abslibre-dfcc799a24a32fa9befc46fdb399860a4c0f0bef.tar.gz abslibre-dfcc799a24a32fa9befc46fdb399860a4c0f0bef.tar.bz2 abslibre-dfcc799a24a32fa9befc46fdb399860a4c0f0bef.zip |
add substitutions for armv7h and fix extramodules symlink
Diffstat (limited to 'libre')
-rw-r--r-- | libre/linux-libre/PKGBUILD | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/libre/linux-libre/PKGBUILD b/libre/linux-libre/PKGBUILD index 1004f2de9..2624175c7 100644 --- a/libre/linux-libre/PKGBUILD +++ b/libre/linux-libre/PKGBUILD @@ -210,7 +210,7 @@ _package() { fi # make room for external modules - local _extramodules="extramodules-${_basekernel}${_kernelname:--ARCH}" + local _extramodules="extramodules-${_basekernel}${_kernelname}" ln -s "../${_extramodules}" "${pkgdir}/usr/lib/modules/${_kernver}/extramodules" # add real version for building modules and running depmod from hook @@ -229,11 +229,20 @@ _package() { fi # sed expression for following substitutions + if [ "${CARCH}" = "armv7h" ]; then + local _subst=" + s|/boot/vmlinuz-%PKGBASE%|${_kernver}|g + s|%PKGBASE%|${pkgbase}|g + s|%KERNVER%|${_kernver}|g + s|%EXTRAMODULES%|${_extramodules}|g + " + elif [ "${CARCH}" = "x86_64" ] || [ "${CARCH}" = "i686" ]; then local _subst=" s|%PKGBASE%|${pkgbase}|g s|%KERNVER%|${_kernver}|g s|%EXTRAMODULES%|${_extramodules}|g " + fi # hack to allow specifying an initially nonexisting install file sed "${_subst}" "${startdir}/${install}" > "${startdir}/${install}.pkg" |