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
|
|
|
|
pkgver=2.6.34.1
|
|
|
|
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
|
|
|
|
config-2.6.33-dockstar
|
|
|
|
0001-ARM-Add-option-CMDLINE_FORCE-to-force-usage-of-the-i.patch
|
|
|
|
0002-MTD-partitons-used-by-the-Seagate-FreeAgent-DockStar.patch
|
|
|
|
0003-LED-definitions-for-the-Seagate-FreeAgent-DockStar.patch
|
|
|
|
0004-Change-board-name-for-the-SheevaPlug-to-reflect-the-.patch)
|
2010-07-20 15:36:17 +00:00
|
|
|
md5sums=('d31d241dc2058698a45fe41359cafb45'
|
2010-07-20 13:42:17 +00:00
|
|
|
'382c66de008d1bd1d97089b9ca049b6d'
|
|
|
|
'99f9eafc0b602483343c3c98f8828f79'
|
|
|
|
'0ed85186b0b5446c4afbbc45639a7466'
|
|
|
|
'e81eae381cc2c282d169c879cc4da54b'
|
|
|
|
'75287077b9a0105156977acb85d57546')
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $srcdir/
|
|
|
|
ln -s linux-$pkgver linux
|
|
|
|
cp 000* config-2.6.33-dockstar linux/
|
|
|
|
cd linux/
|
|
|
|
|
|
|
|
# Apply Aholler's DockStar hardware patches
|
|
|
|
patch -p1 -i 0001-ARM-Add-option-CMDLINE_FORCE-to-force-usage-of-the-i.patch
|
|
|
|
patch -p1 -i 0002-MTD-partitons-used-by-the-Seagate-FreeAgent-DockStar.patch
|
|
|
|
patch -p1 -i 0003-LED-definitions-for-the-Seagate-FreeAgent-DockStar.patch
|
|
|
|
patch -p1 -i 0004-Change-board-name-for-the-SheevaPlug-to-reflect-the-.patch
|
|
|
|
|
|
|
|
# Prepare for make
|
|
|
|
mv config-2.6.33-dockstar .config
|
|
|
|
echo "Press ENTER 4973 times..."
|
|
|
|
make oldconfig
|
|
|
|
|
|
|
|
# Make!
|
2010-07-20 15:34:51 +00:00
|
|
|
make clean modules uImage || return 1
|
2010-07-20 13:42:17 +00:00
|
|
|
|
|
|
|
# Pack up the created uImage
|
|
|
|
mkdir -p $pkgdir/boot
|
2010-07-20 15:32:05 +00:00
|
|
|
cp $srcdir/linux/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
|
|
|
|
|
|
|
|
echo "To make things safer, you will manually have to move/copy"
|
2010-07-20 15:34:51 +00:00
|
|
|
echo "/boot/uImage-dockstar to /boot/uImage after installation."
|
2010-07-20 13:42:17 +00:00
|
|
|
}
|