/[gentoo-x86]/sys-kernel/hppa-sources/hppa-sources-2.4.26_p1.ebuild
Gentoo

Contents of /sys-kernel/hppa-sources/hppa-sources-2.4.26_p1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Mon Jun 7 00:16:35 2004 UTC (13 years, 7 months ago) by gmsoft
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Bumped version. Include CAN-2004-0394 fix. Removed other older ebuilds.

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.26_p1.ebuild,v 1.1 2004/04/27 22:39:56 gustavoz 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
14 S=${WORKDIR}/linux-${KV}
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 http://dev.gentoo.org/~gmsoft/patches/parisc-2.4.23-pa4-missing-ioctl-translations.diff"
23 HOMEPAGE="http://www.kernel.org/ http://www.gentoo.org/ http://parisc-linux.org"
24 KEYWORDS="hppa -*"
25 SLOT="${KV}"
26
27
28 src_unpack() {
29 unpack linux-${OKV}.tar.bz2
30 mv ${WORKDIR}/linux-${OKV} ${WORKDIR}/linux-${KV}
31 cd ${S}
32
33 einfo Applying ${OKV}-pa`echo ${PATCH_SET} | awk '{ print $1 }'`
34 zcat ${DISTDIR}/patch-${OKV}-pa`echo ${PATCH_SET} | awk '{ print $1 }'`.gz | patch -sp 1
35
36 DEFCONFIG="${S}/arch/parisc/defconfig"
37
38 # Tweaks the default configuration
39
40 # Enable stuff
41 for i in CONFIG_SERIAL_NONSTANDARD CONFIG_PDC_CONSOLE CONFIG_DEVFS_FS \
42 CONFIG_USB CONFIG_USB_OHCI CONFIG_USB_HID CONFIG_USB_HIDINPUT \
43 CONFIG_CRC32 CONFIG_BLK_STATS CONFIG_TMPFS
44 do
45 sed -i -e "s/^.*${i}\ .*$//" "${DEFCONFIG}"
46 echo "${i}=y" >> "${DEFCONFIG}"
47 done
48
49 # Disable stuff
50 for i in CONFIG_HOTPLUG CONFIG_PARPORT CONFIG_BLK_DEV_RAM CONFIG_MD \
51 CONFIG_CRYPTO CONFIG_DEVPTS_FS
52 do
53 sed -i -e "s/^.*${i}=.*$/# ${i} is not set/" "${DEFCONFIG}"
54 done
55
56 epatch ${DISTDIR}/parisc-2.4.23-pa4-missing-ioctl-translations.diff || die "Failed to patch missing ioctls translations!"
57
58 kernel_universal_unpack
59 }

  ViewVC Help
Powered by ViewVC 1.1.20