From 356d47a41ddd831fabc3969a14b6823111516ee3 Mon Sep 17 00:00:00 2001 From: Nicolas Reynolds Date: Tue, 16 Aug 2011 11:06:03 -0300 Subject: The actual linux-libre fix --- libre/linux-libre/PKGBUILD | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/libre/linux-libre/PKGBUILD b/libre/linux-libre/PKGBUILD index ff7ee2b79..32d40024d 100644 --- a/libre/linux-libre/PKGBUILD +++ b/libre/linux-libre/PKGBUILD @@ -10,7 +10,7 @@ pkgname=('linux-libre' 'linux-libre-headers' 'linux-libre-docs') # Build stock - _kernelname=${pkgname#linux-libre} _basekernel=3.0 pkgver=${_basekernel}.1 -pkgrel=4 +pkgrel=5 arch=('i686' 'x86_64' 'mips64el') url="http://linux-libre.fsfla.org" license=('GPL2') @@ -145,6 +145,13 @@ package_linux-libre() { -e "s|fallback_image=.*|fallback_image=\"/boot/initramfs-${pkgname}-fallback.img\"|g" \ -i "${pkgdir}/etc/mkinitcpio.d/${pkgname}.preset" +# mkinitcpio 0.7 relies on bzImage to find the kernel version + if [ "$CARCH" == "mips64el" ]; then + sed \ + -e "s|ALL_kver=.*|ALL_kver=\"${_kernver}\"|g" \ + -i "${pkgdir}/etc/mkinitcpio.d/${pkgname}.preset" + fi + # remove build and source links rm -f "${pkgdir}"/lib/modules/${_kernver}/{source,build} # remove the firmware -- cgit v1.2.3-54-g00ecf