/[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.75 Revision 1.76
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.75 2005/01/12 01:58:27 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.76 2005/01/12 05:07:24 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>
293 cp -ax ${S}/include/linux/* ${D}/${ddir}/linux 293 cp -ax ${S}/include/linux/* ${D}/${ddir}/linux
294 rm -rf ${D}/${ddir}/linux/modules 294 rm -rf ${D}/${ddir}/linux/modules
295 dodir ${ddir}/asm 295 dodir ${ddir}/asm
296 296
297 if [ "${PROFILE_ARCH}" = "sparc64" -o "${PROFILE_ARCH}" = "sparc64-multilib" ] ; then 297 if [ "${PROFILE_ARCH}" = "sparc64" -o "${PROFILE_ARCH}" = "sparc64-multilib" ] ; then
298 rm -Rf ${ddir}/asm 298 rm -Rf ${D}/${ddir}/asm
299 dodir ${ddir}/asm-sparc 299 dodir ${ddir}/asm-sparc
300 dodir ${ddir}/asm-sparc64 300 dodir ${ddir}/asm-sparc64
301 cp -ax ${S}/include/asm-sparc/* ${D}/usr/include/asm-sparc 301 cp -ax ${S}/include/asm-sparc/* ${D}/usr/include/asm-sparc
302 cp -ax ${S}/include/asm-sparc64/* ${D}/usr/include/asm-sparc64 302 cp -ax ${S}/include/asm-sparc64/* ${D}/usr/include/asm-sparc64
303 generate_sparc_asm ${D}/usr/include 303 generate_sparc_asm ${D}/usr/include
304 else
305 cp -ax ${S}/include/asm/* ${D}/${ddir}/asm
306 fi
307
308 if [ "${ARCH}" = "amd64" ]; then
309 rm -Rf ${D}/${ddir}/asm
310 dodir ${ddir}/asm-i386
311 dodir ${ddir}/asm-x86_64
312 cp -ax ${S}/include/asm-i386/* ${D}/usr/include/asm-i386
313 cp -ax ${S}/include/asm-x86_64/* ${D}/usr/include/asm-x86_64
314 /bin/sh ${FILESDIR}/generate-asm-amd64 ${D}/usr/include
304 else 315 else
305 cp -ax ${S}/include/asm/* ${D}/${ddir}/asm 316 cp -ax ${S}/include/asm/* ${D}/${ddir}/asm
306 fi 317 fi
307 318
308 if kernel_is 2 6 319 if kernel_is 2 6
812# Shamefully ripped from Debian 823# Shamefully ripped from Debian
813# ---------------------------------------------------------------------- 824# ----------------------------------------------------------------------
814 825
815# Idea borrowed from RedHat's kernel package 826# Idea borrowed from RedHat's kernel package
816 827
828# This is gonna get replaced by something in multilib.eclass soon...
829# --eradicator
817generate_sparc_asm() { 830generate_sparc_asm() {
818 local name 831 local name
819 832
820 cd $1 || die 833 cd $1 || die
821 mkdir asm 834 mkdir asm

Legend:
Removed from v.1.75  
changed lines
  Added in v.1.76

  ViewVC Help
Powered by ViewVC 1.1.20