diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2017-03-04 17:05:43 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2017-03-04 17:05:43 -0300 |
commit | 9329ab4012d5fcb01347295ae56a7ac4946a5144 (patch) | |
tree | 998977379c705ef7f3b411ae9d1ecce093461bc1 /libre-testing | |
parent | 20afded69cddea04245721129dd825368d560892 (diff) | |
download | abslibre-9329ab4012d5fcb01347295ae56a7ac4946a5144.tar.gz abslibre-9329ab4012d5fcb01347295ae56a7ac4946a5144.tar.bz2 abslibre-9329ab4012d5fcb01347295ae56a7ac4946a5144.zip |
linux-libre: fix mkinitcpio preset file for armv7h
Diffstat (limited to 'libre-testing')
-rw-r--r-- | libre-testing/linux-libre/PKGBUILD | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/libre-testing/linux-libre/PKGBUILD b/libre-testing/linux-libre/PKGBUILD index 6ed33e2b5..cd56e595a 100644 --- a/libre-testing/linux-libre/PKGBUILD +++ b/libre-testing/linux-libre/PKGBUILD @@ -20,7 +20,7 @@ _replacesoldmodules=() # '%' gets replaced with _kernelname _srcname=linux-${_pkgbasever%-*} _archpkgver=${_pkgver%-*} pkgver=${_pkgver//-/_} -pkgrel=1 +pkgrel=1.1 rcnrel=armv7-x1 arch=('i686' 'x86_64' 'armv7h') url="https://linux-libre.fsfla.org/" @@ -211,8 +211,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" | |