The current check is in the inner loop of UBOOT_CONFIG, but the check is attempting to only apply to the case when there is a single entry in UBOOT_CONFIG. Shift the indention to be outside of the for loop and only execute once.
Signed-off-by: Ryan Eatmon <[email protected]> --- meta/classes-recipe/uboot-config.bbclass | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/meta/classes-recipe/uboot-config.bbclass b/meta/classes-recipe/uboot-config.bbclass index f7848396c1..9e24db1f48 100644 --- a/meta/classes-recipe/uboot-config.bbclass +++ b/meta/classes-recipe/uboot-config.bbclass @@ -247,15 +247,15 @@ python () { bb.debug(1, "Appending '%s' to UBOOT_CONFIG_FRAGMENTS." % fragments) d.appendVar('UBOOT_CONFIG_FRAGMENTS', fragments + " ? ") - # This recipe might be inherited e.g. by the kernel recipe via kernel-fitimage.bbclass - # Ensure the uboot specific menuconfig settings do not leak into other recipes - if 'u-boot' in recipename: - if len(ubootconfig) == 1: - builddir = "%s-%s" % (d.getVar("UBOOT_MACHINE").strip(), config) - d.setVar('KCONFIG_CONFIG_ROOTDIR', os.path.join("${B}", builddir)) - else: - # Disable menuconfig for multiple configs - d.setVar('KCONFIG_CONFIG_ENABLE_MENUCONFIG', "false") + # This recipe might be inherited e.g. by the kernel recipe via kernel-fitimage.bbclass + # Ensure the uboot specific menuconfig settings do not leak into other recipes + if 'u-boot' in recipename: + if len(ubootconfig) == 1: + builddir = "%s-%s" % (d.getVar("UBOOT_MACHINE").strip(), config) + d.setVar('KCONFIG_CONFIG_ROOTDIR', os.path.join("${B}", builddir)) + else: + # Disable menuconfig for multiple configs + d.setVar('KCONFIG_CONFIG_ENABLE_MENUCONFIG', "false") } uboot_config_get_indexed_value () { -- 2.43.0
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#233045): https://lists.openembedded.org/g/openembedded-core/message/233045 Mute This Topic: https://lists.openembedded.org/mt/118298734/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
