path: root/README
diff options
authorSteven Rostedt2012-10-05 15:52:50 -0500
committerLinus Torvalds2012-10-07 17:55:25 -0500
commit80b810b276cf89587cdaa103e39027813b1be46c (patch)
tree54d6d0dace0bf0629dbfce1aec9f1b6b1f285272 /README
parentd8dc91b753b881c60c766c06aeec87675a07df4a (diff)
localmodconfig: Document localmodconfig in README
Someone (over a year ago :-p) asked me to document localmodconfig in the README file in the source code. I thought it was a good idea but other things were more important and I simply forgot about it. Well, I stumbled on the email asking me about this and I'm sending it out now. Signed-off-by: Steven "Mr. Procrastinator" Rostedt <rostedt@goodmis.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'README')
1 files changed, 18 insertions, 0 deletions
diff --git a/README b/README
index 9beaed0ed620..f32710a817fc 100644
--- a/README
+++ b/README
@@ -206,6 +206,24 @@ CONFIGURING the kernel:
206 "make randconfig" Create a ./.config file by setting symbol 206 "make randconfig" Create a ./.config file by setting symbol
207 values to random values. 207 values to random values.
208 208
209 "make localmodconfig" Create a config based on current config and
210 loaded modules (lsmod). Disables any module
211 option that is not needed for the loaded modules.
213 To create a localmodconfig for another machine,
214 store the lsmod of that machine into a file
215 and pass it in as a LSMOD parameter.
217 target$ lsmod > /tmp/mylsmod
218 target$ scp /tmp/mylsmod host:/tmp
220 host$ make LSMOD=/tmp/mylsmod localmodconfig
222 The above also works when cross compiling.
224 "make localyesconfig" Similar to localmodconfig, except it will convert
225 all module options to built in (=y) options.
209 You can find more information on using the Linux kernel config tools 227 You can find more information on using the Linux kernel config tools
210 in Documentation/kbuild/kconfig.txt. 228 in Documentation/kbuild/kconfig.txt.
211 229