diff options
| author | Akash Hadke <akash.hadke27@gmail.com> | 2025-01-10 16:35:01 +0530 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2025-01-10 09:33:53 -0800 |
| commit | 59614eafb056ba139d1d68cc635ecc19e3b81c2a (patch) | |
| tree | 2d86d84a65b6f225aec12d4f5227b2e9937f1e96 | |
| parent | f6b497721b4be63db68b838b19998fce607b5042 (diff) | |
| download | meta-openembedded-59614eafb056ba139d1d68cc635ecc19e3b81c2a.tar.gz | |
fitimage.bbclass: Remove True option to getVar calls
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>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
| -rw-r--r-- | meta-oe/classes/fitimage.bbclass | 4 |
1 files changed, 2 insertions, 2 deletions
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): | |||
| 288 | def fitimage_emit_section_config(d, fd, dtb, kernelcount, ramdiskcount, setupcount, bootscriptid, compatible, dtbcount): | 288 | def fitimage_emit_section_config(d, fd, dtb, kernelcount, ramdiskcount, setupcount, bootscriptid, compatible, dtbcount): |
| 289 | sign = d.getVar("FITIMAGE_SIGN") | 289 | sign = d.getVar("FITIMAGE_SIGN") |
| 290 | conf_default = None | 290 | conf_default = None |
| 291 | conf_prefix = d.getVar('FITIMAGE_CONFIG_PREFIX', True) or "" | 291 | conf_prefix = d.getVar('FITIMAGE_CONFIG_PREFIX') or "" |
| 292 | 292 | ||
| 293 | bb.note(f"Adding {dtb} section to ITS file") | 293 | bb.note(f"Adding {dtb} section to ITS file") |
| 294 | 294 | ||
| @@ -302,7 +302,7 @@ def fitimage_emit_section_config(d, fd, dtb, kernelcount, ramdiskcount, setupcou | |||
| 302 | if bootscriptid: | 302 | if bootscriptid: |
| 303 | conf_desc += ", u-boot script" | 303 | conf_desc += ", u-boot script" |
| 304 | if dtbcount == 1: | 304 | if dtbcount == 1: |
| 305 | conf_default = d.getVar('FITIMAGE_DEFAULT_CONFIG', True) or f'{conf_prefix}{dtb}' | 305 | conf_default = d.getVar('FITIMAGE_DEFAULT_CONFIG') or f'{conf_prefix}{dtb}' |
| 306 | 306 | ||
| 307 | if conf_default: | 307 | if conf_default: |
| 308 | fd.write(f'\t\tdefault = "{conf_default}";\n') | 308 | fd.write(f'\t\tdefault = "{conf_default}";\n') |
