PKGBUILDs/core/kernel26-dockstar/PKGBUILD

58 lines
1.9 KiB
Bash
Raw Normal View History

2010-07-20 13:42:17 +00:00
# Maintainer: Mike Staszel <mikestaszel@gmail.com>
# This PKGBUILD makes a kernel for the DockStar with aholler's LED patches.
pkgname=kernel26-dockstar
2010-10-14 15:48:25 +00:00
pkgver=2.6.35.7
pkgrel=1
2010-07-20 13:42:17 +00:00
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
2010-08-12 14:02:35 +00:00
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)
2010-10-14 15:48:25 +00:00
md5sums=('f741879bcd3a5366a1bbe0ad5cdb7935'
'7925336955d2a7470e5de45b7fe31fae'
2010-07-20 13:42:17 +00:00
'0ed85186b0b5446c4afbbc45639a7466'
'e81eae381cc2c282d169c879cc4da54b'
'75287077b9a0105156977acb85d57546')
LDFLAGS=""
2010-07-20 13:42:17 +00:00
build() {
cd $srcdir/
2010-09-28 01:23:29 +00:00
cp 000* dockstar-2.6.35.4.config linux-$pkgver/
cd linux-$pkgver
2010-07-20 13:42:17 +00:00
# Apply Aholler's DockStar hardware patches
2010-08-12 14:02:35 +00:00
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
2010-07-20 13:42:17 +00:00
# Prepare for make
2010-09-28 01:23:29 +00:00
mv dockstar-2.6.35.4.config .config
2010-08-12 14:02:35 +00:00
echo "Press ENTER 4972 times..."
make oldconfig
2010-07-20 13:42:17 +00:00
# Make!
2010-08-12 14:02:35 +00:00
make modules uImage || return 1
2010-07-20 13:42:17 +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-dockstar
2010-07-20 13:42:17 +00:00
2010-07-20 15:32:05 +00:00
# Make and package kernel modules
mkdir -p $pkgdir/{lib/modules,boot}
make INSTALL_MOD_PATH=${pkgdir} modules_install || return 1
2010-10-14 15:48:25 +00:00
# Remove the symlink to the build machine's build directory
rm $pkgdir/lib/modules/$pkgver-dockstar-*-*-dirty/build
2010-07-20 13:42:17 +00:00
}