Add functionlity to the scripts to replace tokens in kernel headers

based on architecture.
This commit is contained in:
Raghu Gandham
2013-01-16 16:42:47 -08:00
parent f3fe19459f
commit a864c2c234
5 changed files with 13 additions and 5 deletions

View File

@@ -66,6 +66,9 @@ def cleanupFile( path, original_path):
if arch and arch in kernel_default_arch_macros:
macros.update(kernel_default_arch_macros[arch])
if arch and arch in kernel_arch_token_replacements:
blocks.replaceTokens( kernel_arch_token_replacements[arch] )
blocks.optimizeMacros( macros )
blocks.optimizeIf01()
blocks.removeVarsAndFuncs( statics )