diff mbox series

[meta-oe,master] fitimage.bbclass: Remove True option to getVar calls

Message ID 20250110110501.246092-1-akash.hadke27@gmail.com
State Accepted
Headers show
Series [meta-oe,master] fitimage.bbclass: Remove True option to getVar calls | expand

Commit Message

Akash Hadke Jan. 10, 2025, 11:05 a.m. UTC
getVar() now defaults to expanding by default, thus remove the True
option from getVar() calls with a regex search and replace.

Signed-off-by: Akash Hadke <akash.hadke27@gmail.com>
---
 meta-oe/classes/fitimage.bbclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/meta-oe/classes/fitimage.bbclass b/meta-oe/classes/fitimage.bbclass
index ebd034883b..fef8974187 100644
--- a/meta-oe/classes/fitimage.bbclass
+++ b/meta-oe/classes/fitimage.bbclass
@@ -288,7 +288,7 @@  def fitimage_emit_subsection_signature(d, fd, sign_images_list):
 def fitimage_emit_section_config(d, fd, dtb, kernelcount, ramdiskcount, setupcount, bootscriptid, compatible, dtbcount):
     sign = d.getVar("FITIMAGE_SIGN")
     conf_default = None
-    conf_prefix = d.getVar('FITIMAGE_CONFIG_PREFIX', True) or ""
+    conf_prefix = d.getVar('FITIMAGE_CONFIG_PREFIX') or ""
 
     bb.note(f"Adding {dtb} section to ITS file")
 
@@ -302,7 +302,7 @@  def fitimage_emit_section_config(d, fd, dtb, kernelcount, ramdiskcount, setupcou
     if bootscriptid:
          conf_desc += ", u-boot script"
     if dtbcount == 1:
-        conf_default = d.getVar('FITIMAGE_DEFAULT_CONFIG', True) or f'{conf_prefix}{dtb}'
+        conf_default = d.getVar('FITIMAGE_DEFAULT_CONFIG') or f'{conf_prefix}{dtb}'
 
     if conf_default:
         fd.write(f'\t\tdefault = "{conf_default}";\n')