diff mbox series

[1/2] bitbake-setup: fix undefined variable

Message ID 20251111171643.3329047-1-ross.burton@arm.com
State New
Headers show
Series [1/2] bitbake-setup: fix undefined variable | expand

Commit Message

Ross Burton Nov. 11, 2025, 5:16 p.m. UTC
The symlink variable is never defined, and it appears that it should
have been siteconf_symlink.

Signed-off-by: Ross Burton <ross.burton@arm.com>
---
 bin/bitbake-setup | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/bin/bitbake-setup b/bin/bitbake-setup
index caec990c29..96c0400152 100755
--- a/bin/bitbake-setup
+++ b/bin/bitbake-setup
@@ -240,8 +240,8 @@  def setup_bitbake_build(bitbake_config, layerdir, setupdir, thisdir):
     siteconf_symlink = os.path.join(bitbake_confdir, "site.conf")
     siteconf = os.path.normpath(os.path.join(setupdir, '..', "site.conf"))
     if os.path.lexists(siteconf_symlink):
-        os.remove(symlink)
-    os.symlink(os.path.relpath(siteconf, bitbake_confdir) ,siteconf_symlink)
+        os.remove(siteconf_symlink)
+    os.symlink(os.path.relpath(siteconf, bitbake_confdir), siteconf_symlink)
 
 
     init_script = os.path.join(bitbake_builddir, "init-build-env")