kconfig.txt 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  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. ______________________________________________________________________
  37. Environment variables for '{allyes/allmod/allno/rand}config'
  38. KCONFIG_ALLCONFIG
  39. --------------------------------------------------
  40. (partially based on lkml email from/by Rob Landley, re: miniconfig)
  41. --------------------------------------------------
  42. The allyesconfig/allmodconfig/allnoconfig/randconfig variants can
  43. also use the environment variable KCONFIG_ALLCONFIG as a flag or a
  44. filename that contains config symbols that the user requires to be
  45. set to a specific value. If KCONFIG_ALLCONFIG is used without a
  46. filename, "make *config" checks for a file named
  47. "all{yes/mod/no/def/random}.config" (corresponding to the *config command
  48. that was used) for symbol values that are to be forced. If this file
  49. is not found, it checks for a file named "all.config" to contain forced
  50. values.
  51. This enables you to create "miniature" config (miniconfig) or custom
  52. config files containing just the config symbols that you are interested
  53. in. Then the kernel config system generates the full .config file,
  54. including symbols of your miniconfig file.
  55. This 'KCONFIG_ALLCONFIG' file is a config file which contains
  56. (usually a subset of all) preset config symbols. These variable
  57. settings are still subject to normal dependency checks.
  58. Examples:
  59. KCONFIG_ALLCONFIG=custom-notebook.config make allnoconfig
  60. or
  61. KCONFIG_ALLCONFIG=mini.config make allnoconfig
  62. or
  63. make KCONFIG_ALLCONFIG=mini.config allnoconfig
  64. These examples will disable most options (allnoconfig) but enable or
  65. disable the options that are explicitly listed in the specified
  66. mini-config files.
  67. ______________________________________________________________________
  68. Environment variables for 'silentoldconfig'
  69. KCONFIG_NOSILENTUPDATE
  70. --------------------------------------------------
  71. If this variable has a non-blank value, it prevents silent kernel
  72. config updates (requires explicit updates).
  73. KCONFIG_AUTOCONFIG
  74. --------------------------------------------------
  75. This environment variable can be set to specify the path & name of the
  76. "auto.conf" file. Its default value is "include/config/auto.conf".
  77. KCONFIG_TRISTATE
  78. --------------------------------------------------
  79. This environment variable can be set to specify the path & name of the
  80. "tristate.conf" file. Its default value is "include/config/tristate.conf".
  81. KCONFIG_AUTOHEADER
  82. --------------------------------------------------
  83. This environment variable can be set to specify the path & name of the
  84. "autoconf.h" (header) file.
  85. Its default value is "include/generated/autoconf.h".
  86. ======================================================================
  87. menuconfig
  88. --------------------------------------------------
  89. SEARCHING for CONFIG symbols
  90. Searching in menuconfig:
  91. The Search function searches for kernel configuration symbol
  92. names, so you have to know something close to what you are
  93. looking for.
  94. Example:
  95. /hotplug
  96. This lists all config symbols that contain "hotplug",
  97. e.g., HOTPLUG, HOTPLUG_CPU, MEMORY_HOTPLUG.
  98. For search help, enter / followed TAB-TAB-TAB (to highlight
  99. <Help>) and Enter. This will tell you that you can also use
  100. regular expressions (regexes) in the search string, so if you
  101. are not interested in MEMORY_HOTPLUG, you could try
  102. /^hotplug
  103. ______________________________________________________________________
  104. User interface options for 'menuconfig'
  105. MENUCONFIG_COLOR
  106. --------------------------------------------------
  107. It is possible to select different color themes using the variable
  108. MENUCONFIG_COLOR. To select a theme use:
  109. make MENUCONFIG_COLOR=<theme> menuconfig
  110. Available themes are:
  111. mono => selects colors suitable for monochrome displays
  112. blackbg => selects a color scheme with black background
  113. classic => theme with blue background. The classic look
  114. bluetitle => a LCD friendly version of classic. (default)
  115. MENUCONFIG_MODE
  116. --------------------------------------------------
  117. This mode shows all sub-menus in one large tree.
  118. Example:
  119. make MENUCONFIG_MODE=single_menu menuconfig
  120. ======================================================================
  121. xconfig
  122. --------------------------------------------------
  123. Searching in xconfig:
  124. The Search function searches for kernel configuration symbol
  125. names, so you have to know something close to what you are
  126. looking for.
  127. Example:
  128. Ctrl-F hotplug
  129. or
  130. Menu: File, Search, hotplug
  131. lists all config symbol entries that contain "hotplug" in
  132. the symbol name. In this Search dialog, you may change the
  133. config setting for any of the entries that are not grayed out.
  134. You can also enter a different search string without having
  135. to return to the main menu.
  136. ======================================================================
  137. gconfig
  138. --------------------------------------------------
  139. Searching in gconfig:
  140. None (gconfig isn't maintained as well as xconfig or menuconfig);
  141. however, gconfig does have a few more viewing choices than
  142. xconfig does.
  143. ###