am b05aa150: Merge "Replace all occurrances of asm with __asm__ in the output headers"

* commit 'b05aa1500035d0e02d30143a0702a72b111f200e':
  Replace all occurrances of asm with __asm__ in the output headers
This commit is contained in:
Jean-Baptiste Queru 2010-12-28 11:35:22 -08:00 committed by Android Git Automerger
commit 6042658cb5
2 changed files with 6 additions and 0 deletions

View File

@ -71,6 +71,7 @@ def cleanupFile( path ):
list.removeEmptyLines()
list.removeMacroDefines( kernel_ignored_macros )
list.insertDisclaimer( kernel.kernel_disclaimer )
list.replaceTokens( kernel_token_replacements )
out = StringOutput()
list.write(out)

View File

@ -43,6 +43,11 @@ kernel_default_arch_macros = {
"x86": {"__i386__": "1"},
}
# Replace tokens in the output according to this mapping
kernel_token_replacements = {
{"asm": "__asm__"},
}
# this is the set of known static inline functions that we want to keep
# in the final ARM headers. this is only used to keep optimized byteswapping
# static functions and stuff like that.