|
Lines 1-6
Link Here
|
| 1 |
# Copyright 1999-2005 Gentoo Foundation |
1 |
# Copyright 1999-2005 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/www/www.gentoo.org/raw_cvs/gentoo-x86/eclass/kernel-2.eclass,v 1.125 2005/05/15 20:30:04 johnm Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.125 2005/05/15 20:30:04 johnm 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 55-61
Link Here
|
| 55 |
ECLASS="kernel-2" |
55 |
ECLASS="kernel-2" |
| 56 |
INHERITED="$INHERITED $ECLASS" |
56 |
INHERITED="$INHERITED $ECLASS" |
| 57 |
EXPORT_FUNCTIONS pkg_setup src_unpack src_compile src_install \ |
57 |
EXPORT_FUNCTIONS pkg_setup src_unpack src_compile src_install \ |
| 58 |
pkg_preinst pkg_postinst |
58 |
pkg_preinst pkg_postinst pkg_prerm |
| 59 |
|
59 |
|
| 60 |
export CTARGET=${CTARGET:-${CHOST}} |
60 |
export CTARGET=${CTARGET:-${CHOST}} |
| 61 |
if [[ ${CTARGET} == ${CHOST} && ${CATEGORY/cross-} != ${CATEGORY} ]]; then |
61 |
if [[ ${CTARGET} == ${CHOST} && ${CATEGORY/cross-} != ${CATEGORY} ]]; then |
|
Lines 901-903
Link Here
|
| 901 |
[[ ${ETYPE} == headers ]] && setup_headers |
901 |
[[ ${ETYPE} == headers ]] && setup_headers |
| 902 |
[[ ${ETYPE} == sources ]] && echo ">>> Preparing to unpack ..." |
902 |
[[ ${ETYPE} == sources ]] && echo ">>> Preparing to unpack ..." |
| 903 |
} |
903 |
} |
|
|
904 |
|
| 905 |
# Added to clean out object code and other files created by the kernel build process |
| 906 |
kernel-2_pkg_prerm() { |
| 907 |
if [[ ${ETYPE} == sources ]]; then |
| 908 |
# Kernel Makefile derives proper setting on its own so temporarily unset it |
| 909 |
MY_ARCH=${ARCH} |
| 910 |
unset ARCH |
| 911 |
make -C /usr/src/linux-${KV_FULL} mrproper |
| 912 |
ARCH=${MY_ARCH} |
| 913 |
fi |
| 914 |
} |