X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=README;h=f32710a817fc392262f5f890cb637e5e0b1b5d1a;hb=9851c29c7fa1708b13e14361c50091287d3d9ba4;hp=9beaed0ed620b31495a89c79fd12f7f926f7d902;hpb=53e6a100f78a9723970ca5e0ad5857de8ad399ae;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.