/[gentoo-x86]/eclass/kernel-2.eclass
Gentoo

Diff of /eclass/kernel-2.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.164 Revision 1.165
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/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.164 2006/03/15 01:45:23 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.165 2006/03/18 18:38:11 swegener 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
7# 7#
8# Maintainer: John Mylchreest <johnm@gentoo.org> 8# Maintainer: John Mylchreest <johnm@gentoo.org>
231 mirror://kernel/linux/kernel/v${KV_MAJOR}.${KV_MINOR}/testing/patch-${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}${RELEASE/-git*}.bz2 231 mirror://kernel/linux/kernel/v${KV_MAJOR}.${KV_MINOR}/testing/patch-${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}${RELEASE/-git*}.bz2
232 mirror://kernel/linux/kernel/v${KV_MAJOR}.${KV_MINOR}/linux-${OKV}.tar.bz2" 232 mirror://kernel/linux/kernel/v${KV_MAJOR}.${KV_MINOR}/linux-${OKV}.tar.bz2"
233 UNIPATCH_LIST_DEFAULT="${DISTDIR}/patch-${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}${RELEASE/-git*}.bz2 ${DISTDIR}/patch-${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}${RELEASE}.bz2" 233 UNIPATCH_LIST_DEFAULT="${DISTDIR}/patch-${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}${RELEASE/-git*}.bz2 ${DISTDIR}/patch-${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}${RELEASE}.bz2"
234 fi 234 fi
235 235
236 debug-print-kernel2-variables 236 debug-print-kernel2-variables
237 237
238 handle_genpatches 238 handle_genpatches
239} 239}
240 240
241kernel_is() { 241kernel_is() {
353 353
354unpack_2_6() { 354unpack_2_6() {
355 env_setup_xmakeopts 355 env_setup_xmakeopts
356 356
357 cd "${S}" 357 cd "${S}"
358 358
359 # since KBUILD_OUTPUT should only be used on the active kernel 359 # since KBUILD_OUTPUT should only be used on the active kernel
360 # sources, we should unset it here. 360 # sources, we should unset it here.
361 [[ -n "${KBUILD_OUTPUT}" ]] && unset KBUILD_OUTPUT 361 [[ -n "${KBUILD_OUTPUT}" ]] && unset KBUILD_OUTPUT
362 362
363 # this file is required for other things to build properly, so we 363 # this file is required for other things to build properly, so we
364 # autogenerate it ... touch .config to keep version.h build from 364 # autogenerate it ... touch .config to keep version.h build from
365 # spitting out an annoying warning 365 # spitting out an annoying warning
366 touch .config 366 touch .config
367 make -s include/linux/version.h ${xmakeopts} || die "make include/linux/version.h failed" 367 make -s include/linux/version.h ${xmakeopts} || die "make include/linux/version.h failed"
989 universal_unpack 989 universal_unpack
990 debug-print "Doing unipatch" 990 debug-print "Doing unipatch"
991 991
992 [[ -n ${UNIPATCH_LIST} || -n ${UNIPATCH_LIST_DEFAULT} || -n ${UNIPATCH_LIST_GENPATCHES} ]] && \ 992 [[ -n ${UNIPATCH_LIST} || -n ${UNIPATCH_LIST_DEFAULT} || -n ${UNIPATCH_LIST_GENPATCHES} ]] && \
993 unipatch "${UNIPATCH_LIST_DEFAULT} ${UNIPATCH_LIST_GENPATCHES} ${UNIPATCH_LIST}" 993 unipatch "${UNIPATCH_LIST_DEFAULT} ${UNIPATCH_LIST_GENPATCHES} ${UNIPATCH_LIST}"
994 994
995 debug-print "Doing premake" 995 debug-print "Doing premake"
996 996
997 # allow ebuilds to massage the source tree after patching but before 997 # allow ebuilds to massage the source tree after patching but before
998 # we run misc `make` functions below 998 # we run misc `make` functions below
999 [[ $(type -t kernel-2_hook_premake) == "function" ]] && kernel-2_hook_premake 999 [[ $(type -t kernel-2_hook_premake) == "function" ]] && kernel-2_hook_premake
1000 1000
1001 debug-print "Doing unpack_set_extraversion" 1001 debug-print "Doing unpack_set_extraversion"
1002 1002
1003 [[ -z ${K_NOSETEXTRAVERSION} ]] && unpack_set_extraversion 1003 [[ -z ${K_NOSETEXTRAVERSION} ]] && unpack_set_extraversion
1004 unpack_fix_docbook 1004 unpack_fix_docbook
1005 unpack_fix_install_path 1005 unpack_fix_install_path

Legend:
Removed from v.1.164  
changed lines
  Added in v.1.165

  ViewVC Help
Powered by ViewVC 1.1.20