2009-12-07 20:25:36 +00:00
|
|
|
# Maintainer: Mike Staszel <mikestaszel@gmail.com>
|
2009-11-13 01:13:33 +00:00
|
|
|
|
2010-08-03 13:03:49 +00:00
|
|
|
# This PKGBUILD builds a kernel using cbxbiker's With-Linux configuration.
|
2010-07-06 12:27:46 +00:00
|
|
|
|
2009-11-13 01:13:33 +00:00
|
|
|
pkgname=kernel26-withlinux
|
2010-10-26 21:24:01 +00:00
|
|
|
pkgver=2.6.36
|
2010-08-11 21:15:47 +00:00
|
|
|
pkgrel=1
|
2010-08-03 13:03:49 +00:00
|
|
|
pkgdesc="The Linux Kernel and modules from WithLinux, natively compiled"
|
2009-11-13 01:13:33 +00:00
|
|
|
arch=('arm')
|
|
|
|
license=('GPL2')
|
2010-08-03 13:03:49 +00:00
|
|
|
url="http://www.kernel.org"
|
2009-11-13 01:13:33 +00:00
|
|
|
depends=('coreutils' 'module-init-tools')
|
2010-08-03 13:03:49 +00:00
|
|
|
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
|
2010-08-03 13:03:49 +00:00
|
|
|
source=(http://www.kernel.org/pub/linux/kernel/v2.6/linux-$pkgver.tar.bz2
|
2010-11-16 01:01:19 +00:00
|
|
|
http://sheeva.with-linux.com/sheeva/$pkgver/sheeva-$pkgver.config
|
|
|
|
scsi.h)
|
2010-10-26 21:24:01 +00:00
|
|
|
md5sums=('61f3739a73afb6914cb007f37fb09b62'
|
2010-11-16 01:01:19 +00:00
|
|
|
'2018fee579704d17905476cfba79bdaf'
|
|
|
|
'4e6a77d9f8ebc242eb3b7694cf86643b')
|
2010-08-03 13:03:49 +00:00
|
|
|
LDFLAGS=""
|
2009-11-13 01:13:33 +00:00
|
|
|
|
|
|
|
build() {
|
2010-08-15 20:58:36 +00:00
|
|
|
cd $srcdir/linux-$pkgver
|
2010-08-03 13:03:49 +00:00
|
|
|
|
2010-10-14 15:48:25 +00:00
|
|
|
# Move the configuration
|
2010-08-03 13:03:49 +00:00
|
|
|
mv $srcdir/sheeva-$pkgver.config .config
|
|
|
|
|
|
|
|
# Make!
|
2010-08-15 20:58:36 +00:00
|
|
|
make modules uImage || return 1
|
2010-08-03 13:03:49 +00:00
|
|
|
|
|
|
|
# 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
|
2010-08-03 13:03:49 +00:00
|
|
|
|
|
|
|
# Make and package kernel modules
|
|
|
|
mkdir -p $pkgdir/{lib/modules,boot}
|
|
|
|
make INSTALL_MOD_PATH=${pkgdir} modules_install || return 1
|
2010-11-16 01:01:19 +00:00
|
|
|
|
|
|
|
# Hack to put in scsi.h
|
|
|
|
mkdir -p $pkgdir/usr/include/scsi
|
|
|
|
cp $srcdir/scsi.h $pkgdir/usr/include/scsi/
|
2009-11-13 01:13:33 +00:00
|
|
|
}
|