diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2017-03-04 17:08:29 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2017-03-04 17:08:29 -0300 |
commit | 93474e87e4f4ebff2542c586ffb72e13ebb313a5 (patch) | |
tree | d7764ce665d432e8b605c15ed0b1ced4f0306d88 | |
parent | 9329ab4012d5fcb01347295ae56a7ac4946a5144 (diff) | |
download | abslibre-93474e87e4f4ebff2542c586ffb72e13ebb313a5.tar.gz abslibre-93474e87e4f4ebff2542c586ffb72e13ebb313a5.tar.bz2 abslibre-93474e87e4f4ebff2542c586ffb72e13ebb313a5.zip |
linux-libre-lts: fix mkinitcpio preset file for armv7h
-rw-r--r-- | libre-testing/linux-libre-lts/PKGBUILD | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/libre-testing/linux-libre-lts/PKGBUILD b/libre-testing/linux-libre-lts/PKGBUILD index a54084e65..2d7436e03 100644 --- a/libre-testing/linux-libre-lts/PKGBUILD +++ b/libre-testing/linux-libre-lts/PKGBUILD @@ -19,7 +19,7 @@ _replacesoldmodules=() # '%' gets replaced with _kernelname _srcname=linux-${_pkgbasever%-*} _archpkgver=${_pkgver%-*} pkgver=${_pkgver//-/_} -pkgrel=1 +pkgrel=1.1 rcnrel=armv7-x4 arch=('i686' 'x86_64' 'armv7h') url="https://linux-libre.fsfla.org/" @@ -214,8 +214,13 @@ _package() { true && install=${install}.pkg # install mkinitcpio preset file for kernel - sed "s|%PKGBASE%|${pkgbase}|g" "${srcdir}/linux.preset" | - install -D -m644 /dev/stdin "${pkgdir}/etc/mkinitcpio.d/${pkgbase}.preset" + if [ "${CARCH}" = "armv7h" ]; then + sed "s|/boot/vmlinuz-%PKGBASE%|${_kernver}|g" "${srcdir}/linux.preset" | + install -D -m644 /dev/stdin "${pkgdir}/etc/mkinitcpio.d/${pkgbase}.preset" + elif [ "${CARCH}" = "x86_64" ] || [ "${CARCH}" = "i686" ]; then + sed "s|%PKGBASE%|${pkgbase}|g" "${srcdir}/linux.preset" | + install -D -m644 /dev/stdin "${pkgdir}/etc/mkinitcpio.d/${pkgbase}.preset" + fi # install pacman hook for initramfs regeneration sed "s|%PKGBASE%|${pkgbase}|g" "${srcdir}/99-linux.hook" | |