/[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.98 Revision 1.99
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.98 2005/02/09 21:07:14 hollow Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.99 2005/02/11 01:17:36 eradicator 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>
249 249
250 cd ${S} 250 cd ${S}
251 dodir ${ddir}/linux 251 dodir ${ddir}/linux
252 cp -ax ${S}/include/linux/* ${D}/${ddir}/linux 252 cp -ax ${S}/include/linux/* ${D}/${ddir}/linux
253 rm -rf ${D}/${ddir}/linux/modules 253 rm -rf ${D}/${ddir}/linux/modules
254 dodir ${ddir}/asm
255 254
256 if [[ $(tc-arch-kernel) == "sparc64" ]]; then 255 # Handle multilib headers
257 rm -Rf ${D}/${ddir}/asm 256 case $(tc-arch-kernel) in
257 sparc64)
258 dodir ${ddir}/asm-sparc 258 dodir ${ddir}/asm-sparc
259 cp -ax ${S}/include/asm-sparc/* ${D}/${ddir}/asm-sparc
260
259 dodir ${ddir}/asm-sparc64 261 dodir ${ddir}/asm-sparc64
260 cp -ax ${S}/include/asm-sparc/* ${D}/usr/include/asm-sparc
261 cp -ax ${S}/include/asm-sparc64/* ${D}/usr/include/asm-sparc64 262 cp -ax ${S}/include/asm-sparc64/* ${D}/${ddir}/asm-sparc64
262 #generate_sparc_asm ${D}/usr/include 263
263 create_ml_includes /usr/include/asm __sparc__:/usr/include/asm-sparc __sparc64__:/usr/include/asm-sparc64 264 create_ml_includes ${ddir}/asm __sparc__:${ddir}/asm-sparc __sparc64__:${ddir}/asm-sparc64
264 elif [[ $(tc-arch-kernel) == "x86_64" ]]; then 265 ;;
265 rm -Rf ${D}/${ddir}/asm 266 x86_64)
266 dodir ${ddir}/asm-i386 267 dodir ${ddir}/asm-i386
268 cp -ax ${S}/include/asm-i386/* ${D}/${ddir}/asm-i386
269
267 dodir ${ddir}/asm-x86_64 270 dodir ${ddir}/asm-x86_64
268 cp -ax ${S}/include/asm-i386/* ${D}/usr/include/asm-i386
269 cp -ax ${S}/include/asm-x86_64/* ${D}/usr/include/asm-x86_64 271 cp -ax ${S}/include/asm-x86_64/* ${D}/${ddir}/asm-x86_64
270 #/bin/sh ${FILESDIR}/generate-asm-amd64 ${D}/usr/include 272
271 create_ml_includes /usr/include/asm __i386__:/usr/include/asm-i386 __x86_64__:/usr/include/asm-x86_64 273 create_ml_includes ${ddir}/asm __i386__:${ddir}/asm-i386 __x86_64__:${ddir}/asm-x86_64
272 else 274 ;;
275 *)
276 dodir ${ddir}/asm
273 cp -ax ${S}/include/asm/* ${D}/${ddir}/asm 277 cp -ax ${S}/include/asm/* ${D}/${ddir}/asm
274 fi 278 ;;
279 esac
275 280
276 if kernel_is 2 6; then 281 if kernel_is 2 6; then
277 dodir ${ddir}/asm-generic 282 dodir ${ddir}/asm-generic
278 cp -ax ${S}/include/asm-generic/* ${D}/${ddir}/asm-generic 283 cp -ax ${S}/include/asm-generic/* ${D}/${ddir}/asm-generic
279 fi 284 fi
285
280 cd ${OLDPWD} 286 cd ${OLDPWD}
281} 287}
282 288
283install_sources() { 289install_sources() {
284 local doc docs file 290 local doc docs file

Legend:
Removed from v.1.98  
changed lines
  Added in v.1.99

  ViewVC Help
Powered by ViewVC 1.1.20