mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
57 lines
1.9 KiB
Bash
57 lines
1.9 KiB
Bash
# 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
|
|
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.35.2-dockstar
|
|
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'
|
|
'0ed85186b0b5446c4afbbc45639a7466'
|
|
'e81eae381cc2c282d169c879cc4da54b'
|
|
'75287077b9a0105156977acb85d57546')
|
|
LDFLAGS=""
|
|
|
|
build() {
|
|
cd $srcdir/
|
|
cp 000* config-2.6.35.2-dockstar 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 config-2.6.35.2-dockstar .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
|
|
|
|
echo "To make things safer, you will manually have to move/copy"
|
|
echo "/boot/uImage-dockstar to /boot/uImage after installation."
|
|
}
|