core/linux-raspberrypi to 3.12.20-2

This commit is contained in:
Kevin Mihelich 2014-05-23 02:57:51 +00:00
parent fe2305a0df
commit 22ea8a616b
2 changed files with 13 additions and 2 deletions

View file

@ -9,7 +9,7 @@ _srcname=linux-${_commit}
_kernelname=${pkgbase#linux}
_desc="Raspberry Pi"
pkgver=3.12.20
pkgrel=1
pkgrel=2
arch=('arm armv6h')
url="http://www.kernel.org/"
license=('GPL2')

View file

@ -2,12 +2,22 @@
# arg 2: the old package version
KERNEL_NAME=-raspberrypi
KERNEL_VERSION=3.12.19-1-ARCH
KERNEL_VERSION=3.12.20-1-ARCH
disable_cma() {
if [[ -f /boot/config.txt && $(grep '^cma' /boot/config.txt) != '' ]]; then
echo ">>> You appear to have dynamic memory (CMA) enabled, which is currently broken"
echo ">>> in newer kernels and will cause many issues if left enabled."
echo ">>> Disabling that for you now."
sed -i 's/^cma_/#cma_/g' /boot/config.txt
fi
}
post_install () {
# updating module dependencies
echo ">>> Updating module dependencies. Please wait ..."
depmod ${KERNEL_VERSION}
disable_cma
}
post_upgrade() {
@ -21,4 +31,5 @@ post_upgrade() {
# updating module dependencies
echo ">>> Updating module dependencies. Please wait ..."
depmod ${KERNEL_VERSION}
disable_cma
}