]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
buildman: Correct invalid use of out_dir variable
authorSimon Glass <sjg@chromium.org>
Wed, 19 Jul 2023 23:49:11 +0000 (17:49 -0600)
committerSimon Glass <sjg@chromium.org>
Mon, 24 Jul 2023 15:34:11 +0000 (09:34 -0600)
This variable has a different meaning in the outer scope. Use a different
name to avoid confusion, or bugs.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/buildman/builderthread.py

index 45ae6edf9f48c6fcf9e497c94f0c3224e380f919..f110137e8f6e1d3d61d72ec3f9d118d72860580f 100644 (file)
@@ -246,8 +246,8 @@ class BuilderThread(threading.Thread):
                         #
                         # Symlinks can confuse U-Boot's Makefile since
                         # we may use '..' in our path, so remove them.
-                        out_dir = os.path.realpath(out_dir)
-                        args.append(f'O={out_dir}')
+                        real_dir = os.path.realpath(out_dir)
+                        args.append(f'O={real_dir}')
                         cwd = None
                         src_dir = os.getcwd()
                     else: