提交 60727f51 编写于 作者: J Joe Hershberger 提交者: Masahiro Yamada

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: NJoe Hershberger <joe.hershberger@ni.com>
Acked-by: NMasahiro Yamada <yamada.masahiro@socionext.com>
上级 2144f880
......@@ -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:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册