# Maintainer: Mike Staszel # This PKGBUILD makes a kernel for the DockStar with aholler's LED patches. pkgname=kernel26-dockstar pkgver=2.6.35.7 pkgrel=1 pkgdesc="The Linux Kernel and modules with DockStar LEDs" arch=('arm') license=('GPL2') url="http://www.kernel.org" depends=('coreutils' 'module-init-tools') makedepends=('uboot-mkimage') conflicts=('kernel26') provides=('kernel26') install=kernel26-dockstar.install source=(http://www.kernel.org/pub/linux/kernel/v2.6/linux-$pkgver.tar.bz2 dockstar-2.6.35.4.config 0001-MTD-partitons-used-by-the-Seagate-FreeAgent-DockStar.patch 0002-LED-definitions-for-the-Seagate-FreeAgent-DockStar.patch 0003-Change-board-name-for-the-SheevaPlug-to-reflect-the-.patch) md5sums=('f741879bcd3a5366a1bbe0ad5cdb7935' '7925336955d2a7470e5de45b7fe31fae' '0ed85186b0b5446c4afbbc45639a7466' 'e81eae381cc2c282d169c879cc4da54b' '75287077b9a0105156977acb85d57546') LDFLAGS="" build() { cd $srcdir/ cp 000* dockstar-2.6.35.4.config linux-$pkgver/ cd linux-$pkgver # Apply Aholler's DockStar hardware patches patch -p1 -i 0001-MTD-partitons-used-by-the-Seagate-FreeAgent-DockStar.patch patch -p1 -i 0002-LED-definitions-for-the-Seagate-FreeAgent-DockStar.patch patch -p1 -i 0003-Change-board-name-for-the-SheevaPlug-to-reflect-the-.patch # Prepare for make mv dockstar-2.6.35.4.config .config echo "Press ENTER 4972 times..." make oldconfig # 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-dockstar # Make and package kernel modules mkdir -p $pkgdir/{lib/modules,boot} make INSTALL_MOD_PATH=${pkgdir} modules_install || return 1 # Remove the symlink to the build machine's build directory rm $pkgdir/lib/modules/$pkgver-dockstar-*-*-dirty/build }