/[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.204 Revision 1.205
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.204 2007/04/25 18:24:37 robbat2 Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.205 2007/07/09 04:24:20 vapier 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>
988 return 0 988 return 0
989} 989}
990 990
991headers___fix() { 991headers___fix() {
992 # Voodoo to partially fix broken upstream headers. 992 # Voodoo to partially fix broken upstream headers.
993 # Issues with this function should go to toolchain. 993 # note: do not put inline/asm/volatile together (breaks "inline asm volatile")
994 sed -i \ 994 sed -i \
995 -e '/^\#define.*_TYPES_H/{:loop n; bloop}' \ 995 -e '/^\#define.*_TYPES_H/{:loop n; bloop}' \
996 -e 's:\<\([us]\(8\|16\|32\|64\)\)\>:__\1:g' \ 996 -e 's:\<\([us]\(8\|16\|32\|64\)\)\>:__\1:g' \
997 -e "s/ inline / __inline__ /g" \ 997 -e "s/\([[:space:]]\)inline\([[:space:](]\)/\1__inline__\2/g" \
998 -e "s/\([[:space:]]\)asm\([[:space:](]\)/\1__asm__\2/g" \
999 -e "s/\([[:space:]]\)volatile\([[:space:](]\)/\1__volatile__\2/g" \
998 "$@" 1000 "$@"
999} 1001}
1000 1002
1001# common functions 1003# common functions
1002#============================================================== 1004#==============================================================

Legend:
Removed from v.1.204  
changed lines
  Added in v.1.205

  ViewVC Help
Powered by ViewVC 1.1.20