summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-10-24 23:43:07 +0000
committerMike Frysinger <vapier@gentoo.org>2006-10-24 23:43:07 +0000
commita84cc191578eb1b96f1d5ae500be9ac8867be283 (patch)
tree04c4c6e9f3a43914c00fe168a08acae4d383c2cc /eclass/kernel-2.eclass
parentStable on SPARC wrt bug #152364. (diff)
downloadhistorical-a84cc191578eb1b96f1d5ae500be9ac8867be283.tar.gz
historical-a84cc191578eb1b96f1d5ae500be9ac8867be283.tar.bz2
historical-a84cc191578eb1b96f1d5ae500be9ac8867be283.zip
add support for sysroot to new header install method
Diffstat (limited to 'eclass/kernel-2.eclass')
-rw-r--r--eclass/kernel-2.eclass8
1 files changed, 4 insertions, 4 deletions
diff --git a/eclass/kernel-2.eclass b/eclass/kernel-2.eclass
index ee40e2e6d65f..779602dda581 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.194 2006/10/12 02:58:51 dostrow Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.195 2006/10/24 23:43:07 vapier Exp $
# Description: kernel.eclass rewrite for a clean base regarding the 2.6
# series of kernel with back-compatibility for 2.4
@@ -487,16 +487,16 @@ install_universal() {
}
install_headers() {
+ local ddir=$(kernel_header_destdir)
+
# 2.6.18 introduces headers_install which means we dont need any
# of this crap anymore :D
if kernel_is ge 2 6 18 ; then
env_setup_xmakeopts
- emake headers_install INSTALL_HDR_PATH="${D}"/usr ${xmakeopts} || die
+ emake headers_install INSTALL_HDR_PATH="${D}"/${ddir}/.. ${xmakeopts} || die
return 0
fi
- local ddir=$(kernel_header_destdir)
-
cd "${S}"
dodir ${ddir}/linux
cp -pPR "${S}"/include/linux/* ${D}/${ddir}/linux