X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=README;h=f32710a817fc392262f5f890cb637e5e0b1b5d1a;hb=68fb31706d50dd5d337cd7928aeb780358b910a5;hp=9beaed0ed620b31495a89c79fd12f7f926f7d902;hpb=a4c75ba85cecd7ee3a54737af28836567efa7448;p=firefly-linux-kernel-4.4.55.git diff --git a/README b/README index 9beaed0ed620..f32710a817fc 100644 --- a/README +++ b/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.