From 1338e8a1760e2e0f914b46b71199a7befa5b86e1 Mon Sep 17 00:00:00 2001 From: Steven Rostedt Date: Fri, 5 Oct 2012 16:52:50 -0400 Subject: [PATCH] --- yaml --- r: 331750 b: refs/heads/master c: 80b810b276cf89587cdaa103e39027813b1be46c h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/README | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 44b9818777f3..0ab2f96942d8 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: d8dc91b753b881c60c766c06aeec87675a07df4a +refs/heads/master: 80b810b276cf89587cdaa103e39027813b1be46c diff --git a/trunk/README b/trunk/README index 9beaed0ed620..f32710a817fc 100644 --- a/trunk/README +++ b/trunk/README @@ -206,6 +206,24 @@ CONFIGURING the kernel: "make randconfig" Create a ./.config file by setting symbol values to random values. + "make localmodconfig" Create a config based on current config and + loaded modules (lsmod). Disables any module + option that is not needed for the loaded modules. + + To create a localmodconfig for another machine, + store the lsmod of that machine into a file + and pass it in as a LSMOD parameter. + + target$ lsmod > /tmp/mylsmod + target$ scp /tmp/mylsmod host:/tmp + + host$ make LSMOD=/tmp/mylsmod 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. + You can find more information on using the Linux kernel config tools in Documentation/kbuild/kconfig.txt.