/[gentoo-x86]/sys-kernel/hppa-sources/hppa-sources-2.4.23_p4-r1.ebuild
Gentoo

Contents of /sys-kernel/hppa-sources/hppa-sources-2.4.23_p4-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Thu May 13 11:03:13 2004 UTC (13 years, 11 months ago) by gmsoft
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +1 -1 lines
FILE REMOVED
Pruned old sources.

1 # Copyright 1999-2004 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /home/cvsroot/gentoo-x86/sys-kernel/hppa-sources/hppa-sources-2.4.23_p4-r1.ebuild,v 1.6 2004/04/27 21:59:50 agriffis Exp $
4 #OKV=original kernel version, KV=patched kernel version. They can be the same.
5
6 ETYPE="sources"
7 inherit kernel eutils
8 OKV="${PV/_p*/}"
9 PATCH_LEVEL="${PV/${OKV}_p/}"
10 EXTRAVERSION="-pa${PATCH_LEVEL}"
11 [ ! "${PR}" = "r0" ] && EXTRAVERSION="${EXTRAVERSION}-${PR}"
12 KV="${OKV}${EXTRAVERSION}"
13 S=${WORKDIR}/linux-${KV}
14 IUSE="xfs"
15
16 PATCH_SET="`seq 1 ${PATCH_LEVEL}`"
17 PATCH_COUNT="$(( `echo ${PATCH_SET} | wc -w` - 1 ))"
18
19
20 DESCRIPTION="Full sources for the Linux kernel with patch for hppa"
21 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
22 `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`
23 xfs? ( http://dev.gentoo.org/~gmsoft/patches/xfs-${PV}-hppa.patch.bz2 )"
24 HOMEPAGE="http://www.kernel.org/ http://www.gentoo.org/ http://parisc-linux.org"
25 KEYWORDS="~hppa -*"
26 SLOT="${KV}"
27
28
29 src_unpack() {
30 unpack linux-${OKV}.tar.bz2
31 mv ${WORKDIR}/linux-${OKV} ${WORKDIR}/linux-${KV}
32 cd ${S}
33
34 einfo Applying ${OKV}-pa`echo ${PATCH_SET} | awk '{ print $1 }'`
35 zcat ${DISTDIR}/patch-${OKV}-pa`echo ${PATCH_SET} | awk '{ print $1 }'`.gz | patch -sp 1
36
37 for i in `seq 1 ${PATCH_COUNT}`
38 do
39 a=`echo ${PATCH_SET} | awk "{ print \\\$$i }"`
40 b=`echo ${PATCH_SET} | awk "{ print \\\$$((i + 1)) }"`
41 einfo Applying patch from ${OKV}-pa${a} to ${OKV}-pa${b}
42 zcat ${DISTDIR}/patch-${OKV}-pa${a}-pa${b}.gz | patch -sp 1
43 done
44
45 use xfs && epatch ${DISTDIR}/xfs-${PV}-hppa.patch.bz2
46
47 DEFCONFIG="${S}/arch/parisc/defconfig"
48
49 # Tweaks the default configuration
50
51 for i in CONFIG_SERIAL_NONSTANDARD CONFIG_PDC_CONSOLE CONFIG_DEVFS_FS \
52 CONFIG_USB CONFIG_USB_OHCI CONFIG_USB_HID CONFIG_USB_HIDINPUT \
53 CONFIG_CRC32 CONFIG_BLK_STATS
54 do
55 sed -i -e "s/^.*${i}\ .*$//" "${DEFCONFIG}"
56 echo "${i}=y" >> "${DEFCONFIG}"
57 done
58
59 for i in CONFIG_HOTPLUG CONFIG_PARPORT CONFIG_BLK_DEV_RAM CONFIG_MD \
60 CONFIG_CRYPTO CONFIG_DEVPTS_FS
61 do
62 sed -i -e "s/^.*${i}=.*$/# ${i} is not set/" "${DEFCONFIG}"
63 done
64
65 kernel_universal_unpack
66 }

  ViewVC Help
Powered by ViewVC 1.1.20