xref: /openbmc/linux/drivers/base/Kconfig (revision 4d2acfbf)
11da177e4SLinus Torvaldsmenu "Generic Driver Options"
21da177e4SLinus Torvalds
36a8d8abbSKay Sieversconfig UEVENT_HELPER_PATH
46a8d8abbSKay Sievers	string "path to uevent helper"
56a8d8abbSKay Sievers	depends on HOTPLUG
66a8d8abbSKay Sievers	default "/sbin/hotplug"
76a8d8abbSKay Sievers	help
86a8d8abbSKay Sievers	  Path to uevent helper program forked by the kernel for
96a8d8abbSKay Sievers	  every uevent.
106a8d8abbSKay Sievers
111da177e4SLinus Torvaldsconfig STANDALONE
121da177e4SLinus Torvalds	bool "Select only drivers that don't need compile-time external firmware" if EXPERIMENTAL
131da177e4SLinus Torvalds	default y
141da177e4SLinus Torvalds	help
151da177e4SLinus Torvalds	  Select this option if you don't have magic firmware for drivers that
161da177e4SLinus Torvalds	  need it.
171da177e4SLinus Torvalds
181da177e4SLinus Torvalds	  If unsure, say Y.
191da177e4SLinus Torvalds
201da177e4SLinus Torvaldsconfig PREVENT_FIRMWARE_BUILD
211da177e4SLinus Torvalds	bool "Prevent firmware from being built"
221da177e4SLinus Torvalds	default y
231da177e4SLinus Torvalds	help
241da177e4SLinus Torvalds	  Say yes to avoid building firmware. Firmware is usually shipped
251da177e4SLinus Torvalds	  with the driver, and only when updating the firmware a rebuild
261da177e4SLinus Torvalds	  should be made.
271da177e4SLinus Torvalds	  If unsure say Y here.
281da177e4SLinus Torvalds
291da177e4SLinus Torvaldsconfig FW_LOADER
30312c004dSKay Sievers	tristate "Userspace firmware loading support"
31135c294fSAndrew Morton	depends on HOTPLUG
321da177e4SLinus Torvalds	---help---
331da177e4SLinus Torvalds	  This option is provided for the case where no in-kernel-tree modules
34312c004dSKay Sievers	  require userspace firmware loading support, but a module built outside
351da177e4SLinus Torvalds	  the kernel tree does.
361da177e4SLinus Torvalds
37*4d2acfbfSDavid Woodhouseconfig EXTRA_FIRMWARE
38*4d2acfbfSDavid Woodhouse	string "External firmware blobs to build into the kernel binary"
39*4d2acfbfSDavid Woodhouse	depends on FW_LOADER
40*4d2acfbfSDavid Woodhouse	help
41*4d2acfbfSDavid Woodhouse	  This option allows firmware to be built into the kernel, for the
42*4d2acfbfSDavid Woodhouse	  cases where the user either cannot or doesn't want to provide it from
43*4d2acfbfSDavid Woodhouse	  userspace at runtime (for example, when the firmware in question is
44*4d2acfbfSDavid Woodhouse	  required for accessing the boot device, and the user doesn't want to
45*4d2acfbfSDavid Woodhouse	  use an initrd).
46*4d2acfbfSDavid Woodhouse
47*4d2acfbfSDavid Woodhouse	  This option is a string, and takes the (space-separated) names of the
48*4d2acfbfSDavid Woodhouse	  firmware files -- the same names which appear in MODULE_FIRMWARE()
49*4d2acfbfSDavid Woodhouse	  and request_firmware() in the source. These files should exist under
50*4d2acfbfSDavid Woodhouse	  the directory specified by the EXTRA_FIRMWARE_DIR option, which is
51*4d2acfbfSDavid Woodhouse	  by default the firmware/ subdirectory of the kernel source tree.
52*4d2acfbfSDavid Woodhouse
53*4d2acfbfSDavid Woodhouse	  So, for example, you might set CONFIG_EXTRA_FIRMWARE="usb8388.bin",
54*4d2acfbfSDavid Woodhouse	  copy the usb8388.bin file into the firmware/ directory, and build the
55*4d2acfbfSDavid Woodhouse	  kernel. Then any request_firmware("usb8388.bin") will be
56*4d2acfbfSDavid Woodhouse	  satisfied internally without needing to call out to userspace.
57*4d2acfbfSDavid Woodhouse
58*4d2acfbfSDavid Woodhouse	  WARNING: If you include additional firmware files into your binary
59*4d2acfbfSDavid Woodhouse	  kernel image which are not available under the terms of the GPL,
60*4d2acfbfSDavid Woodhouse	  then it may be a violation of the GPL to distribute the resulting
61*4d2acfbfSDavid Woodhouse	  image -- since it combines both GPL and non-GPL work. You should
62*4d2acfbfSDavid Woodhouse	  consult a lawyer of your own before distributing such an image.
63*4d2acfbfSDavid Woodhouse
64*4d2acfbfSDavid Woodhouseconfig EXTRA_FIRMWARE_DIR
65*4d2acfbfSDavid Woodhouse	string "Firmware blobs root directory"
66*4d2acfbfSDavid Woodhouse	depends on EXTRA_FIRMWARE != ""
67*4d2acfbfSDavid Woodhouse	default "firmware"
68*4d2acfbfSDavid Woodhouse	help
69*4d2acfbfSDavid Woodhouse	  This option controls the directory in which the kernel build system
70*4d2acfbfSDavid Woodhouse	  looks for the firmware files listed in the EXTRA_FIRMWARE option.
71*4d2acfbfSDavid Woodhouse	  The default is the firmware/ directory in the kernel source tree,
72*4d2acfbfSDavid Woodhouse	  but by changing this option you can point it elsewhere, such as
73*4d2acfbfSDavid Woodhouse	  the /lib/firmware/ directory or another separate directory
74*4d2acfbfSDavid Woodhouse	  containing firmware files.
75*4d2acfbfSDavid Woodhouse
761da177e4SLinus Torvaldsconfig DEBUG_DRIVER
771da177e4SLinus Torvalds	bool "Driver Core verbose debug messages"
781da177e4SLinus Torvalds	depends on DEBUG_KERNEL
791da177e4SLinus Torvalds	help
801da177e4SLinus Torvalds	  Say Y here if you want the Driver core to produce a bunch of
811da177e4SLinus Torvalds	  debug messages to the system log. Select this if you are having a
821da177e4SLinus Torvalds	  problem with the driver core and want to see more of what is
831da177e4SLinus Torvalds	  going on.
841da177e4SLinus Torvalds
851da177e4SLinus Torvalds	  If you are unsure about this, say N here.
861da177e4SLinus Torvalds
879ac7849eSTejun Heoconfig DEBUG_DEVRES
889ac7849eSTejun Heo	bool "Managed device resources verbose debug messages"
899ac7849eSTejun Heo	depends on DEBUG_KERNEL
909ac7849eSTejun Heo	help
919ac7849eSTejun Heo	  This option enables kernel parameter devres.log. If set to
929ac7849eSTejun Heo	  non-zero, devres debug messages are printed. Select this if
939ac7849eSTejun Heo	  you are having a problem with devres or want to debug
949ac7849eSTejun Heo	  resource management for a managed device. devres.log can be
959ac7849eSTejun Heo	  switched on and off from sysfs node.
969ac7849eSTejun Heo
979ac7849eSTejun Heo	  If you are unsure about this, Say N here.
989ac7849eSTejun Heo
994039483fSMichael Holzheuconfig SYS_HYPERVISOR
1004039483fSMichael Holzheu	bool
1014039483fSMichael Holzheu	default n
102eba6cd67SRandy Dunlap
103eba6cd67SRandy Dunlapendmenu
104