kconfig.txt 6.5 KB

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