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
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#202477): 
https://lists.openembedded.org/g/openembedded-core/message/202477
Mute This Topic: https://lists.openembedded.org/mt/107528874/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to