kbuild

      1 kbuild.txt                                                                                                 
      2
      3 KBUILD_VERBOSE
      4 --------------------------------------------------
      5 Set the kbuild verbosity. Can be assigned same values as "V=...".
      6 See make help for the full list.
      7 Setting "V=..." takes precedence over KBUILD_VERBOSE.
      8
      9 KBUILD_EXTMOD
     10 --------------------------------------------------
     11 Set the directory to look for the kernel source when building external
     12 modules.
     13 The directory can be specified in several ways:
     14 1) Use "M=..." on the command line
     15 2) Environmnet variable KBUILD_EXTMOD
     16 3) Environmnet variable SUBDIRS
     17 The possibilities are listed in the order they take precedence.
     18 Using "M=..." will always override the others.
     19
     20 KBUILD_OUTPUT
     21 --------------------------------------------------
     22 Specify the output directory when building the kernel.
     23 The output directory can also be specificed using "O=...".
     24 Setting "O=..." takes precedence over KBUILD_OUTPUT.
     25
     26 **********************************************************************
     27 kconfig.txt
     28
     29 Use "make help" to list all of the possible configuration targets.
     30
     31 ***********************************************************************
     32 kconfig-language.txt
     33
     34 Build as module only
     35 ~~~~~~~~~~~~~~~~~~~~
     36 To restrict a component build to module-only, qualify its config symbol
     37 with "depends on m".  E.g.:
     38
     39 config FOO
     40     depends on BAR && m

     41
     42 limits FOO to module (=m) or disabled (=n).
     43
     44 git clone https://code.google.com/p/minicrtx/           

原文地址:https://www.cnblogs.com/openix/p/2863258.html