Skip to contentSkip to conversation

virtual/kernel menuconfig disabled with multiple uboot configs

Bug John Ripple 2 participants 2 messages Jul 24, 2024 – Jul 26, 2024

lore
Share & tools
lore
#0 lore raw

Hi, I've found a bug in the kernel-fitimage.bbclass when it uses the uboot-config.bbclass. The Yocto bugzilla wouldn't let me create an account to report it so I thought I would at least post it here.

On the Scarthgap 5.0.0 Yocto release, the kernel-fitimage.bbclass inherits the uboot-config.bbclass (both in openembedded-core/meta/classes-recipes). This is normally fine but if you are building multiple uboot configs then the uboot-config.bbclass disables the menuconfig for the recipe. This is a good idea when you're building uboot since you don't know what menuconfig to use, but since the kernel inherits this class too, the kernel menuconfig task gets disabled as well.

Steps to reproduce:
1. Set UBOOT_CONFIG to have multiple configs (I did this in my machine file).
UBOOT_CONFIG ??= "uboot-a uboot-b"
2. bitbake virtual/kernel -c menuconfig
ERROR: linux-fslc-imx-6.6.28+git-r0 do_menuconfig: do_menuconfig is disabled, please check KCONFIG_CONFIG_ENABLE_MENUCONFIG variable.
ERROR: Logfile of failure stored in: /extra/temp/tlo-p700-seval-build/build/tmp/work/p700_quad-keysight-linux/linux-fslc-imx/6.6.28+git/temp/log.do_menuconfig.995135
ERROR: Task (/extra/temp/tlo-p700-seval-build/build/../layers/meta-freescale/recipes-kernel/linux/linux-fslc-imx_6.6.bb:do_menuconfig) failed with exit code '1'

openembedded-core/meta-classes-recipes/uboot-config.bbclass lines 143 to 147.
if len(ubootconfig) == 1 :
d.setVar( 'KCONFIG_CONFIG_ROOTDIR' , os.path.join(d.getVar( "B" ), d.getVar( "UBOOT_MACHINE" ).strip())) else :
# Disable menuconfig for multiple configs
d.setVar( 'KCONFIG_CONFIG_ENABLE_MENUCONFIG' , "false" )

openembedded-core/meta-classes-recipes/kernel-fitimage.bbclass line 7 inherit kernel-uboot kernel-artifact-names uboot-config

#1 lore raw

I encountered the same issue and posted a patch, you might want to try that out.

See:
https://patchwork.yoctoproject.org/project/oe-core/patch/[email protected]/#19364

Quoted 12 lines · John Ripple via lists.openembedded.org

Hi, I've found a bug in the kernel-fitimage.bbclass when it uses the uboot-config.bbclass. The Yocto bugzilla wouldn't let me create an account to report it so I thought I would at least post it here.

On the Scarthgap 5.0.0 Yocto release, the kernel-fitimage.bbclass inherits the uboot-config.bbclass (both in openembedded-core/meta/classes-recipes). This is normally fine but if you are building multiple uboot configs then the uboot-config.bbclass disables the menuconfig for the recipe. This is a good idea when you're building uboot since you don't know what menuconfig to use, but since the kernel inherits this class too, the kernel menuconfig task gets disabled as well.

Steps to reproduce:
1. Set UBOOT_CONFIG to have multiple configs (I did this in my machine file).
UBOOT_CONFIG ??= "uboot-a uboot-b"
2. bitbake virtual/kernel -c menuconfig
    ERROR: linux-fslc-imx-6.6.28+git-r0 do_menuconfig: do_menuconfig is disabled, please check KCONFIG_CONFIG_ENABLE_MENUCONFIG variable.
    ERROR: Logfile of failure stored in: /extra/temp/tlo-p700-seval-build/build/tmp/work/p700_quad-keysight-linux/linux-fslc-imx/6.6.28+git/temp/log.do_menuconfig.995135
    ERROR: Task (/extra/temp/tlo-p700-seval-build/build/../layers/meta-freescale/recipes-kernel/linux/linux-fslc-imx_6.6.bb:do_menuconfig) failed with exit code '1'
...

Signature · 10 lines
Mike Looijmans
System Expert

TOPIC Embedded Products B.V.
Materiaalweg 4, 5681 RJ Best
The Netherlands

T: +31 (0) 499 33 69 69
E: [email protected]
W: www.topic.nl