Link Here
|
1 |
# Copyright 1999-2003 Gentoo Technologies, Inc. |
1 |
# Copyright 1999-2002 Gentoo Technologies, Inc. |
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
#OKV=original kernel version, KV=patched kernel version. They can be the same. |
3 |
#OKV=original kernel version, KV=patched kernel version. They can be the same. |
4 |
|
4 |
|
|
|
5 |
inherit crosscompile |
6 |
|
7 |
# For want of a better spot this will do |
8 |
|
5 |
#we use this next variable to avoid duplicating stuff on cvs |
9 |
#we use this next variable to avoid duplicating stuff on cvs |
6 |
GFILESDIR=${PORTDIR}/sys-kernel/linux-sources/files |
10 |
GFILESDIR=${PORTDIR}/sys-kernel/linux-sources/files |
7 |
SPARCFILEDIR=${PORTDIR}/sys-kernel/sparc-sources/files |
11 |
SPARCFILEDIR=${PORTDIR}/sys-kernel/sparc-sources/files |
Link Here
|
17 |
HOMEPAGE="http://www.kernel.org/ http://www.gentoo.org/" |
21 |
HOMEPAGE="http://www.kernel.org/ http://www.gentoo.org/" |
18 |
LICENSE="GPL-2" |
22 |
LICENSE="GPL-2" |
19 |
SLOT="${KV}" |
23 |
SLOT="${KV}" |
20 |
KEYWORDS="hppa -x86 -ppc -sparc -alpha" |
24 |
KEYWORDS="hppa x86 -ppc -sparc -alpha" |
21 |
|
25 |
|
22 |
KERNEL_ARCH=`echo $ARCH |\ |
26 |
KERNEL_ARCH=`echo $ARCH |\ |
23 |
sed -e s/[i]*.86/i386/ -e s/sun4u// -e s/arm.*/arm/ -e s/sa110/arm/ -e s/hppa*/parisc/` |
27 |
sed -e s/[i]*.86/i386/ -e s/sun4u// -e s/arm.*/arm/ -e s/sa110/arm/ -e s/hppa*/parisc/` |
Link Here
|
29 |
|
33 |
|
30 |
# Download the latest hppa patch |
34 |
# Download the latest hppa patch |
31 |
HPPA_PATCH_LEVEL="26" |
35 |
HPPA_PATCH_LEVEL="26" |
32 |
if [ `use hppa` ] |
36 |
if [ "`use hppa`" ] |
33 |
then |
37 |
then |
34 |
SRC_URI="${SRC_URI} http://ftp.parisc-linux.org/cvs/patch-${OKV}-pa${HPPA_PATCH_LEVEL}.diff.gz" |
38 |
SRC_URI="${SRC_URI} http://ftp.parisc-linux.org/cvs/patch-${OKV}-pa${HPPA_PATCH_LEVEL}.diff.gz" |
35 |
KV="${OKV}-pa${HPPA_PATCH_LEVEL}" |
39 |
KV="${OKV}-pa${HPPA_PATCH_LEVEL}" |
Link Here
|
126 |
else |
130 |
else |
127 |
cp -ax ${S}/include/asm-${KERNEL_ARCH}/* ${D}/usr/include/asm |
131 |
cp -ax ${S}/include/asm-${KERNEL_ARCH}/* ${D}/usr/include/asm |
128 |
fi |
132 |
fi |
|
|
133 |
|
134 |
# If this is for a cross compiler move the headers into position. |
135 |
# Aiken 24/02/2003 |
136 |
if cross-target |
137 |
then |
138 |
cd ${D} |
139 |
mkdir -p usr/${CCHOST}/include |
140 |
cd usr/${CCHOST}/include |
141 |
cp ${D}/usr/include/* . -avf |
142 |
rm -rf ${D}/usr/include |
143 |
fi |
129 |
fi |
144 |
fi |
130 |
} |
145 |
} |
131 |
|
146 |
|