Kconfig 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. menu "Generic Driver Options"
  2. config UEVENT_HELPER_PATH
  3. string "path to uevent helper"
  4. depends on HOTPLUG
  5. default "/sbin/hotplug"
  6. help
  7. Path to uevent helper program forked by the kernel for
  8. every uevent.
  9. config STANDALONE
  10. bool "Select only drivers that don't need compile-time external firmware" if EXPERIMENTAL
  11. default y
  12. help
  13. Select this option if you don't have magic firmware for drivers that
  14. need it.
  15. If unsure, say Y.
  16. config PREVENT_FIRMWARE_BUILD
  17. bool "Prevent firmware from being built"
  18. default y
  19. help
  20. Say yes to avoid building firmware. Firmware is usually shipped
  21. with the driver, and only when updating the firmware a rebuild
  22. should be made.
  23. If unsure say Y here.
  24. config FW_LOADER
  25. tristate "Userspace firmware loading support" if EMBEDDED
  26. depends on HOTPLUG
  27. default y
  28. ---help---
  29. This option is provided for the case where no in-kernel-tree modules
  30. require userspace firmware loading support, but a module built outside
  31. the kernel tree does.
  32. config FIRMWARE_IN_KERNEL
  33. bool "Include in-kernel firmware blobs in kernel binary"
  34. depends on FW_LOADER
  35. default y
  36. help
  37. The kernel source tree includes a number of firmware 'blobs'
  38. which are used by various drivers. The recommended way to
  39. use these is to run "make firmware_install" and to copy the
  40. resulting binary files created in usr/lib/firmware directory
  41. of the kernel tree to the /lib/firmware on your system so
  42. that they can be loaded by userspace helpers on request.
  43. Enabling this option will build each required firmware blob
  44. into the kernel directly, where request_firmware() will find
  45. them without having to call out to userspace. This may be
  46. useful if your root file system requires a device which uses
  47. such firmware, and do not wish to use an initrd.
  48. This single option controls the inclusion of firmware for
  49. every driver which usees request_firmare() and ships its
  50. firmware in the kernel source tree, to avoid a proliferation
  51. of 'Include firmware for xxx device' options.
  52. Say 'N' and let firmware be loaded from userspace.
  53. config EXTRA_FIRMWARE
  54. string "External firmware blobs to build into the kernel binary"
  55. depends on FW_LOADER
  56. help
  57. This option allows firmware to be built into the kernel, for the
  58. cases where the user either cannot or doesn't want to provide it from
  59. userspace at runtime (for example, when the firmware in question is
  60. required for accessing the boot device, and the user doesn't want to
  61. use an initrd).
  62. This option is a string, and takes the (space-separated) names of the
  63. firmware files -- the same names which appear in MODULE_FIRMWARE()
  64. and request_firmware() in the source. These files should exist under
  65. the directory specified by the EXTRA_FIRMWARE_DIR option, which is
  66. by default the firmware/ subdirectory of the kernel source tree.
  67. So, for example, you might set CONFIG_EXTRA_FIRMWARE="usb8388.bin",
  68. copy the usb8388.bin file into the firmware/ directory, and build the
  69. kernel. Then any request_firmware("usb8388.bin") will be
  70. satisfied internally without needing to call out to userspace.
  71. WARNING: If you include additional firmware files into your binary
  72. kernel image which are not available under the terms of the GPL,
  73. then it may be a violation of the GPL to distribute the resulting
  74. image -- since it combines both GPL and non-GPL work. You should
  75. consult a lawyer of your own before distributing such an image.
  76. config EXTRA_FIRMWARE_DIR
  77. string "Firmware blobs root directory"
  78. depends on EXTRA_FIRMWARE != ""
  79. default "firmware"
  80. help
  81. This option controls the directory in which the kernel build system
  82. looks for the firmware files listed in the EXTRA_FIRMWARE option.
  83. The default is the firmware/ directory in the kernel source tree,
  84. but by changing this option you can point it elsewhere, such as
  85. the /lib/firmware/ directory or another separate directory
  86. containing firmware files.
  87. config DEBUG_DRIVER
  88. bool "Driver Core verbose debug messages"
  89. depends on DEBUG_KERNEL
  90. help
  91. Say Y here if you want the Driver core to produce a bunch of
  92. debug messages to the system log. Select this if you are having a
  93. problem with the driver core and want to see more of what is
  94. going on.
  95. If you are unsure about this, say N here.
  96. config DEBUG_DEVRES
  97. bool "Managed device resources verbose debug messages"
  98. depends on DEBUG_KERNEL
  99. help
  100. This option enables kernel parameter devres.log. If set to
  101. non-zero, devres debug messages are printed. Select this if
  102. you are having a problem with devres or want to debug
  103. resource management for a managed device. devres.log can be
  104. switched on and off from sysfs node.
  105. If you are unsure about this, Say N here.
  106. config SYS_HYPERVISOR
  107. bool
  108. default n
  109. endmenu