Merge "Replace all occurrances of asm with __asm__ in the output headers"
This commit is contained in:
commit
b05aa15000
2 changed files with 6 additions and 0 deletions
|
@ -71,6 +71,7 @@ def cleanupFile( path ):
|
||||||
list.removeEmptyLines()
|
list.removeEmptyLines()
|
||||||
list.removeMacroDefines( kernel_ignored_macros )
|
list.removeMacroDefines( kernel_ignored_macros )
|
||||||
list.insertDisclaimer( kernel.kernel_disclaimer )
|
list.insertDisclaimer( kernel.kernel_disclaimer )
|
||||||
|
list.replaceTokens( kernel_token_replacements )
|
||||||
|
|
||||||
out = StringOutput()
|
out = StringOutput()
|
||||||
list.write(out)
|
list.write(out)
|
||||||
|
|
|
@ -43,6 +43,11 @@ kernel_default_arch_macros = {
|
||||||
"x86": {"__i386__": "1"},
|
"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
|
# 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
|
# in the final ARM headers. this is only used to keep optimized byteswapping
|
||||||
# static functions and stuff like that.
|
# static functions and stuff like that.
|
||||||
|
|
Loading…
Reference in a new issue