I have a situation where our software needs to work with several different Linux kernel distributions / kernel trees. (including Android forks)
In trying to automate our build process, I am finding that some of the defconfig
files for particular builds we need to support do not include the kernel modules we depend on.
For example, let's imagine I need an option called XXX
in my .config
. For some dependencies, I can do something like this:
sed -i 's/# CONFIG_XXX is not set/CONFIG_XXX=m/' .config
For others, it's not so easy since the dependency may span multiple lines of .config
statements.
Is there a more supported way to do this non-interactively, or am I stuck writing a more complex search-and-replace script?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…