/[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.81 Revision 1.82
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.81 2005/01/13 07:49:29 eradicator Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.82 2005/01/14 00:43:45 johnm 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>
299 rm -Rf ${D}/${ddir}/asm 299 rm -Rf ${D}/${ddir}/asm
300 dodir ${ddir}/asm-sparc 300 dodir ${ddir}/asm-sparc
301 dodir ${ddir}/asm-sparc64 301 dodir ${ddir}/asm-sparc64
302 cp -ax ${S}/include/asm-sparc/* ${D}/usr/include/asm-sparc 302 cp -ax ${S}/include/asm-sparc/* ${D}/usr/include/asm-sparc
303 cp -ax ${S}/include/asm-sparc64/* ${D}/usr/include/asm-sparc64 303 cp -ax ${S}/include/asm-sparc64/* ${D}/usr/include/asm-sparc64
304
305 #generate_sparc_asm ${D}/usr/include 304 #generate_sparc_asm ${D}/usr/include
306 create_ml_includes /usr/include/asm __sparc__:/usr/include/asm-sparc __sparc64__:/usr/include/asm-sparc64 305 create_ml_includes /usr/include/asm __sparc__:/usr/include/asm-sparc __sparc64__:/usr/include/asm-sparc64
307 elif [ "${ARCH}" = "amd64" ]; then 306 elif [ "${ARCH}" = "amd64" ]; then
308 rm -Rf ${D}/${ddir}/asm 307 rm -Rf ${D}/${ddir}/asm
309 dodir ${ddir}/asm-i386 308 dodir ${ddir}/asm-i386
904 903
905 kernel_is 2 4 && unpack_2_4 904 kernel_is 2 4 && unpack_2_4
906} 905}
907 906
908kernel-2_src_compile() { 907kernel-2_src_compile() {
909 detect_version
910 cd ${S} 908 cd ${S}
911 [ "${ETYPE}" == "headers" ] && compile_headers 909 [ "${ETYPE}" == "headers" ] && compile_headers
912 [ "${ETYPE}" == "sources" ] && \ 910 [ "${ETYPE}" == "sources" ] && \
913 use doc && ! use arm && ! use s390 && compile_manpages 911 use doc && ! use arm && ! use s390 && compile_manpages
914} 912}
915 913
916kernel-2_pkg_preinst() { 914kernel-2_pkg_preinst() {
917 detect_version
918 [ "${ETYPE}" == "headers" ] && preinst_headers 915 [ "${ETYPE}" == "headers" ] && preinst_headers
919} 916}
920 917
921kernel-2_src_install() { 918kernel-2_src_install() {
922 detect_version
923 install_universal 919 install_universal
924 [ "${ETYPE}" == "headers" ] && install_headers 920 [ "${ETYPE}" == "headers" ] && install_headers
925 [ "${ETYPE}" == "sources" ] && install_sources 921 [ "${ETYPE}" == "sources" ] && install_sources
926} 922}
927 923
928kernel-2_pkg_postinst() { 924kernel-2_pkg_postinst() {
929 detect_version
930 [ "${ETYPE}" == "headers" ] && postinst_headers 925 [ "${ETYPE}" == "headers" ] && postinst_headers
931 [ "${ETYPE}" == "sources" ] && postinst_sources 926 [ "${ETYPE}" == "sources" ] && postinst_sources
932} 927}
933 928
934kernel-2_pkg_setup() { 929kernel-2_pkg_setup() {
935 detect_version
936 [ "${ETYPE}" == "headers" ] && setup_headers 930 [ "${ETYPE}" == "headers" ] && setup_headers
937 931
938 # This is to fix some weird portage bug? in stable versions of portage. 932 # This is to fix some weird portage bug? in stable versions of portage.
939 [ "${ETYPE}" == "sources" ] && echo ">>> Preparing to unpack ..." 933 [ "${ETYPE}" == "sources" ] && echo ">>> Preparing to unpack ..."
940} 934}
941
942

Legend:
Removed from v.1.81  
changed lines
  Added in v.1.82

  ViewVC Help
Powered by ViewVC 1.1.20