소스 검색

dtoc: Rename the main module

Python does not like the module name being the same as the module
directory. To allow dtoc modules to be used from other tools, rename
it.

Signed-off-by: Simon Glass <sjg@chromium.org>
Simon Glass 4 년 전
부모
커밋
4d25fe2d95
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      tools/dtoc/dtoc
  2. 1 1
      tools/dtoc/main.py

+ 1 - 1
tools/dtoc/dtoc

@@ -1 +1 @@
-dtoc.py
+main.py

+ 1 - 1
tools/dtoc/dtoc.py → tools/dtoc/main.py

@@ -77,7 +77,7 @@ def run_tests(args):
 def RunTestCoverage():
     """Run the tests and check that we get 100% coverage"""
     sys.argv = [sys.argv[0]]
-    test_util.RunTestCoverage('tools/dtoc/dtoc.py', '/dtoc.py',
+    test_util.RunTestCoverage('tools/dtoc/dtoc', '/main.py',
             ['tools/patman/*.py', '*/fdt*', '*test*'], options.build_dir)