/[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.52 Revision 1.53
1# Copyright 1999-2004 Gentoo Foundation 1# Copyright 1999-2004 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.52 2004/11/26 01:49:05 johnm Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.53 2004/11/26 02:08:27 johnm Exp $
4 4
5# kernel.eclass rewrite for a clean base regarding the 2.6 series of kernel 5# kernel.eclass rewrite for a clean base regarding the 2.6 series of kernel
6# with back-compatibility for 2.4 6# with back-compatibility for 2.4
7# 7#
8# Author: John Mylchreest <johnm@gentoo.org> 8# Author: John Mylchreest <johnm@gentoo.org>
149 if [ "${OKV}" != "${KV}" ] 149 if [ "${OKV}" != "${KV}" ]
150 then 150 then
151 mv linux-${OKV} linux-${KV} || \ 151 mv linux-${OKV} linux-${KV} || \
152 die "Unable to move source tree to ${KV}." 152 die "Unable to move source tree to ${KV}."
153 fi 153 fi
154
155 # since pkg_setup sets S, and then portage resets S we
156 # need to re-set S= or it wont be correct.
157 S="${WORKDIR}/linux-${KV}"
158 154
159 cd ${S} 155 cd ${S}
160 # change incorrect install path 156 # change incorrect install path
161 [ -z "${K_NOFIXINSTALL_PATH}" ] && \ 157 [ -z "${K_NOFIXINSTALL_PATH}" ] && \
162 sed -i -e 's:#export\tINSTALL_PATH:export\tINSTALL_PATH:' Makefile 158 sed -i -e 's:#export\tINSTALL_PATH:export\tINSTALL_PATH:' Makefile
573 # this function will detect and set 569 # this function will detect and set
574 # OKV: Original Kernel Version (2.6.0/2.6.0-test11) 570 # OKV: Original Kernel Version (2.6.0/2.6.0-test11)
575 # KV: Kernel Version (2.6.0-gentoo/2.6.0-test11-gentoo-r1) 571 # KV: Kernel Version (2.6.0-gentoo/2.6.0-test11-gentoo-r1)
576 # EXTRAVERSION: The additional version appended to OKV (-gentoo/-gentoo-r1) 572 # EXTRAVERSION: The additional version appended to OKV (-gentoo/-gentoo-r1)
577 573
574 # if ${DETECTED} is still set then we must know about all this other stuff
575 # too, so lets just reset S and be done with it
578 [ -n "${DETECTED}" ] && return 576 if [ -n "${DETECTED}" ];
577 then
578 # set S properly again shall we?
579 S=${WORKDIR}/linux-${KV}
580 return
581 fi
579 582
580 if [ -z "${OKV}" ]; 583 if [ -z "${OKV}" ];
581 then 584 then
582 OKV=${PV/_beta/-test} 585 OKV=${PV/_beta/-test}
583 OKV=${OKV/_rc/-rc} 586 OKV=${OKV/_rc/-rc}

Legend:
Removed from v.1.52  
changed lines
  Added in v.1.53

  ViewVC Help
Powered by ViewVC 1.1.20