]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
dtoc: Rename the main module
authorSimon Glass <sjg@chromium.org>
Sat, 18 Apr 2020 00:08:57 +0000 (18:08 -0600)
committerSimon Glass <sjg@chromium.org>
Sun, 26 Apr 2020 20:25:21 +0000 (14:25 -0600)
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>
tools/dtoc/dtoc
tools/dtoc/main.py [moved from tools/dtoc/dtoc.py with 98% similarity]

index 896ca44e62f76ce1117198f7b20c30bcca8d3326..11a5d8e18ab71465be9424cf930c5e792c75edb7 120000 (symlink)
@@ -1 +1 @@
-dtoc.py
\ No newline at end of file
+main.py
\ No newline at end of file
similarity index 98%
rename from tools/dtoc/dtoc.py
rename to tools/dtoc/main.py
index 8e05b434318ac46597dc8add71dd20e662da13c2..b1eee21f174fd074e88f572de46a91eb716e102d 100755 (executable)
@@ -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)