/[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.88 Revision 1.89
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.88 2005/01/31 19:14:55 plasmaroo Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.89 2005/01/31 20:03:47 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>
392 fi 392 fi
393 393
394 # if the link doesnt exist, lets create it 394 # if the link doesnt exist, lets create it
395 [[ ! -h ${ROOT}usr/src/linux ]] && MAKELINK=1 395 [[ ! -h ${ROOT}usr/src/linux ]] && MAKELINK=1
396 396
397 [[ ${MAKELINK} == 1 ]] && \ 397 if [[ ${MAKELINK} == 1 ]]
398 ln -sf ${ROOT}usr/src/linux-${KV_FULL} ${ROOT}usr/src/linux 398 then
399 cd ${ROOT}usr/src
400 ln -sf linux-${KV_FULL} linux
401 cd ${OLDPWD}
402 fi
399 403
400 # Don't forget to make directory for sysfs 404 # Don't forget to make directory for sysfs
401 [ ! -d "${ROOT}/sys" -a kernel_is_2_6 ] && mkdir /sys 405 [ ! -d "${ROOT}/sys" -a kernel_is_2_6 ] && mkdir /sys
402 406
403 echo 407 echo
875 echo "#endif /* !__SPARCSTUB__${name}__ */" >> asm/${h} 879 echo "#endif /* !__SPARCSTUB__${name}__ */" >> asm/${h}
876 done 880 done
877 return 0 881 return 0
878} 882}
879 883
880headers___fix() 884headers___fix() {
881{
882 # Voodoo to partially fix broken upstream headers. 885 # Voodoo to partially fix broken upstream headers.
883 # Issues with this function should go to plasmaroo. 886 # Issues with this function should go to plasmaroo.
884 sed -i \ 887 sed -i \
885 -e "s/\([ "$'\t'"]\)u8\([ "$'\t'"]\)/\1__u8\2/g;" \ 888 -e "s/\([ "$'\t'"]\)u8\([ "$'\t'"]\)/\1__u8\2/g;" \
886 -e "s/\([ "$'\t'"]\)u16\([ "$'\t'"]\)/\1__u16\2/g;" \ 889 -e "s/\([ "$'\t'"]\)u16\([ "$'\t'"]\)/\1__u16\2/g;" \

Legend:
Removed from v.1.88  
changed lines
  Added in v.1.89

  ViewVC Help
Powered by ViewVC 1.1.20