summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZack Welch <zwelch@gentoo.org>2003-04-05 04:56:37 +0000
committerZack Welch <zwelch@gentoo.org>2003-04-05 04:56:37 +0000
commitf035527e8a20c9e4494e9d78d838f43891cd6d3d (patch)
tree8d54bb35c65a8b0a68fc01e7f6fade8dacce06e1 /sys-kernel/arm-headers
parentnumerous fixes and cleanups for arm-headers (diff)
downloadgentoo-2-f035527e8a20c9e4494e9d78d838f43891cd6d3d.tar.gz
gentoo-2-f035527e8a20c9e4494e9d78d838f43891cd6d3d.tar.bz2
gentoo-2-f035527e8a20c9e4494e9d78d838f43891cd6d3d.zip
numerous fixes and cleanups for arm-headers
Diffstat (limited to 'sys-kernel/arm-headers')
-rw-r--r--sys-kernel/arm-headers/ChangeLog8
-rw-r--r--sys-kernel/arm-headers/arm-headers-2.4.19-r1.ebuild110
-rw-r--r--sys-kernel/arm-headers/files/digest-arm-headers-2.4.19-r11
3 files changed, 118 insertions, 1 deletions
diff --git a/sys-kernel/arm-headers/ChangeLog b/sys-kernel/arm-headers/ChangeLog
index 73cb9cd64863..75103661a325 100644
--- a/sys-kernel/arm-headers/ChangeLog
+++ b/sys-kernel/arm-headers/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sys-kernel/arm-headers
# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-kernel/arm-headers/ChangeLog,v 1.1 2003/02/26 22:44:37 zwelch Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-kernel/arm-headers/ChangeLog,v 1.2 2003/04/05 04:56:34 zwelch Exp $
+
+*arm-headers-2.4.19-r1 (27 Mar 2003)
+
+ 27 Mar 2003; Zach Welch <zwelch@gentoo.org> arm-headers-2.4.19-r1.ebuild:
+ bump to latest version, 2.4.19-rmk7-nw1
+ several cleanups and fix HOMEPAGE to close bug 18145
*arm-headers-2.4.19 (25 Feb 2003)
diff --git a/sys-kernel/arm-headers/arm-headers-2.4.19-r1.ebuild b/sys-kernel/arm-headers/arm-headers-2.4.19-r1.ebuild
new file mode 100644
index 000000000000..073263678a77
--- /dev/null
+++ b/sys-kernel/arm-headers/arm-headers-2.4.19-r1.ebuild
@@ -0,0 +1,110 @@
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-kernel/arm-headers/arm-headers-2.4.19-r1.ebuild,v 1.1 2003/04/05 04:56:35 zwelch Exp $
+#OKV=original kernel version, KV=patched kernel version. They can be the same.
+
+IUSE=""
+DEPEND=""
+LICENSE="GPL-2"
+
+ETYPE="headers"
+inherit kernel eutils
+
+#####
+# move to arm profile
+
+# the current target platform
+ARCH_PROFILE=netwinder
+
+#####
+
+# this specifies the main ARM kernel patch level
+ARM_PATCH_SUFFIX="-rmk7"
+
+######
+
+# this specifies the SUBARCH kernel patch level and download location
+# currently, only netwinder supported
+SUBARCH_KERNEL_SUFFIX="-nw1"
+#SUBARCH_KERNEL_URLBASE="\
+# http://netwinder.oregonstate.edu/users/r/ralphs/kernel/beta"
+SUBARCH_KERNEL_URLBASE="\
+ ftp://ftp.netwinder.org/users/r/ralphs/kernel/beta"
+SUBARCH_KERNEL_HOMEPAGE="http://www.netwinder.org/"
+
+#####
+
+# set the kernel version now
+OKV=2.4.19
+EXTRAVERSION="${ARM_PATCH_SUFFIX}${SUBARCH_KERNEL_SUFFIX}"
+KV="${OKV}${EXTRAVERSION}"
+
+S=${WORKDIR}/linux-${KV}
+
+# this is the main rmk ARM Kernel Patch
+ARM_KERNEL_PATCH="patch-${OKV}${ARM_PATCH_SUFFIX}"
+# this is the kernel patch for SUBARCH
+[ -n "${SUBARCH_KERNEL_SUFFIX}" ] && \
+ SUBARCH_KERNEL_PATCH="${ARM_KERNEL_PATCH}${SUBARCH_KERNEL_SUFFIX}" || \
+ SUBARCH_KERNEL_PATCH=""
+
+# What's in this kernel?
+# INCLUDED:
+# stock 2.4.19 kernel sources
+# rmk patches for armlinux support
+
+DESCRIPTION="Full sources for the ARM/Linux kernel"
+KEYWORDS="arm -hppa -x86 -ppc -sparc -alpha -mips"
+SRC_URI="http://www.kernel.org/pub/linux/kernel/v2.4/linux-${OKV}.tar.bz2 \
+ ftp://ftp.arm.linux.org.uk/pub/armlinux/source/kernel-patches/v2.4/${ARM_KERNEL_PATCH}.bz2"
+HOMEPAGE="http://www.arm.linux.org.uk/ \
+ http://www.kernel.org/ \
+ http://www.gentoo.org/"
+SLOT="0"
+
+# now fix up SRC_URI and HOMEPAGE
+if [ -n "${SUBARCH_KERNEL_PATCH}" ]; then
+ if [ -n "${SUBARCH_KERNEL_URLBASE}" ]; then
+ SRC_URI="${SRC_URI} \
+ ${SUBARCH_KERNEL_URLBASE}/${SUBARCH_KERNEL_PATCH}.gz"
+ else
+ die "${SUBARCH}: ${SUBARCH_KERNEL_PATCH} does not have a URLBASE"
+ fi
+fi
+if [ -n "${SUBARCH_KERNEL_HOMEPAGE}" ]; then
+ HOMEPAGE="${SUBARCH_KERNEL_HOMEPAGE} ${HOMEPAGE}"
+fi
+
+src_unpack() {
+ # base vanilla source
+ unpack "linux-${OKV}.tar.bz2" || die
+ [ "${OKV}" != "${KV}" ] && \
+ mv "${WORKDIR}/linux-${OKV}" "${WORKDIR}/linux-${KV}"
+
+ # plus the Russell M. King kernel patches
+ unpack "${ARM_KERNEL_PATCH}.bz2" || die
+
+ # plus an optional SUBARCH kernel patch
+ [ -n "${SUBARCH_KERNEL_PATCH}" ] && \
+ { unpack "${SUBARCH_KERNEL_PATCH}.gz" || die; }
+
+ # do the actual patching
+ cd ${S} || die
+ epatch "${WORKDIR}/${ARM_KERNEL_PATCH}" || die
+ [ -n "${SUBARCH_KERNEL_PATCH}" ] && \
+ { epatch "${WORKDIR}/${SUBARCH_KERNEL_PATCH}" || die; }
+
+ sed -i -e "s,^ARCH .*$,ARCH = arm," Makefile
+
+ kernel_universal_unpack
+}
+
+src_compile() {
+ # before doing the typical make oldconfig,
+ # load the specific platform configuration
+ make ${ARCH_PROFILE}_config || die
+
+ yes "" 2>/dev/null | make oldconfig
+ make archdep
+}
+
diff --git a/sys-kernel/arm-headers/files/digest-arm-headers-2.4.19-r1 b/sys-kernel/arm-headers/files/digest-arm-headers-2.4.19-r1
index 31d2ffde25c1..d24dba5ff0a3 100644
--- a/sys-kernel/arm-headers/files/digest-arm-headers-2.4.19-r1
+++ b/sys-kernel/arm-headers/files/digest-arm-headers-2.4.19-r1
@@ -1,3 +1,4 @@
+MD5 81b36f2fa3ad7d3a0e3dbdddf41357e4 /arm-headers-2.4.19-r1.ebuild 3063
MD5 2bb60b7594a416f2c593923ce446160b linux-2.4.19.tar.bz2 26042494
MD5 b26f59309f1d4816e9cc5205d65aed5f patch-2.4.19-rmk7.bz2 651606
MD5 db313e16191e97e8e8e8224a8c94685c patch-2.4.19-rmk7-nw1.gz 167115