/[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.194 Revision 1.195
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.194 2006/10/12 02:58:51 dostrow Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.195 2006/10/24 23:43:07 vapier 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>
485 chmod -R a+r-w+X,u+w * 485 chmod -R a+r-w+X,u+w *
486 cd ${OLDPWD} 486 cd ${OLDPWD}
487} 487}
488 488
489install_headers() { 489install_headers() {
490 local ddir=$(kernel_header_destdir)
491
490 # 2.6.18 introduces headers_install which means we dont need any 492 # 2.6.18 introduces headers_install which means we dont need any
491 # of this crap anymore :D 493 # of this crap anymore :D
492 if kernel_is ge 2 6 18 ; then 494 if kernel_is ge 2 6 18 ; then
493 env_setup_xmakeopts 495 env_setup_xmakeopts
494 emake headers_install INSTALL_HDR_PATH="${D}"/usr ${xmakeopts} || die 496 emake headers_install INSTALL_HDR_PATH="${D}"/${ddir}/.. ${xmakeopts} || die
495 return 0 497 return 0
496 fi 498 fi
497
498 local ddir=$(kernel_header_destdir)
499 499
500 cd "${S}" 500 cd "${S}"
501 dodir ${ddir}/linux 501 dodir ${ddir}/linux
502 cp -pPR "${S}"/include/linux/* ${D}/${ddir}/linux 502 cp -pPR "${S}"/include/linux/* ${D}/${ddir}/linux
503 rm -rf ${D}/${ddir}/linux/modules 503 rm -rf ${D}/${ddir}/linux/modules

Legend:
Removed from v.1.194  
changed lines
  Added in v.1.195

  ViewVC Help
Powered by ViewVC 1.1.20