/[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.282 Revision 1.286
1# Copyright 1999-2013 Gentoo Foundation 1# Copyright 1999-2013 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.282 2013/04/17 13:52:17 tomwij Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.286 2013/07/31 21:18:41 hasufell 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# Original author: John Mylchreest <johnm@gentoo.org> 8# Original author: John Mylchreest <johnm@gentoo.org>
687 if kernel_is ge 2 6 18 ; then 687 if kernel_is ge 2 6 18 ; then
688 env_setup_xmakeopts 688 env_setup_xmakeopts
689 emake headers_install INSTALL_HDR_PATH="${D}"/${ddir}/.. ${xmakeopts} || die 689 emake headers_install INSTALL_HDR_PATH="${D}"/${ddir}/.. ${xmakeopts} || die
690 690
691 # let other packages install some of these headers 691 # let other packages install some of these headers
692 rm -rf "${D}"/${ddir}/sound #alsa-headers
693 rm -rf "${D}"/${ddir}/scsi #glibc/uclibc/etc... 692 rm -rf "${D}"/${ddir}/scsi #glibc/uclibc/etc...
694 return 0 693 return 0
695 fi 694 fi
696 695
697 # Do not use "linux/*" as that can cause problems with very long 696 # Do not use "linux/*" as that can cause problems with very long
740 > "${S}"/patches.txt 739 > "${S}"/patches.txt
741 fi 740 fi
742 741
743 mv ${WORKDIR}/linux* "${D}"/usr/src 742 mv ${WORKDIR}/linux* "${D}"/usr/src
744 743
745 if [[ -z ${UNIPATCH_DOCS} ]] ; then 744 if [[ -n "${UNIPATCH_DOCS}" ]] ; then
746 dodoc ${UNIPATCH_DOCS} 745 for i in ${UNIPATCH_DOCS}; do
746 dodoc "${T}"/${i}
747 done
747 fi 748 fi
748} 749}
749 750
750# pkg_preinst functions 751# pkg_preinst functions
751#============================================================== 752#==============================================================
811 fi 812 fi
812 813
813 # optionally display security unsupported message 814 # optionally display security unsupported message
814 # Start with why 815 # Start with why
815 if [[ ${K_SECURITY_UNSUPPORTED} = deblob ]]; then 816 if [[ ${K_SECURITY_UNSUPPORTED} = deblob ]]; then
816 ewarn "Deblobbed kernels are UNSUPPORTED by Gentoo Security." 817 ewarn "Deblobbed kernels may not be up-to-date security wise"
818 ewarn "as they depend on external scripts."
817 elif [[ -n ${K_SECURITY_UNSUPPORTED} ]]; then 819 elif [[ -n ${K_SECURITY_UNSUPPORTED} ]]; then
818 ewarn "${PN} is UNSUPPORTED by Gentoo Security." 820 ewarn "${PN} is UNSUPPORTED by Gentoo Security."
819 fi 821 fi
820 # And now the general message. 822 # And now the general message.
821 if [[ -n ${K_SECURITY_UNSUPPORTED} ]]; then 823 if [[ -n ${K_SECURITY_UNSUPPORTED} ]]; then
1038 # them during the install phase. 1040 # them during the install phase.
1039 local tmp 1041 local tmp
1040 for x in ${KPATCH_DIR}; do 1042 for x in ${KPATCH_DIR}; do
1041 for i in ${UNIPATCH_DOCS}; do 1043 for i in ${UNIPATCH_DOCS}; do
1042 if [[ -f "${x}/${i}" ]] ; then 1044 if [[ -f "${x}/${i}" ]] ; then
1043 tmp="${tmp} \"${T}/${i}\"" 1045 tmp="${tmp} ${i}"
1044 cp -f "${x}/${i}" "${T}"/ 1046 cp -f "${x}/${i}" "${T}"/
1045 fi 1047 fi
1046 done 1048 done
1047 done 1049 done
1048 UNIPATCH_DOCS="${tmp}" 1050 UNIPATCH_DOCS="${tmp}"
1169 # only do this for kernel < 2.6.27 since this file does not exist in later 1171 # only do this for kernel < 2.6.27 since this file does not exist in later
1170 # kernels 1172 # kernels
1171 if [[ -n ${KV_MINOR} && ${KV_MAJOR}.${KV_MINOR}.${KV_PATCH} < 2.6.27 ]] 1173 if [[ -n ${KV_MINOR} && ${KV_MAJOR}.${KV_MINOR}.${KV_PATCH} < 2.6.27 ]]
1172 then 1174 then
1173 sed -i \ 1175 sed -i \
1174 -e "s|TOUT := .tmp_gas_check|TOUT := \"${T}\"/.tmp_gas_check|" \ 1176 -e 's|TOUT := .tmp_gas_check|TOUT := $(T).tmp_gas_check|' \
1175 "${S}"/arch/ppc/Makefile 1177 "${S}"/arch/ppc/Makefile
1176 else 1178 else
1177 sed -i \ 1179 sed -i \
1178 -e "s|TOUT := .tmp_gas_check|TOUT := \"${T}\"/.tmp_gas_check|" \ 1180 -e 's|TOUT := .tmp_gas_check|TOUT := $(T).tmp_gas_check|' \
1179 "${S}"/arch/powerpc/Makefile 1181 "${S}"/arch/powerpc/Makefile
1180 fi 1182 fi
1181} 1183}
1182 1184
1183kernel-2_src_compile() { 1185kernel-2_src_compile() {

Legend:
Removed from v.1.282  
changed lines
  Added in v.1.286

  ViewVC Help
Powered by ViewVC 1.1.20