Lines 1-6
Link Here
|
1 |
# Copyright 1999-2009 Gentoo Foundation |
1 |
# Copyright 1999-2009 Gentoo Foundation |
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 |
# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.225 2010/04/01 21:12:20 robbat2 Exp $ |
3 |
# $Header$ |
4 |
|
4 |
|
5 |
# Description: kernel.eclass rewrite for a clean base regarding the 2.6 |
5 |
# Description: kernel.eclass rewrite for a clean base regarding the 2.6 |
6 |
# series of kernel with back-compatibility for 2.4 |
6 |
# series of kernel with back-compatibility for 2.4 |
Lines 76-82
Link Here
|
76 |
HOMEPAGE="http://www.kernel.org/ http://www.gentoo.org/ ${HOMEPAGE}" |
76 |
HOMEPAGE="http://www.kernel.org/ http://www.gentoo.org/ ${HOMEPAGE}" |
77 |
# Reflect that kernels contain firmware blobs unless otherwise stripped |
77 |
# Reflect that kernels contain firmware blobs unless otherwise stripped |
78 |
[[ -z ${LICENSE} ]] && \ |
78 |
[[ -z ${LICENSE} ]] && \ |
79 |
LICENSE="GPL-2 freedist" |
79 |
LICENSE="GPL-2 !deblob? ( freedist )" |
80 |
|
80 |
|
81 |
# No need to run scanelf/strip on kernel sources/headers (bug #134453). |
81 |
# No need to run scanelf/strip on kernel sources/headers (bug #134453). |
82 |
RESTRICT="binchecks strip" |
82 |
RESTRICT="binchecks strip" |
Lines 299-305
Link Here
|
299 |
|
299 |
|
300 |
SLOT="${PVR}" |
300 |
SLOT="${PVR}" |
301 |
DESCRIPTION="Sources for the ${KV_MAJOR}.${KV_MINOR} linux kernel" |
301 |
DESCRIPTION="Sources for the ${KV_MAJOR}.${KV_MINOR} linux kernel" |
302 |
IUSE="symlink build" |
302 |
IUSE="symlink build deblob" |
|
|
303 |
|
304 |
# Can't do this in detect_version, since it breaks deblobbing of |
305 |
# openvz-sources |
306 |
KERNEL_URI="${KERNEL_URI} |
307 |
deblob? ( |
308 |
http://www.linux-libre.fsfla.org/pub/linux-libre/releases/LATEST-${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}.N/deblob-${KV_MAJOR}.${KV_MINOR}.${KV_PATCH} )" |
303 |
elif [[ ${ETYPE} == headers ]]; then |
309 |
elif [[ ${ETYPE} == headers ]]; then |
304 |
DESCRIPTION="Linux system headers" |
310 |
DESCRIPTION="Linux system headers" |
305 |
|
311 |
|
Lines 626-631
Link Here
|
626 |
# if we have USE=symlink, then force K_SYMLINK=1 |
632 |
# if we have USE=symlink, then force K_SYMLINK=1 |
627 |
use symlink && K_SYMLINK=1 |
633 |
use symlink && K_SYMLINK=1 |
628 |
|
634 |
|
|
|
635 |
# if we're using a deblobbed kernel, it's not supported |
636 |
use deblob && K_SECURITY_UNSUPPORTED=1 |
637 |
|
629 |
# if we are to forcably symlink, delete it if it already exists first. |
638 |
# if we are to forcably symlink, delete it if it already exists first. |
630 |
if [[ ${K_SYMLINK} > 0 ]]; then |
639 |
if [[ ${K_SYMLINK} > 0 ]]; then |
631 |
[[ -h ${ROOT}usr/src/linux ]] && rm ${ROOT}usr/src/linux |
640 |
[[ -h ${ROOT}usr/src/linux ]] && rm ${ROOT}usr/src/linux |
Lines 1066-1076
Link Here
|
1066 |
kernel_is 2 4 && unpack_2_4 |
1075 |
kernel_is 2 4 && unpack_2_4 |
1067 |
kernel_is 2 6 && unpack_2_6 |
1076 |
kernel_is 2 6 && unpack_2_6 |
1068 |
fi |
1077 |
fi |
|
|
1078 |
|
1079 |
if use deblob ; then |
1080 |
chmod +x "${DISTDIR}/deblob-${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}" |
1081 |
fi |
1069 |
} |
1082 |
} |
1070 |
|
1083 |
|
1071 |
kernel-2_src_compile() { |
1084 |
kernel-2_src_compile() { |
1072 |
cd "${S}" |
1085 |
cd "${S}" |
1073 |
[[ ${ETYPE} == headers ]] && compile_headers |
1086 |
[[ ${ETYPE} == headers ]] && compile_headers |
|
|
1087 |
|
1088 |
if use deblob ; then |
1089 |
echo ">>> Running deblob script ..." |
1090 |
sh "${DISTDIR}/deblob-${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}" --force || \ |
1091 |
die "Deblob script failed to run!!!" |
1092 |
fi |
1074 |
} |
1093 |
} |
1075 |
|
1094 |
|
1076 |
kernel-2_pkg_preinst() { |
1095 |
kernel-2_pkg_preinst() { |