mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
48 lines
1.3 KiB
Bash
48 lines
1.3 KiB
Bash
# Maintainer: Mike Staszel <mikestaszel@gmail.com>
|
|
|
|
# This PKGBUILD builds a kernel using cbxbiker's With-Linux configuration.
|
|
|
|
pkgname=kernel26-withlinux
|
|
pkgver=2.6.36
|
|
pkgrel=2
|
|
pkgdesc="The Linux Kernel and modules from WithLinux, natively compiled"
|
|
arch=('arm')
|
|
license=('GPL2')
|
|
url="http://www.kernel.org"
|
|
depends=('coreutils' 'module-init-tools')
|
|
makedepends=('uboot-mkimage')
|
|
conflicts=('kernel26')
|
|
provides=('kernel26')
|
|
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
|
|
scsi.h)
|
|
md5sums=('61f3739a73afb6914cb007f37fb09b62'
|
|
'2018fee579704d17905476cfba79bdaf'
|
|
'4e6a77d9f8ebc242eb3b7694cf86643b')
|
|
LDFLAGS=""
|
|
|
|
build() {
|
|
cd $srcdir/linux-$pkgver
|
|
|
|
# Move the configuration
|
|
mv $srcdir/sheeva-$pkgver.config .config
|
|
|
|
# To enable USB over IP
|
|
make menuconfig
|
|
|
|
# Make!
|
|
make modules uImage || return 1
|
|
|
|
# Pack up the created uImage
|
|
mkdir -p $pkgdir/boot
|
|
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
|
|
|
|
# Hack to put in scsi.h
|
|
mkdir -p $pkgdir/usr/include/scsi
|
|
cp $srcdir/scsi.h $pkgdir/usr/include/scsi/
|
|
}
|