Bug 3862 - New makecfgfrag bitbake task to create configuration fragments
Summary: New makecfgfrag bitbake task to create configuration fragments
Status: RESOLVED FIXED
Alias: None
Product: Kernel
Classification: Yocto Project Subprojects
Component: kernel-tooling (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Low minor
Target Milestone: 1.6
Assignee: João Henrique
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2013-02-06 21:26 UTC by Darren Hart
Modified: 2014-05-16 01:30 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Yes (doc changes required)


Attachments
Add fragmentconfig (2.22 KB, patch)
2014-01-27 23:57 UTC, João Henrique
no flags Details | Diff
Add fragmentconfig task (1.08 KB, patch)
2014-01-27 23:58 UTC, João Henrique
no flags Details | Diff
kernel-dev manual updated (3.33 KB, patch)
2014-01-30 00:24 UTC, João Henrique
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Darren Hart 2013-02-06 21:26:30 UTC
Creating a configuration fragment is currently done by saving off the current .config, running makemenuconfig, then taking the diff of the old and new .config, pruning the junk, and saving off a .cfg fragment. Seems this could easily be done as a bitbake task which:

1. depends on kernel_configme
2. saves off the .config as config.orig
3. runs makemenuconfig
4. creates a diff and saves as fragment.cfg
5. restores config.orig to .config
6. places fragment.cfg in the working dir
7. does not reset the stamps for tasks after kernel_configme if kernel_configme didn't need to be run.
Comment 1 João Henrique 2014-01-24 02:43:03 UTC
Hi,

I have a working patch to this. But I have one question.

Is the menuconfig task creates a fragment.cfg? or is better the user first call menuconfig task, does the configuration and then call fragmentconfig task?

Like this:

bitbake -c menuconfig liux-yocto

bitbake -c fragmentconfig liux-yocto

Thanks.
Comment 2 João Henrique 2014-01-27 23:57:44 UTC
Created attachment 1746 [details]
Add fragmentconfig

Proposed patch to cml1
Comment 3 João Henrique 2014-01-27 23:58:23 UTC
Created attachment 1747 [details]
Add fragmentconfig task

Proposed patch to kernel-yocto.
Comment 4 João Henrique 2014-01-30 00:24:45 UTC
Created attachment 1750 [details]
kernel-dev manual updated

Updated kernel-dev manual.
Comment 5 João Henrique 2014-05-16 01:30:54 UTC
Hi, 

Merged on master: 

yocto-docs: 5b7ccdbf708cbeebc2d8dc91db129fb35aabdcdd
openembedded-core: 5b7ccdbf708cbeebc2d8dc91db129fb35aabdcdd, db2a44c8f08f2371a52ff6662d6bc64bc42ad551