summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Yamin <plasmaroo@gentoo.org>2005-02-27 03:27:52 +0000
committerTim Yamin <plasmaroo@gentoo.org>2005-02-27 03:27:52 +0000
commitfd2ad5c43bb36893f1ce5e68e260eedcab63b445 (patch)
tree36e56fa176c218a90f915bc13786ba7279de065a /eclass/kernel-2.eclass
parentstable on mips wrt bug 83253 (diff)
downloadgentoo-2-fd2ad5c43bb36893f1ce5e68e260eedcab63b445.tar.gz
gentoo-2-fd2ad5c43bb36893f1ce5e68e260eedcab63b445.tar.bz2
gentoo-2-fd2ad5c43bb36893f1ce5e68e260eedcab63b445.zip
Add K_DEFCONFIG for improved MIPS headers support.
Diffstat (limited to 'eclass/kernel-2.eclass')
-rw-r--r--eclass/kernel-2.eclass15
1 files changed, 12 insertions, 3 deletions
diff --git a/eclass/kernel-2.eclass b/eclass/kernel-2.eclass
index 4576d644ef49..66d667357c86 100644
--- a/eclass/kernel-2.eclass
+++ b/eclass/kernel-2.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.104 2005/02/24 01:17:32 dsd Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.105 2005/02/27 03:27:52 plasmaroo Exp $
# Description: kernel.eclass rewrite for a clean base regarding the 2.6
# series of kernel with back-compatibility for 2.4
@@ -32,7 +32,10 @@
# postinst and can be used to carry additional postinst
# messages
# K_EXTRAEWARN - same as K_EXTRAEINFO except ewarn's instead of einfo's
-# K_SYMLINK - if this is set, then forcably create symlink anyway
+# K_SYMLINK - if this is set, then forcably create symlink anyway
+#
+# K_DEFCONFIG - Allow specifying a different defconfig target. If length zero,
+# defaults to "defconfig".
# H_SUPPORTEDARCH - this should be a space separated list of ARCH's which
# can be supported by the headers ebuild
@@ -223,12 +226,18 @@ compile_headers() {
[[ -f ${ROOT}/usr/include/linux/autoconf.h ]] \
|| touch include/linux/autoconf.h
+ # if K_DEFCONFIG isn't set, force to "defconfig"
+ # needed by mips
+ if [[ -z ${K_DEFCONFIG} ]]; then
+ K_DEFCONFIG="defconfig"
+ fi
+
# if there arent any installed headers, then there also isnt an asm
# symlink in /usr/include/, and make defconfig will fail, so we have
# to force an include path with $S.
HOSTCFLAGS="${HOSTCFLAGS} -I${S}/include/"
ln -sf asm-${KARCH} "${S}"/include/asm
- make defconfig HOSTCFLAGS="${HOSTCFLAGS}" ${xmakeopts} || die "defconfig failed"
+ make ${K_DEFCONFIG} HOSTCFLAGS="${HOSTCFLAGS}" ${xmakeopts} || die "defconfig failed"
make prepare HOSTCFLAGS="${HOSTCFLAGS}" ${xmakeopts} || die "prepare failed"
make prepare-all HOSTCFLAGS="${HOSTCFLAGS}" ${xmakeopts} || die "prepare failed"
fi