|
Lines 1-6
Link Here
|
| 1 |
# Copyright 1999-2013 Gentoo Foundation |
1 |
# Copyright 1999-2013 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.284 2013/04/29 22:14:23 tomwij Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v X.XXX 2013/XX/XX XX:XX:XX XXXXXX Exp $ |
| 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 415-433
Link Here
|
| 415 |
kernel_is 2 6 || kernel_is 2 5 |
415 |
kernel_is 2 6 || kernel_is 2 5 |
| 416 |
} |
416 |
} |
| 417 |
|
417 |
|
| 418 |
# Capture the sources type and set DEPENDs |
418 |
# Capture the sources type and set some basic variables. |
|
|
419 |
# See bug #469696 for discussion of *DEPEND, IUSE and more. |
| 419 |
if [[ ${ETYPE} == sources ]]; then |
420 |
if [[ ${ETYPE} == sources ]]; then |
| 420 |
DEPEND="!build? ( sys-apps/sed |
421 |
DEPEND="!build? ( sys-apps/sed )" |
| 421 |
>=sys-devel/binutils-2.11.90.0.31 )" |
422 |
RDEPEND="!build? ( sys-apps/sed |
| 422 |
RDEPEND="!build? ( >=sys-libs/ncurses-5.2 |
423 |
sys-apps/coreutils |
| 423 |
sys-devel/make |
424 |
sys-apps/diffutils |
|
|
425 |
sys-apps/findutils |
| 426 |
sys-apps/grep |
| 427 |
sys-apps/net-tools |
| 428 |
sys-apps/which |
| 429 |
sys-devel/make |
| 430 |
sys-devel/gcc |
| 431 |
>=sys-devel/binutils-2.11.90.0.31 |
| 432 |
sys-devel/bc |
| 433 |
virtual/awk |
| 424 |
dev-lang/perl |
434 |
dev-lang/perl |
| 425 |
sys-devel/bc )" |
435 |
ncurses? ( >=sys-libs/ncurses-5.2 ) |
|
|
436 |
modules? ( virtual/modutils ) |
| 437 |
gtk? ( virtual/pkgconfig |
| 438 |
dev-libs/glib:2 |
| 439 |
x11-libs/gtk+:2 |
| 440 |
gnome-base/libglade:2.0 |
| 441 |
) |
| 442 |
qt4? ( virtual/pkgconfig |
| 443 |
sys-devel/gcc[cxx] |
| 444 |
dev-qt/qtcore:4[qt3support] |
| 445 |
dev-qt/qtgui:4[qt3support] |
| 446 |
dev-qt/qt3support:4 |
| 447 |
) |
| 448 |
lzo? ( app-arch/lzop ) |
| 449 |
lzma? ( app-arch/xz-utils ) |
| 450 |
gzip? ( app-arch/gzip ) |
| 451 |
bzip2? ( app-arch/bzip2 ) |
| 452 |
initramfs? ( app-arch/cpio ) |
| 453 |
development? ( dev-util/ctags |
| 454 |
dev-util/global |
| 455 |
dev-ml/findlib |
| 456 |
>=dev-lang/ocaml-3.11 |
| 457 |
dev-util/coccinelle[python,ocaml] |
| 458 |
) |
| 459 |
)" |
| 426 |
PDEPEND="!build? ( virtual/dev-manager )" |
460 |
PDEPEND="!build? ( virtual/dev-manager )" |
|
|
461 |
REQUIRED_USE="!build? ( || ( lzo lzma gzip bzip2 ) )" |
| 427 |
|
462 |
|
| 428 |
SLOT="${PVR}" |
463 |
SLOT="${PVR}" |
| 429 |
DESCRIPTION="Sources based on the Linux Kernel." |
464 |
DESCRIPTION="Sources based on the Linux Kernel." |
| 430 |
IUSE="symlink build" |
465 |
IUSE="symlink build +modules ncurses gtk qt4 lzo lzma gzip bzip2 initramfs |
|
|
466 |
development" |
| 431 |
|
467 |
|
| 432 |
# Bug #266157, deblob for libre support |
468 |
# Bug #266157, deblob for libre support |
| 433 |
if [[ -z ${K_PREDEBLOBBED} ]] ; then |
469 |
if [[ -z ${K_PREDEBLOBBED} ]] ; then |
|
Lines 770-776
Link Here
|
| 770 |
use deblob && \ |
806 |
use deblob && \ |
| 771 |
K_SECURITY_UNSUPPORTED=deblob |
807 |
K_SECURITY_UNSUPPORTED=deblob |
| 772 |
|
808 |
|
| 773 |
# if we are to forcably symlink, delete it if it already exists first. |
809 |
# if we are to forcibly symlink, delete it if it already exists first. |
| 774 |
if [[ ${K_SYMLINK} > 0 ]]; then |
810 |
if [[ ${K_SYMLINK} > 0 ]]; then |
| 775 |
[[ -h ${ROOT}usr/src/linux ]] && rm ${ROOT}usr/src/linux |
811 |
[[ -h ${ROOT}usr/src/linux ]] && rm ${ROOT}usr/src/linux |
| 776 |
MAKELINK=1 |
812 |
MAKELINK=1 |
|
Lines 1231-1237
Link Here
|
| 1231 |
|
1267 |
|
| 1232 |
ABI="${KERNEL_ABI}" |
1268 |
ABI="${KERNEL_ABI}" |
| 1233 |
[[ ${ETYPE} == headers ]] && setup_headers |
1269 |
[[ ${ETYPE} == headers ]] && setup_headers |
| 1234 |
[[ ${ETYPE} == sources ]] && echo ">>> Preparing to unpack ..." |
1270 |
if [[ ${ETYPE} == sources ]]; then |
|
|
1271 |
if ! use ncurses && ! use gtk && ! use qt4; then |
| 1272 |
echo |
| 1273 |
ewarn "You have neither of the USE flags ncurses/gtk/qt4 turned on." |
| 1274 |
ewarn "Without these libraries you will be limited to very simple, line-based" |
| 1275 |
ewarn "kernel configuration means (make config, make oldconfig, ...)." |
| 1276 |
echo |
| 1277 |
fi |
| 1278 |
echo ">>> Preparing to unpack ..." |
| 1279 |
fi |
| 1235 |
} |
1280 |
} |
| 1236 |
|
1281 |
|
| 1237 |
kernel-2_pkg_postrm() { |
1282 |
kernel-2_pkg_postrm() { |