mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
kernel26-withlinux now includes a kernel and modules, not a downloader
This commit is contained in:
parent
e56dcc7c8b
commit
2fa5cd9823
4 changed files with 2858 additions and 13 deletions
|
@ -1,26 +1,41 @@
|
|||
# Maintainer: Mike Staszel <mikestaszel@gmail.com>
|
||||
|
||||
# This PKGBUILD installs the README executable (confusing name)
|
||||
# for a kernel and modules from sheeva.with-linux.com.
|
||||
# It asks users whether to install to USB/SD or to NAND, automating the process.
|
||||
# This PKGBUILD builds a kernel using cbxbiker's With-Linux configuration.
|
||||
|
||||
pkgname=kernel26-withlinux
|
||||
pkgver=2.6.34.1
|
||||
pkgrel=1
|
||||
pkgdesc="The Linux Kernel and modules"
|
||||
pkgrel=2
|
||||
pkgdesc="The Linux Kernel and modules from WithLinux, natively compiled"
|
||||
arch=('arm')
|
||||
license=('GPL2')
|
||||
url="http://sheeva.with-linux.com/sheeva/"
|
||||
url="http://www.kernel.org"
|
||||
depends=('coreutils' 'module-init-tools')
|
||||
makedepends=()
|
||||
makedepends=('uboot-mkimage')
|
||||
conflicts=('kernel26')
|
||||
provides=('kernel26')
|
||||
install=kernel26-withlinux.install
|
||||
source=(http://sheeva.with-linux.com/sheeva/README-$pkgver)
|
||||
md5sums=('b5374deb75373e56ae56a0d362dc58f6')
|
||||
install=kernel26-withlinux-native.install
|
||||
source=(http://www.kernel.org/pub/linux/kernel/v2.6/linux-$pkgver.tar.bz2
|
||||
http://sheeva.with-linux.com/sheeva/$pkgver/sheeva-$pkgver.config)
|
||||
md5sums=('d31d241dc2058698a45fe41359cafb45'
|
||||
'b92a6df65fc7d1f3780280e5252f83f3')
|
||||
LDFLAGS=""
|
||||
|
||||
build() {
|
||||
cd ${srcdir}/
|
||||
mkdir -p ${pkgdir}/usr/share/plugapps/kernel
|
||||
install -D -m 755 README-$pkgver ${pkgdir}/usr/share/plugapps/kernel/
|
||||
cd $srcdir/
|
||||
ln -s linux-$pkgver linux
|
||||
cd linux/
|
||||
|
||||
# Prepare for make
|
||||
mv $srcdir/sheeva-$pkgver.config .config
|
||||
|
||||
# Make!
|
||||
make clean modules uImage || return 1
|
||||
|
||||
# Pack up the created uImage
|
||||
mkdir -p $pkgdir/boot
|
||||
cp $srcdir/linux/arch/arm/boot/uImage $pkgdir/boot/uImage
|
||||
|
||||
# Make and package kernel modules
|
||||
mkdir -p $pkgdir/{lib/modules,boot}
|
||||
make INSTALL_MOD_PATH=${pkgdir} modules_install || return 1
|
||||
}
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
/media/usbhd-sda1/packages/kernel26-withlinux-2.6.34.1-2-arm.pkg.tar.xz
|
18
core/kernel26-withlinux/kernel26-withlinux-native.install
Normal file
18
core/kernel26-withlinux/kernel26-withlinux-native.install
Normal file
|
@ -0,0 +1,18 @@
|
|||
post_install() {
|
||||
echo -e "\033[1mNotice\033[0m"
|
||||
echo "To make things safer, you will manually have to move/copy"
|
||||
echo "/boot/uImage-withlinux-native to /boot/uImage."
|
||||
echo ""
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
post_install
|
||||
}
|
||||
|
||||
post_remove() {
|
||||
KERNEL_VERSION=.*
|
||||
}
|
||||
|
||||
op=$1
|
||||
shift
|
||||
$op $*
|
2811
core/kernel26-withlinux/sheeva-2.6.34.1.config
Normal file
2811
core/kernel26-withlinux/sheeva-2.6.34.1.config
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue