mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-03 16:04:47 +01:00
moveconfig: Cleanup headers in arch and board
Some config.h files live in arch and board directories. They will need to be cleaned up as well, so run the same filters there. Signed-off-by: Joe Hershberger <joe.hershberger@ni.com> Acked-by: Masahiro Yamada <yamada.masahiro@socionext.com>
This commit is contained in:
parent
2144f88044
commit
60727f5149
1 changed files with 6 additions and 5 deletions
|
|
@ -348,11 +348,12 @@ def cleanup_headers(config_attrs, dry_run):
|
|||
patterns.append(re.compile(r'#\s*define\s+%s\W' % config))
|
||||
patterns.append(re.compile(r'#\s*undef\s+%s\W' % config))
|
||||
|
||||
for (dirpath, dirnames, filenames) in os.walk('include'):
|
||||
for filename in filenames:
|
||||
if not fnmatch.fnmatch(filename, '*~'):
|
||||
cleanup_one_header(os.path.join(dirpath, filename), patterns,
|
||||
dry_run)
|
||||
for dir in 'include', 'arch', 'board':
|
||||
for (dirpath, dirnames, filenames) in os.walk(dir):
|
||||
for filename in filenames:
|
||||
if not fnmatch.fnmatch(filename, '*~'):
|
||||
cleanup_one_header(os.path.join(dirpath, filename),
|
||||
patterns, dry_run)
|
||||
|
||||
### classes ###
|
||||
class KconfigParser:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue