diff options
author | Changbin Du <changbin.du@gmail.com> | 2020-05-12 23:36:07 +0800 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2020-05-13 10:33:54 +0900 |
commit | c027b02d89fd42ecee911c39e9098b9609a5ca0b (patch) | |
tree | 3c9776a367ea7d52496aa9f32ce161686192121f /Documentation | |
parent | 09d5873e4d1f70202314b5fe40160f9b14b9d2d0 (diff) | |
download | lwn-c027b02d89fd42ecee911c39e9098b9609a5ca0b.tar.gz lwn-c027b02d89fd42ecee911c39e9098b9609a5ca0b.zip |
streamline_config.pl: add LMC_KEEP to preserve some kconfigs
Sometimes it is useful to preserve batches of configs when making
localmodconfig. For example, I usually don't want any usb and fs
modules to be disabled. Now we can do it by:
$ make LMC_KEEP="drivers/usb:fs" localmodconfig
Signed-off-by: Changbin Du <changbin.du@gmail.com>
Acked-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/admin-guide/README.rst | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/Documentation/admin-guide/README.rst b/Documentation/admin-guide/README.rst index cc6151fc0845..5fb526900023 100644 --- a/Documentation/admin-guide/README.rst +++ b/Documentation/admin-guide/README.rst @@ -209,15 +209,22 @@ Configuring the kernel store the lsmod of that machine into a file and pass it in as a LSMOD parameter. + Also, you can preserve modules in certain folders + or kconfig files by specifying their paths in + parameter LMC_KEEP. + target$ lsmod > /tmp/mylsmod target$ scp /tmp/mylsmod host:/tmp - host$ make LSMOD=/tmp/mylsmod localmodconfig + host$ make LSMOD=/tmp/mylsmod \ + LMC_KEEP="drivers/usb:drivers/gpu:fs" \ + localmodconfig The above also works when cross compiling. "make localyesconfig" Similar to localmodconfig, except it will convert - all module options to built in (=y) options. + all module options to built in (=y) options. You can + also preserve modules by LMC_KEEP. "make kvmconfig" Enable additional options for kvm guest kernel support. |