mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-01-27 23:44:04 +00:00
core/linux-raspberrypi-latest to 3.14.4-2
This commit is contained in:
parent
22ea8a616b
commit
a5d0de6b4b
2 changed files with 12 additions and 1 deletions
|
@ -10,7 +10,7 @@ _srcname=linux-${_commit}
|
||||||
_kernelname=${pkgbase#linux}
|
_kernelname=${pkgbase#linux}
|
||||||
_desc="Raspberry Pi"
|
_desc="Raspberry Pi"
|
||||||
pkgver=3.14.4
|
pkgver=3.14.4
|
||||||
pkgrel=1
|
pkgrel=2
|
||||||
bfqver=v7r3
|
bfqver=v7r3
|
||||||
|
|
||||||
arch=('arm armv6h')
|
arch=('arm armv6h')
|
||||||
|
|
|
@ -4,10 +4,20 @@
|
||||||
KERNEL_NAME=-raspberrypi-latest
|
KERNEL_NAME=-raspberrypi-latest
|
||||||
KERNEL_VERSION=3.14.2-1-ARCH
|
KERNEL_VERSION=3.14.2-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 () {
|
post_install () {
|
||||||
# updating module dependencies
|
# updating module dependencies
|
||||||
echo ">>> Updating module dependencies. Please wait ..."
|
echo ">>> Updating module dependencies. Please wait ..."
|
||||||
depmod ${KERNEL_VERSION}
|
depmod ${KERNEL_VERSION}
|
||||||
|
disable_cma
|
||||||
}
|
}
|
||||||
|
|
||||||
post_upgrade() {
|
post_upgrade() {
|
||||||
|
@ -21,4 +31,5 @@ post_upgrade() {
|
||||||
# updating module dependencies
|
# updating module dependencies
|
||||||
echo ">>> Updating module dependencies. Please wait ..."
|
echo ">>> Updating module dependencies. Please wait ..."
|
||||||
depmod ${KERNEL_VERSION}
|
depmod ${KERNEL_VERSION}
|
||||||
|
disable_cma
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue