diff options
author | John Mylchreest <johnm@gentoo.org> | 2006-05-03 11:10:11 +0000 |
---|---|---|
committer | John Mylchreest <johnm@gentoo.org> | 2006-05-03 11:10:11 +0000 |
commit | 5ef2d53d1b5a0336253a5f0f16770ec5b58ffa8d (patch) | |
tree | de5b51fcb9b92583d83394254d95e3b332017bed /eclass/kernel-2.eclass | |
parent | remove old ebuilds (diff) | |
download | historical-5ef2d53d1b5a0336253a5f0f16770ec5b58ffa8d.tar.gz historical-5ef2d53d1b5a0336253a5f0f16770ec5b58ffa8d.tar.bz2 historical-5ef2d53d1b5a0336253a5f0f16770ec5b58ffa8d.zip |
provide fix for 2.6.17 make of version.h depending on oldconfig and throwing an error if the .config is not valid, dont call the special unpack conditions for sources (we dont need to). This should be 2.4-2.6.17+ safe
Diffstat (limited to 'eclass/kernel-2.eclass')
-rw-r--r-- | eclass/kernel-2.eclass | 35 |
1 files changed, 19 insertions, 16 deletions
diff --git a/eclass/kernel-2.eclass b/eclass/kernel-2.eclass index d1f99c2a0366..26f8f2bb75e3 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.171 2006/04/24 11:59:20 johnm Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.172 2006/05/03 11:10:11 johnm Exp $ # Description: kernel.eclass rewrite for a clean base regarding the 2.6 # series of kernel with back-compatibility for 2.4 @@ -340,9 +340,6 @@ env_setup_xmakeopts() { # Unpack functions #============================================================== unpack_2_4() { - env_setup_xmakeopts - - cd "${S}" # this file is required for other things to build properly, # so we autogenerate it make -s mrproper ${xmakeopts} || die "make mrproper failed" @@ -352,19 +349,11 @@ unpack_2_4() { } unpack_2_6() { - env_setup_xmakeopts - - cd "${S}" - - # since KBUILD_OUTPUT should only be used on the active kernel - # sources, we should unset it here. - [[ -n "${KBUILD_OUTPUT}" ]] && unset KBUILD_OUTPUT - # this file is required for other things to build properly, so we - # autogenerate it ... touch .config to keep version.h build from + # autogenerate it ... generate a .config to keep version.h build from # spitting out an annoying warning make -s mrproper ${xmakeopts} 2>/dev/null || die "make mrproper failed" - touch .config + make -s defconfig &>/dev/null 2>&1 || die "make defconfig failed" make -s include/linux/version.h ${xmakeopts} || die "make include/linux/version.h failed" rm -f .config } @@ -1021,8 +1010,22 @@ kernel-2_src_unpack() { unpack_fix_docbook unpack_fix_install_path - kernel_is 2 4 && unpack_2_4 - kernel_is 2 6 && unpack_2_6 + # Setup xmakeopts and cd into sourcetree. + env_setup_xmakeopts + cd "${S}" + + # since KBUILD_OUTPUT should only be used on the active kernel + # sources, we should unset it here. + [[ -n "${KBUILD_OUTPUT}" ]] && unset KBUILD_OUTPUT + + # We dont need a version.h for anything other than headers + # at least, I should hope we dont. If this causes problems + # take out the if/fi block and inform me please. + # unpack_2_6 should now be 2.6.17 safe anyways + if [[ ${ETYPE} == headers ]]; then + kernel_is 2 4 && unpack_2_4 + kernel_is 2 6 && unpack_2_6 + fi } kernel-2_src_compile() { |