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
pkgver=2.6.35.2
2010-08-03 21:31:05 +00:00
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
config-2.6.35.2-dockstar
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)
md5sums=('0da1c090199663c180d8a60bf49de36e'
'2ff476d7bad26179d56154be9acb9c29'
2010-07-20 13:42:17 +00:00
'0ed85186b0b5446c4afbbc45639a7466'
'e81eae381cc2c282d169c879cc4da54b'
'75287077b9a0105156977acb85d57546')
LDFLAGS=""
2010-07-20 13:42:17 +00:00
build() {
cd $srcdir/
cp 000* config-2.6.35.2-dockstar 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
mv config-2.6.35.2-dockstar .config
2010-08-12 14:02:35 +00:00
echo "Press ENTER 4972 times..."
2010-07-20 13:42:17 +00:00
make oldconfig
# 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
echo "To make things safer, you will manually have to move/copy"
echo "/boot/uImage-dockstar to /boot/uImage after installation."
2010-07-20 13:42:17 +00:00
}