/[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.103 Revision 1.104
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.103 2005/02/21 16:24:14 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.104 2005/02/24 01:17:32 dsd 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>
163 mv linux-${OKV} linux-${KV_FULL} \ 163 mv linux-${OKV} linux-${KV_FULL} \
164 || die "Unable to move source tree to ${KV_FULL}." 164 || die "Unable to move source tree to ${KV_FULL}."
165 fi 165 fi
166 cd ${S} 166 cd ${S}
167 167
168 # change incorrect install path
169 sed -ie 's:#export\tINSTALL_PATH:export\tINSTALL_PATH:' Makefile
170
171 # remove all backup files 168 # remove all backup files
172 find . -iname "*~" -exec rm {} \; 2> /dev/null 169 find . -iname "*~" -exec rm {} \; 2> /dev/null
173 170
174 if [[ -d ${S}/Documentation/DocBook ]]; then 171 if [[ -d ${S}/Documentation/DocBook ]]; then
175 cd ${S}/Documentation/DocBook 172 cd ${S}/Documentation/DocBook
183 ${S}/arch/ppc/Makefile 180 ${S}/arch/ppc/Makefile
184} 181}
185 182
186unpack_set_extraversion() { 183unpack_set_extraversion() {
187 cd ${S} 184 cd ${S}
188 sed -ie "s:^\(EXTRAVERSION =\).*:\1 ${EXTRAVERSION}:" Makefile 185 sed -i -e "s:^\(EXTRAVERSION =\).*:\1 ${EXTRAVERSION}:" Makefile
189 cd ${OLDPWD} 186 cd ${OLDPWD}
187}
188
189# Should be done after patches have been applied
190# Otherwise patches that modify the same area of Makefile will fail
191unpack_fix_install_path() {
192 cd ${S}
193 sed -i -e 's:#export\tINSTALL_PATH:export\tINSTALL_PATH:' Makefile
190} 194}
191 195
192# Compile Functions 196# Compile Functions
193#============================================================== 197#==============================================================
194compile_headers() { 198compile_headers() {
803 unipatch "${UNIPATCH_LIST_DEFAULT} ${UNIPATCH_LIST}" 807 unipatch "${UNIPATCH_LIST_DEFAULT} ${UNIPATCH_LIST}"
804 808
805 [ -z "${K_NOSETEXTRAVERSION}" ] && \ 809 [ -z "${K_NOSETEXTRAVERSION}" ] && \
806 unpack_set_extraversion 810 unpack_set_extraversion
807 811
812 unpack_fix_install_path
813
808 kernel_is 2 4 && unpack_2_4 814 kernel_is 2 4 && unpack_2_4
809} 815}
810 816
811kernel-2_src_compile() { 817kernel-2_src_compile() {
812 cd ${S} 818 cd ${S}

Legend:
Removed from v.1.103  
changed lines
  Added in v.1.104

  ViewVC Help
Powered by ViewVC 1.1.20