Bug 2393

Summary: [Usablility] Yocto BSP Tools: add support for kernel features
Product: [Build System, Metadata & Runtime] Meta-yocto Reporter: Tom Zanussi <tom.zanussi>
Component: meta-yoctoAssignee: Tom Zanussi <tom.zanussi>
Status: VERIFIED WONTFIX QA Contact:
Severity: enhancement    
Priority: Medium CC: corneliux.stoicescu, dvhart, poky.bs.watcher, poky.watcher, sgw
Version: 1.4   
Target Milestone: 1.4 M5   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Tom Zanussi 2012-05-02 20:39:49 UTC
yocto-kernel has support for adding/removing/listing individual kernel config items and patches.  The one thing it's missing is the same support for adding and using features.  This should also include the capability of 'publishing' new features to the linux-yocto repo for re-use by other BSPs.
Comment 1 Tom Zanussi 2013-03-20 22:50:34 UTC
Implmented by patchset staring with poky/master commit: 0bfe83edbb65f94fca8028be0ca20fdfec5ffc81
Comment 2 Stoicescu Cornel 2013-03-22 10:55:26 UTC
Tested in master:9ffee9add2d0380f4025e7a678a166f25a7d659e

Steps:
1) "yocto-bsp create myintelbsp x86_64" and choose all default values. Add myintelbsp to local.conf and bblayers.conf
2) "yocto-kernel features list myintelbsp" to list the available features. Notice "cfg/boot-live.scc: Live boot support [arch]"  is available.
3) "yocto-kernel feature list myintelbsp" to list enabled features. Notice there are none, including cfg/boot-live.scc.
5) "bitbake core-image-minimal"
9) test that image does not live boot.

Result: Even without cfg/boot-live.scc feature enabled, the image live boots

Expected result:
All active features should be shown when running "yocto-kernel feature list <bsp-name>"

Reopening as per the above test result.
Comment 3 Tom Zanussi 2013-03-22 13:20:58 UTC
Just as with yocto-kernel config and yocto-kernel patch, we don't check for the existence of config, patches, or features all the way up the inheritance tree, just what has been added via the tool.

It would be nice to be able to do that, but it's outside the scope of this enhancement request - please open a separate bug for that if it's something we should do.
Comment 4 Stoicescu Cornel 2013-03-22 15:16:25 UTC
Taking into account the above comment and the existence and functionality of "yocto-kernel feature" and "yocto-kernel-features" I am setting this to verified.