scripted kconfig replies?
Hi,
I'd like to be able to write a script that handles 'make oldconfig' queries for unknown kconfig symbols. The script would take options
like: set all tristate prompts to one of y/m/n, set all boolean prompts to one of y/n. (and just use defaults for numeric or string symbols)
This would allow me to automate some kernel configs. I don't think that kconfig itself is the right place for this feature.
Should this be doable? Can anyone give me a pointer of what to use, where to begin?
thanks,
---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***
Quoted 7 lines · Randy Dunlap
Hi,
I'd like to be able to write a script that handles 'make oldconfig' queries for unknown kconfig symbols. The script would take options
like: set all tristate prompts to one of y/m/n, set all boolean prompts to one of y/n. (and just use defaults for numeric or string symbols)
Quoted 5 lines
This would allow me to automate some kernel configs. I don't think that kconfig itself is the right place for this feature.
Should this be doable? Can anyone give me a pointer of what to use, where to begin?
You can utilize KCONFIG_ALLCONFIG for this:
$ mv .config config-old $ KCONFIG_ALLCONFIG make all<yes|mod|no|rand>config
The file pointed to by KCONFIG_ALLCONFIG lists options that you wish to be set to a given value, see Documentation/kbuild/kconfig.txt.
Michal
Quoted 11 lines · Michal Marek
Quoted 10 lines · Randy Dunlap
Hi,
I'd like to be able to write a script that handles 'make oldconfig' queries for unknown kconfig symbols. The script would take options
like: set all tristate prompts to one of y/m/n, set all boolean prompts to one of y/n. (and just use defaults for numeric or string symbols)This would allow me to automate some kernel configs. I don't think that kconfig itself is the right place for this feature.
Quoted 6 lines
Quoted 2 lines
Should this be doable? Can anyone give me a pointer of what to use, where to begin?
You can utilize
KCONFIG_ALLCONFIGfor this:$ mv .config config-old $ KCONFIG_ALLCONFIG make all<yes|mod|no|rand>config
$ KCONFIG_ALLCONFIG=config-old make all<yes|mod|no|rand>config
of course.
Michal
Quoted 9 lines
The file pointed to by
KCONFIG_ALLCONFIGlists options that you wish to be set to a given value, seeDocumentation/kbuild/kconfig.txt.Michal
--
To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html