Skip to contentSkip to conversation

addtask menuconfig after do_configure (instead of do_patch)?

PATCH In review Leon Woestenberg 5 participants 5 messages Nov 10, 2009 – Nov 18, 2009

lore
Share & tools
lore
#0 lore raw

Hello,

as seen in another thread I think this change is desired to improve towards expected behaviour:

classes/kernel.bbclass:

-addtask menuconfig after do_patch
+addtask menuconfig after do_configure

This will make sure the OE default configuration is used as the default config before going into the menu.

Downside is that menuconfig will probably not work for new kernel recipes without defconfig.

Regards.

Signature · 1 line
Leon
#1 lore raw

Hi,

Quoted 7 lines · Leon Woestenberg

classes/kernel.bbclass:

(quoted diff) +1 -1
-addtask menuconfig after do_patch
+addtask menuconfig after do_configure

This will make sure the OE default configuration is used as the default config before going into the menu.

this might be a good idea. I guess this would be the desired starting point.

Quoted 2 lines

Downside is that menuconfig will probably not work for new kernel recipes without defconfig.

Yes true, but to be honest: Do we really need to support this? I am willing to learn but currently I do not see much of use in kernel recipes without defconfig.

Greetings

Florian

Signature · 5 lines
The dream of yesterday                  Florian Boor
is the hope of today                    Tel: +49 271-771091-15
and the reality of tomorrow.            Fax: +49 271-771091-19
[Robert Hutchings Goddard, 1904]        [email protected]
                                        http://www.kernelconcepts.de/en
#2 lore raw

PATCH 1/1 Reorganized kernel class to run 'menuconfig' after 'configure'.

In reply to Leon Woestenberg

Previously, 'menuconfig' task was being run just after 'patch' one. In result, the most common path for unexperienced users:

bitbake virtual/kernel -c menuconfig
bitbake virtual/kernel -c build

didn't work, because the result of 'menuconfig' was later overwritten by 'configure' on the chain of 'build'.

With this patch, 'configure' is requirement for 'menuconfig', so any manual changes to the kernel config is done just before actual build and no overwrite occurs.

---
 classes/kernel.bbclass |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
classes/kernel.bbclass +1 -1
index fe611ab..637805e 100644
@@ -215,7 +215,7 @@ do_menuconfig() {
 	fi
 }
 do_menuconfig[nostamp] = "1"
-addtask menuconfig after do_patch
+addtask menuconfig after do_configure
 
 pkg_postinst_kernel () {
 	cd /${KERNEL_IMAGEDEST}; update-alternatives --install /${KERNEL_IMAGEDEST}/${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE}-${KERNEL_VERSION} ${KERNEL_PRIORITY} || true
Signature · 1 line
1.6.3.3
#3 lore raw

Re: [PATCH] Reorganized kernel class to run 'menuconfig' after 'configure'.

Quoted 6 lines · Przemyslaw Wesolek

Previously, 'menuconfig' task was being run just after 'patch' one. In result, the most common path for unexperienced users:

bitbake virtual/kernel -c menuconfig
bitbake virtual/kernel -c build

Quoted 6 lines

didn't work, because the result of 'menuconfig' was later overwritten by 'configure' on the chain of 'build'.

With this patch, 'configure' is requirement for 'menuconfig', so any manual changes to the kernel config is done just before actual build and no overwrite occurs.

Thanks for the patch. That seems like a reasonable change and I think it's been proposed before without anybody speaking up in favour of the old behaviour. I checked this in.

p.

#4 lore raw

Re: [PATCH] Reorganized kernel class to run 'menuconfig' after 'configure'.

Quoted 10 lines · Phil Blundell
Quoted 9 lines · Przemyslaw Wesolek

Previously, 'menuconfig' task was being run just after 'patch' one. In result, the most common path for unexperienced users:

bitbake virtual/kernel -c menuconfig
bitbake virtual/kernel -c build

didn't work, because the result of 'menuconfig' was later overwritten by 'configure' on the chain of 'build'.

Quoted 7 lines
Quoted 3 lines

With this patch, 'configure' is requirement for 'menuconfig', so any manual changes to the kernel config is done just before actual build and no overwrite occurs.

Thanks for the patch. That seems like a reasonable change and I think it's been proposed before without anybody speaking up in favour of the old behaviour. I checked this in.

Could please use --author in the future when applying patches created by other people? We aren't using cvs anymore...

regards,

Koen