PKGBUILDs/core/kernel26-withlinux/PKGBUILD

40 lines
1.1 KiB
Bash
Raw Normal View History

2009-12-07 20:25:36 +00:00
# Maintainer: Mike Staszel <mikestaszel@gmail.com>
2009-11-13 01:13:33 +00:00
# This PKGBUILD builds a kernel using cbxbiker's With-Linux configuration.
2009-11-13 01:13:33 +00:00
pkgname=kernel26-withlinux
2010-08-15 20:58:36 +00:00
pkgver=2.6.35.2
2010-08-11 21:15:47 +00:00
pkgrel=1
pkgdesc="The Linux Kernel and modules from WithLinux, natively compiled"
2009-11-13 01:13:33 +00:00
arch=('arm')
license=('GPL2')
url="http://www.kernel.org"
2009-11-13 01:13:33 +00:00
depends=('coreutils' 'module-init-tools')
makedepends=('uboot-mkimage')
2009-11-13 01:13:33 +00:00
conflicts=('kernel26')
provides=('kernel26')
2010-08-03 14:18:41 +00:00
install=kernel26-withlinux.install
source=(http://www.kernel.org/pub/linux/kernel/v2.6/linux-$pkgver.tar.bz2
http://sheeva.with-linux.com/sheeva/$pkgver/sheeva-$pkgver.config)
2010-08-11 21:15:47 +00:00
md5sums=('27b266dda534761fb027a6c47605b7e3'
'6c0d5121469057b99603b3ed6a0227ab')
LDFLAGS=""
2009-11-13 01:13:33 +00:00
build() {
2010-08-15 20:58:36 +00:00
cd $srcdir/linux-$pkgver
# Prepare for make
mv $srcdir/sheeva-$pkgver.config .config
# Make!
2010-08-15 20:58:36 +00:00
make modules uImage || return 1
# Pack up the created uImage
mkdir -p $pkgdir/boot
2010-08-15 20:58:36 +00:00
cp $srcdir/linux-$pkgver/arch/arm/boot/uImage $pkgdir/boot/uImage
# Make and package kernel modules
mkdir -p $pkgdir/{lib/modules,boot}
make INSTALL_MOD_PATH=${pkgdir} modules_install || return 1
2009-11-13 01:13:33 +00:00
}