Lines 33-39
Link Here
|
33 |
|
33 |
|
34 |
|
34 |
|
35 |
DESCRIPTION="Full sources for the Gentoo Linux kernel" |
35 |
DESCRIPTION="Full sources for the Gentoo Linux kernel" |
36 |
SRC_URI="http://www.kernel.org/pub/linux/kernel/v2.4/linux-${OKV}.tar.bz2 http://www.ibiblio.org/gentoo/distfiles/linux-gentoo-${KV}.patch.bz2" |
36 |
SRC_URI="http://www.kernel.org/pub/linux/kernel/v2.4/linux-${OKV}.tar.bz2 http://www.ibiblio.org/gentoo/distfiles/linux-gentoo-${KV}.patch.bz2 http://www.lm-sensors.nu/archive/lm_sensors-2.6.3.tar.gz http://www.netroedge.com/~lm78/archive/i2c-2.6.3.tar.gz" |
37 |
PROVIDE="virtual/kernel" |
37 |
PROVIDE="virtual/kernel" |
38 |
HOMEPAGE="http://www.kernel.org/ http://www.gentoo.org/" |
38 |
HOMEPAGE="http://www.kernel.org/ http://www.gentoo.org/" |
39 |
|
39 |
|
Lines 51-56
Link Here
|
51 |
src_unpack() { |
51 |
src_unpack() { |
52 |
cd ${WORKDIR} |
52 |
cd ${WORKDIR} |
53 |
unpack linux-${OKV}.tar.bz2 |
53 |
unpack linux-${OKV}.tar.bz2 |
|
|
54 |
unpack i2c-2.6.3.tar.gz |
55 |
unpack lm_sensors-2.6.3.tar.gz |
54 |
mv linux linux-${KV} || die |
56 |
mv linux linux-${KV} || die |
55 |
cd ${S} |
57 |
cd ${S} |
56 |
cat ${DISTDIR}/linux-gentoo-${KV}.patch.bz2 | bzip2 -d | patch -p1 || die |
58 |
cat ${DISTDIR}/linux-gentoo-${KV}.patch.bz2 | bzip2 -d | patch -p1 || die |
Lines 72-77
Link Here
|
72 |
sed -e 's:#export\tINSTALL_PATH:export\tINSTALL_PATH:' \ |
74 |
sed -e 's:#export\tINSTALL_PATH:export\tINSTALL_PATH:' \ |
73 |
Makefile.orig >Makefile || die # test, remove me if Makefile ok |
75 |
Makefile.orig >Makefile || die # test, remove me if Makefile ok |
74 |
rm Makefile.orig |
76 |
rm Makefile.orig |
|
|
77 |
|
78 |
# check for use lm_sensors |
79 |
if [ -n "`use lm_sensors`" ] |
80 |
then |
81 |
# Make i2c patch and apply |
82 |
echo "Creating i2c patch and patching kernel" |
83 |
${WORKDIR}/i2c-2.6.3/mkpatch/mkpatch.pl ${WORKDIR}/i2c-2.6.3 ${S} | patch -d ${S} -p1 -E |
84 |
|
85 |
# Make lm_sensors patch and apply |
86 |
echo "Creating lm_sensors patch and patching kernel" |
87 |
${WORKDIR}/lm_sensors-2.6.3/mkpatch/mkpatch.pl ${WORKDIR}/lm_sensors-2.6.3 ${S} | patch -d ${S} -p1 -E |
88 |
fi |
75 |
} |
89 |
} |
76 |
|
90 |
|
77 |
src_compile() { |
91 |
src_compile() { |