kconfig.txt 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. This file contains some assistance for using "make *config".
  2. Use "make help" to list all of the possible configuration targets.
  3. The xconfig ('qconf') and menuconfig ('mconf') programs also
  4. have embedded help text. Be sure to check it for navigation,
  5. search, and other general help text.
  6. ======================================================================
  7. General
  8. --------------------------------------------------
  9. New kernel releases often introduce new config symbols. Often more
  10. important, new kernel releases may rename config symbols. When
  11. this happens, using a previously working .config file and running
  12. "make oldconfig" won't necessarily produce a working new kernel
  13. for you, so you may find that you need to see what NEW kernel
  14. symbols have been introduced.
  15. To see a list of new config symbols when using "make oldconfig", use
  16. cp user/some/old.config .config
  17. yes "" | make oldconfig >conf.new
  18. and the config program will list as (NEW) any new symbols that have
  19. unknown values. Of course, the .config file is also updated with
  20. new (default) values, so you can use:
  21. grep "(NEW)" conf.new
  22. to see the new config symbols or you can 'diff' the previous and
  23. new .config files to see the differences:
  24. diff .config.old .config | less
  25. (Yes, we need something better here.)
  26. ______________________________________________________________________
  27. Environment variables for '*config'
  28. KCONFIG_CONFIG
  29. --------------------------------------------------
  30. This environment variable can be used to specify a default kernel config
  31. file name to override the default name of ".config".
  32. KCONFIG_OVERWRITECONFIG
  33. --------------------------------------------------
  34. If you set KCONFIG_OVERWRITECONFIG in the environment, Kconfig will not
  35. break symlinks when .config is a symlink to somewhere else.
  36. KCONFIG_NOTIMESTAMP
  37. --------------------------------------------------
  38. If this environment variable exists and is non-null, the timestamp line
  39. in generated .config files is omitted.
  40. ______________________________________________________________________
  41. Environment variables for '{allyes/allmod/allno/rand}config'
  42. KCONFIG_ALLCONFIG
  43. --------------------------------------------------
  44. (partially based on lkml email from/by Rob Landley, re: miniconfig)
  45. --------------------------------------------------
  46. The allyesconfig/allmodconfig/allnoconfig/randconfig variants can
  47. also use the environment variable KCONFIG_ALLCONFIG as a flag or a
  48. filename that contains config symbols that the user requires to be
  49. set to a specific value. If KCONFIG_ALLCONFIG is used without a
  50. filename, "make *config" checks for a file named
  51. "all{yes/mod/no/def/random}.config" (corresponding to the *config command
  52. that was used) for symbol values that are to be forced. If this file
  53. is not found, it checks for a file named "all.config" to contain forced
  54. values.
  55. This enables you to create "miniature" config (miniconfig) or custom
  56. config files containing just the config symbols that you are interested
  57. in. Then the kernel config system generates the full .config file,
  58. including symbols of your miniconfig file.
  59. This 'KCONFIG_ALLCONFIG' file is a config file which contains
  60. (usually a subset of all) preset config symbols. These variable
  61. settings are still subject to normal dependency checks.
  62. Examples:
  63. KCONFIG_ALLCONFIG=custom-notebook.config make allnoconfig
  64. or
  65. KCONFIG_ALLCONFIG=mini.config make allnoconfig
  66. or
  67. make KCONFIG_ALLCONFIG=mini.config allnoconfig
  68. These examples will disable most options (allnoconfig) but enable or
  69. disable the options that are explicitly listed in the specified
  70. mini-config files.
  71. ______________________________________________________________________
  72. Environment variables for 'silentoldconfig'
  73. KCONFIG_NOSILENTUPDATE
  74. --------------------------------------------------
  75. If this variable has a non-blank value, it prevents silent kernel
  76. config updates (requires explicit updates).
  77. KCONFIG_AUTOCONFIG
  78. --------------------------------------------------
  79. This environment variable can be set to specify the path & name of the
  80. "auto.conf" file. Its default value is "include/config/auto.conf".
  81. KCONFIG_TRISTATE
  82. --------------------------------------------------
  83. This environment variable can be set to specify the path & name of the
  84. "tristate.conf" file. Its default value is "include/config/tristate.conf".
  85. KCONFIG_AUTOHEADER
  86. --------------------------------------------------
  87. This environment variable can be set to specify the path & name of the
  88. "autoconf.h" (header) file.
  89. Its default value is "include/generated/autoconf.h".
  90. ======================================================================
  91. menuconfig
  92. --------------------------------------------------
  93. SEARCHING for CONFIG symbols
  94. Searching in menuconfig:
  95. The Search function searches for kernel configuration symbol
  96. names, so you have to know something close to what you are
  97. looking for.
  98. Example:
  99. /hotplug
  100. This lists all config symbols that contain "hotplug",
  101. e.g., HOTPLUG, HOTPLUG_CPU, MEMORY_HOTPLUG.
  102. For search help, enter / followed TAB-TAB-TAB (to highlight
  103. <Help>) and Enter. This will tell you that you can also use
  104. regular expressions (regexes) in the search string, so if you
  105. are not interested in MEMORY_HOTPLUG, you could try
  106. /^hotplug
  107. ______________________________________________________________________
  108. User interface options for 'menuconfig'
  109. MENUCONFIG_COLOR
  110. --------------------------------------------------
  111. It is possible to select different color themes using the variable
  112. MENUCONFIG_COLOR. To select a theme use:
  113. make MENUCONFIG_COLOR=<theme> menuconfig
  114. Available themes are:
  115. mono => selects colors suitable for monochrome displays
  116. blackbg => selects a color scheme with black background
  117. classic => theme with blue background. The classic look
  118. bluetitle => a LCD friendly version of classic. (default)
  119. MENUCONFIG_MODE
  120. --------------------------------------------------
  121. This mode shows all sub-menus in one large tree.
  122. Example:
  123. make MENUCONFIG_MODE=single_menu menuconfig
  124. ======================================================================
  125. xconfig
  126. --------------------------------------------------
  127. Searching in xconfig:
  128. The Search function searches for kernel configuration symbol
  129. names, so you have to know something close to what you are
  130. looking for.
  131. Example:
  132. Ctrl-F hotplug
  133. or
  134. Menu: File, Search, hotplug
  135. lists all config symbol entries that contain "hotplug" in
  136. the symbol name. In this Search dialog, you may change the
  137. config setting for any of the entries that are not grayed out.
  138. You can also enter a different search string without having
  139. to return to the main menu.
  140. ======================================================================
  141. gconfig
  142. --------------------------------------------------
  143. Searching in gconfig:
  144. None (gconfig isn't maintained as well as xconfig or menuconfig);
  145. however, gconfig does have a few more viewing choices than
  146. xconfig does.
  147. ###