How do you non-interactively turn on features in a Linux kernel .config file?

前端 未结 3 863
暗喜
暗喜 2020-12-11 01:54

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

3条回答
  •  一个人的身影
    2020-12-11 02:30

    The kernel has a tool (./scripts/config) to change specific options on .config. Here is an example:

    ./scripts/config --set-val CONFIG_OPTION y
    

    Although, it doesn't check the validity of the .config file.

提交回复
热议问题