summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Black <dragonheart@gentoo.org>2004-03-07 04:52:48 +0000
committerDaniel Black <dragonheart@gentoo.org>2004-03-07 04:52:48 +0000
commit2e3d6721710c7653436a3c5b97aebefc68740167 (patch)
tree4550d36cbe0fd720009c817e14c08dc9675f0566 /sys-kernel/uclinux-sources
parentAdded ~mips keyword. (Manifest recommit) (diff)
downloadgentoo-2-2e3d6721710c7653436a3c5b97aebefc68740167.tar.gz
gentoo-2-2e3d6721710c7653436a3c5b97aebefc68740167.tar.bz2
gentoo-2-2e3d6721710c7653436a3c5b97aebefc68740167.zip
inital import
Diffstat (limited to 'sys-kernel/uclinux-sources')
-rw-r--r--sys-kernel/uclinux-sources/ChangeLog10
-rw-r--r--sys-kernel/uclinux-sources/files/digest-uclinux-sources-2.4.24_p02
-rw-r--r--sys-kernel/uclinux-sources/files/digest-uclinux-sources-2.6.3_p02
-rw-r--r--sys-kernel/uclinux-sources/metadata.xml9
-rw-r--r--sys-kernel/uclinux-sources/uclinux-sources-2.4.24_p0.ebuild48
-rw-r--r--sys-kernel/uclinux-sources/uclinux-sources-2.6.3_p0.ebuild48
6 files changed, 119 insertions, 0 deletions
diff --git a/sys-kernel/uclinux-sources/ChangeLog b/sys-kernel/uclinux-sources/ChangeLog
new file mode 100644
index 000000000000..ddd88e917033
--- /dev/null
+++ b/sys-kernel/uclinux-sources/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for sys-kernel/uclinux-sources
+# Copyright 2000-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-kernel/uclinux-sources/ChangeLog,v 1.1 2004/03/07 04:52:48 dragonheart Exp $
+
+*uclinux-sources-2.4.24_p0 (07 Mar 2004)
+
+ 07 Mar 2004; Daniel Black <dragonheart@gentoo.org>
+ uclinux-sources-2.4.24_p0.ebuild, uclinux-sources-2.6.3_p0.ebuild:
+ Initial import - ebuild by shannon.barber@myrealbox.com
+
diff --git a/sys-kernel/uclinux-sources/files/digest-uclinux-sources-2.4.24_p0 b/sys-kernel/uclinux-sources/files/digest-uclinux-sources-2.4.24_p0
new file mode 100644
index 000000000000..1f752820c61e
--- /dev/null
+++ b/sys-kernel/uclinux-sources/files/digest-uclinux-sources-2.4.24_p0
@@ -0,0 +1,2 @@
+MD5 1e055c42921b2396a559d84df4c3d9aa linux-2.4.24.tar.bz2 29837818
+MD5 cd8a3b23299305761c5b3b3f81dd017a uClinux-2.4.24-uc0.diff.gz 3762410
diff --git a/sys-kernel/uclinux-sources/files/digest-uclinux-sources-2.6.3_p0 b/sys-kernel/uclinux-sources/files/digest-uclinux-sources-2.6.3_p0
new file mode 100644
index 000000000000..83e3fc201787
--- /dev/null
+++ b/sys-kernel/uclinux-sources/files/digest-uclinux-sources-2.6.3_p0
@@ -0,0 +1,2 @@
+MD5 6063a7e424355ec52e0cb559fb99034d linux-2.6.3.tar.bz2 34271622
+MD5 ca2ecc5b6f59b9315e529458bda486a7 linux-2.6.3-uc0.patch.gz 61091
diff --git a/sys-kernel/uclinux-sources/metadata.xml b/sys-kernel/uclinux-sources/metadata.xml
new file mode 100644
index 000000000000..64c52286d44c
--- /dev/null
+++ b/sys-kernel/uclinux-sources/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>embedded</herd>
+<maintainer>
+ <email>embedded@gentoo.org</email>
+</maintainer>
+<longdescription>a uClinux kernel for embedded mmu-less CPUs</longdescription>
+</pkgmetadata>
diff --git a/sys-kernel/uclinux-sources/uclinux-sources-2.4.24_p0.ebuild b/sys-kernel/uclinux-sources/uclinux-sources-2.4.24_p0.ebuild
new file mode 100644
index 000000000000..677d7f943f91
--- /dev/null
+++ b/sys-kernel/uclinux-sources/uclinux-sources-2.4.24_p0.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-kernel/uclinux-sources/uclinux-sources-2.4.24_p0.ebuild,v 1.1 2004/03/07 04:52:48 dragonheart Exp $
+
+IUSE=""
+
+ETYPE="sources"
+inherit kernel
+OKV="`echo ${PV}|sed -e 's:^\([0-9]\+\.[0-9]\+\.[0-9]\+\).*:\1:'`"
+
+EXTRAVERSION="uc${PV/*_p/}"
+[ ! "${PR}" == "r0" ] && EXTRAVERSION="${EXTRAVERSION}-${PR}"
+KV="${OKV}-${EXTRAVERSION}"
+
+#Get the major & minor kernel version
+MMV=`echo $PV | awk -F. '{print $1"."$2}'`
+
+patch="diff"
+base="uClinux"
+if [ ${MMV} == "2.6" ]; then
+ patch="patch"
+ base="linux"
+fi
+
+MY_P=linux-${PV/_p/-uc}
+
+S=${WORKDIR}/${MY_P}
+DESCRIPTION="uCLinux kernel patches for CPUs without MMUs"
+SRC_URI="http://www.kernel.org/pub/linux/kernel/v${MMV}/linux-${OKV}.tar.bz2
+ http://www.uclinux.org/pub/uClinux/uClinux-${MMV}.x/${MY_P/linux/${base}}.${patch}.gz"
+
+HOMEPAGE="http://www.uclinux.org/"
+KEYWORDS="~x86"
+SLOT="${KV}"
+
+src_unpack() {
+ unpack ${A}
+ mv linux-${OKV} linux-${KV} || die
+
+ cd linux-${KV}
+ epatch ../${MY_P/linux/${base}}.${patch} || die "Failed to apply uClinux patch!"
+
+ set MY_ARCH=${ARCH}
+ unset ARCH
+ rm ../${MY_P/linux/${base}}.${patch}
+ kernel_universal_unpack
+ set ARCH=${MY_ARCH}
+}
diff --git a/sys-kernel/uclinux-sources/uclinux-sources-2.6.3_p0.ebuild b/sys-kernel/uclinux-sources/uclinux-sources-2.6.3_p0.ebuild
new file mode 100644
index 000000000000..8ad3be5c4d68
--- /dev/null
+++ b/sys-kernel/uclinux-sources/uclinux-sources-2.6.3_p0.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-kernel/uclinux-sources/uclinux-sources-2.6.3_p0.ebuild,v 1.1 2004/03/07 04:52:48 dragonheart Exp $
+
+IUSE=""
+
+ETYPE="sources"
+inherit kernel
+OKV="`echo ${PV}|sed -e 's:^\([0-9]\+\.[0-9]\+\.[0-9]\+\).*:\1:'`"
+
+EXTRAVERSION="uc${PV/*_p/}"
+[ ! "${PR}" == "r0" ] && EXTRAVERSION="${EXTRAVERSION}-${PR}"
+KV="${OKV}-${EXTRAVERSION}"
+
+#Get the major & minor kernel version
+MMV=`echo $PV | awk -F. '{print $1"."$2}'`
+
+patch="diff"
+base="uClinux"
+if [ ${MMV} == "2.6" ]; then
+ patch="patch"
+ base="linux"
+fi
+
+MY_P=linux-${PV/_p/-uc}
+
+S=${WORKDIR}/${MY_P}
+DESCRIPTION="uCLinux kernel patches for CPUs without MMUs"
+SRC_URI="http://www.kernel.org/pub/linux/kernel/v${MMV}/linux-${OKV}.tar.bz2
+ http://www.uclinux.org/pub/uClinux/uClinux-${MMV}.x/${MY_P/linux/${base}}.${patch}.gz"
+
+HOMEPAGE="http://www.uclinux.org/"
+KEYWORDS="~x86"
+SLOT="${KV}"
+
+src_unpack() {
+ unpack ${A}
+ mv linux-${OKV} linux-${KV} || die
+
+ cd linux-${KV}
+ epatch ../${MY_P/linux/${base}}.${patch} || die "Failed to apply uClinux patch!"
+
+ set MY_ARCH=${ARCH}
+ unset ARCH
+ rm ../${MY_P/linux/${base}}.${patch}
+ kernel_universal_unpack
+ set ARCH=${MY_ARCH}
+}