mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
Kernel headers PKGBUILD fixed
This commit is contained in:
parent
9d9d686f0b
commit
b5f4172dda
3 changed files with 35 additions and 2565 deletions
|
@ -10,7 +10,7 @@ url="http://sheeva.with-linux.com/sheeva/"
|
|||
depends=('kernel26-withlinux=2.6.31.6' 'coreutils' 'module-init-tools')
|
||||
makedepends=('patch')
|
||||
source=(http://sheeva.with-linux.com/sheeva/$pkgver/sheeva-$pkgver-KernelHeaders.tar.gz)
|
||||
md5sums=('')
|
||||
md5sums=('02454a4170c307110d253fc2069f330b')
|
||||
|
||||
build() {
|
||||
cp -R ${srcdir}/usr ${pkgdir}/
|
||||
|
|
File diff suppressed because it is too large
Load diff
34
core/kernel26-withlinux/kernel26-withlinux.install
Normal file
34
core/kernel26-withlinux/kernel26-withlinux.install
Normal file
|
@ -0,0 +1,34 @@
|
|||
post_install() {
|
||||
echo 'Are you sure you want to upgrade the kernel?'
|
||||
echo 'Press ENTER to continue or CTRL+X to cancel.'
|
||||
read enter
|
||||
flash_eraseall -j /dev/mtd1
|
||||
nandwrite -p /dev/mtd1 /boot/uImage
|
||||
echo 'Check the U-Boot environment variables! The kernel image is'
|
||||
echo 'located at /boot/uImage just in case you need to flash'
|
||||
echo 'it manually. However, it should have been flashed, so
|
||||
echo 'reboot your plug now.'
|
||||
depmod -a $KERNEL_VERSION > /dev/null 2>&1
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
echo 'Are you sure you want to upgrade the kernel?'
|
||||
echo 'Press ENTER to continue or CTRL+X to cancel.'
|
||||
read enter
|
||||
flash_eraseall -j /dev/mtd1
|
||||
nandwrite -p /dev/mtd1 /boot/uImage
|
||||
echo 'Check the U-Boot environment variables! The kernel image is'
|
||||
echo 'located at /boot/uImage just in case you need to flash'
|
||||
echo 'it manually. However, it should have been flashed, so
|
||||
echo 'reboot your plug now.'
|
||||
depmod -a $KERNEL_VERSION > /dev/null 2>&1
|
||||
}
|
||||
|
||||
post_remove() {
|
||||
KERNEL_VERSION=.*
|
||||
depmod -a $KERNEL_VERSION > /dev/null 2>&1
|
||||
}
|
||||
|
||||
op=$1
|
||||
shift
|
||||
$op $*
|
Loading…
Reference in a new issue