summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuy Martin <gmsoft@gentoo.org>2003-12-28 02:18:56 +0000
committerGuy Martin <gmsoft@gentoo.org>2003-12-28 02:18:56 +0000
commitf32f2605130a81cf57595081500f22a3e8d5e7ce (patch)
tree9723c22636c3b78c528c8f98ec6b84287e6dc1ca /sys-kernel/hppa-sources
parentAdded xfs support. Tweaks defconfig for more reasonable 'gentoo' defaults. (diff)
downloadgentoo-2-f32f2605130a81cf57595081500f22a3e8d5e7ce.tar.gz
gentoo-2-f32f2605130a81cf57595081500f22a3e8d5e7ce.tar.bz2
gentoo-2-f32f2605130a81cf57595081500f22a3e8d5e7ce.zip
Added xfs support. Tweaks defconfig for more reasonable 'gentoo' defaults.
Diffstat (limited to 'sys-kernel/hppa-sources')
-rw-r--r--sys-kernel/hppa-sources/ChangeLog7
-rw-r--r--sys-kernel/hppa-sources/Manifest4
-rw-r--r--sys-kernel/hppa-sources/files/digest-hppa-sources-2.4.23_p4-r16
-rw-r--r--sys-kernel/hppa-sources/hppa-sources-2.4.23_p4-r1.ebuild65
4 files changed, 79 insertions, 3 deletions
diff --git a/sys-kernel/hppa-sources/ChangeLog b/sys-kernel/hppa-sources/ChangeLog
index 545c39f1061e..b3feed155405 100644
--- a/sys-kernel/hppa-sources/ChangeLog
+++ b/sys-kernel/hppa-sources/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sys-kernel/hppa-sources
# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-kernel/hppa-sources/ChangeLog,v 1.23 2003/12/18 19:17:19 gmsoft Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-kernel/hppa-sources/ChangeLog,v 1.24 2003/12/28 02:18:48 gmsoft Exp $
+
+*hppa-sources-2.4.23_p4-r1 (28 Dec 2003)
+
+ 28 Dec 2003; Guy Martin <gmsoft@gentoo.org> hppa-sources-2.4.23_p4-r1.ebuild :
+ Added xfs support. Tweaks defconfig for more reasonable 'gentoo' defaults.
*hppa-sources-2.4.23_p4 (18 Dec 2003)
diff --git a/sys-kernel/hppa-sources/Manifest b/sys-kernel/hppa-sources/Manifest
index 9b3a39975fac..ca09eee8a257 100644
--- a/sys-kernel/hppa-sources/Manifest
+++ b/sys-kernel/hppa-sources/Manifest
@@ -1,4 +1,4 @@
-MD5 99dee259037e1b48a692423cdd17cfbf ChangeLog 3755
+MD5 4bd64b854c84bdc86f9017752dda2c23 ChangeLog 3755
MD5 622e8f2314c5ea410458584582a6e460 hppa-sources-2.4.21_p10.ebuild 1561
MD5 0758f55b4873a3d88c96aec4952597c3 hppa-sources-2.4.21_p13.ebuild 1879
MD5 38b00b5d2411620e0ff2f40b7f3228f6 hppa-sources-2.4.21_p2.ebuild 1082
@@ -13,7 +13,7 @@ MD5 a7731136711ea8a34621c9247dece54a hppa-sources-2.4.22_p6.ebuild 1795
MD5 d2c27c55a1aa36cf5f88533bd8e252de hppa-sources-2.4.23_p3.ebuild 1049
MD5 05ed5731534e9423f109cbec1aa7e993 metadata.xml 223
MD5 eec55809d1047284ca33e9eebd18c15e hppa-sources-2.4.23_p4.ebuild 1711
-MD5 c4ae25f8e755a4b5fb4505d09f5cbdcc hppa-sources-2.4.23_p4-r1.ebuild 2368
+MD5 ff774b9a491001060d045668d977a38a hppa-sources-2.4.23_p4-r1.ebuild 2371
MD5 7743c939ccccf0343faed987e12b489b files/digest-hppa-sources-2.4.21_p10 334
MD5 306724fa77532e2a73c383f7322f1e56 files/digest-hppa-sources-2.4.21_p13 469
MD5 605092c92ae7fda21bdfc646556c3318 files/digest-hppa-sources-2.4.21_p2 136
diff --git a/sys-kernel/hppa-sources/files/digest-hppa-sources-2.4.23_p4-r1 b/sys-kernel/hppa-sources/files/digest-hppa-sources-2.4.23_p4-r1
new file mode 100644
index 000000000000..e93a8fde744e
--- /dev/null
+++ b/sys-kernel/hppa-sources/files/digest-hppa-sources-2.4.23_p4-r1
@@ -0,0 +1,6 @@
+MD5 642af5ab5e1fc63685fde85e9ae601e4 linux-2.4.23.tar.bz2 29832609
+MD5 e3d60ede46a72bfed58d7e6b3a34bd0c patch-2.4.23-pa1.gz 715027
+MD5 d1ef1d7ef6d68bee06aae58c824f82bc patch-2.4.23-pa1-pa2.gz 4141
+MD5 255e3de06190a68e71ebd960a51c53a8 patch-2.4.23-pa2-pa3.gz 919
+MD5 498c36aba7ea1e20436f83609867a9dd patch-2.4.23-pa3-pa4.gz 443
+MD5 fd23b7f3af634c6e93151cb48cbde8d8 xfs-2.4.23_p4-hppa.patch.bz2 1188535
diff --git a/sys-kernel/hppa-sources/hppa-sources-2.4.23_p4-r1.ebuild b/sys-kernel/hppa-sources/hppa-sources-2.4.23_p4-r1.ebuild
new file mode 100644
index 000000000000..d5999315813d
--- /dev/null
+++ b/sys-kernel/hppa-sources/hppa-sources-2.4.23_p4-r1.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-kernel/hppa-sources/hppa-sources-2.4.23_p4-r1.ebuild,v 1.1 2003/12/28 02:18:48 gmsoft Exp $
+#OKV=original kernel version, KV=patched kernel version. They can be the same.
+
+ETYPE="sources"
+inherit kernel
+OKV="${PV/_p*/}"
+PATCH_LEVEL="${PV/${OKV}_p/}"
+KV=${OKV}-pa${PATCH_LEVEL}
+EXTRAVERSION="-pa${PATCH_LEVEL}"
+S=${WORKDIR}/linux-${KV}
+IUSE="xfs"
+
+PATCH_SET="`seq 1 ${PATCH_LEVEL}`"
+PATCH_COUNT="$(( `echo ${PATCH_SET} | wc -w` - 1 ))"
+
+
+DESCRIPTION="Full sources for the Linux kernel with patch for hppa"
+SRC_URI="mirror://kernel/linux/kernel/v2.4/linux-${OKV}.tar.bz2 http://ftp.parisc-linux.org/cvs/linux-2.4/patch-${OKV}-pa`echo ${PATCH_SET} | awk '{ print $1 }'`.gz
+`for i in \`seq 1 ${PATCH_COUNT}\`; do echo http://ftp.parisc-linux.org/cvs/linux-2.4/patch-${OKV}-pa\`echo ${PATCH_SET} | awk \"{ print \\\\\$$i }\"\`-pa\`echo ${PATCH_SET} | awk \"{ print \\\\\$$((i + 1)) }\"\`.gz; done`
+xfs? ( http://dev.gentoo.org/~gmsoft/patches/xfs-${PV}-hppa.patch.bz2 )"
+HOMEPAGE="http://www.kernel.org/ http://www.gentoo.org/ http://parisc-linux.org"
+KEYWORDS="~hppa -*"
+SLOT="${KV}"
+
+
+src_unpack() {
+ unpack linux-${OKV}.tar.bz2
+ mv ${WORKDIR}/linux-${OKV} ${WORKDIR}/linux-${KV}
+ cd ${S}
+
+ einfo Applying ${OKV}-pa`echo ${PATCH_SET} | awk '{ print $1 }'`
+ zcat ${DISTDIR}/patch-${OKV}-pa`echo ${PATCH_SET} | awk '{ print $1 }'`.gz | patch -sp 1
+
+ for i in `seq 1 ${PATCH_COUNT}`
+ do
+ a=`echo ${PATCH_SET} | awk "{ print \\\$$i }"`
+ b=`echo ${PATCH_SET} | awk "{ print \\\$$((i + 1)) }"`
+ einfo Applying patch from ${OKV}-pa${a} to ${OKV}-pa${b}
+ zcat ${DISTDIR}/patch-${OKV}-pa${a}-pa${b}.gz | patch -sp 1
+ done
+
+ use xfs && epatch ${DISTDIR}/xfs-${PV}-hppa.patch.bz2
+
+ DEFCONFIG="${S}/arch/parisc/defconfig"
+
+ # Tweaks the default configuration
+
+ for i in CONFIG_SERIAL_NONSTANDARD CONFIG_PDC_CONSOLE CONFIG_DEVFS_FS \
+ CONFIG_USB CONFIG_USB_OHCI CONFIG_USB_HID CONFIG_USB_HIDINPUT \
+ CONFIG_CRC32 CONFIG_BLK_STATS
+ do
+ sed -i -e "s/^.*${i}\ .*$//" "${DEFCONFIG}"
+ echo "${i}=y" >> "${DEFCONFIG}"
+ done
+
+ for i in CONFIG_HOTPLUG CONFIG_PARPORT CONFIG_BLK_DEV_RAM CONFIG_MD \
+ CONFIG_CRYPTO CONFIG_DEVPTS_FS
+ do
+ sed -i -e "s/^.*${i}=.*$/# ${i} is not set/" "${DEFCONFIG}"
+ done
+
+ kernel_universal_unpack
+}