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 112b2af54aSKay Sieversconfig DEVTMPFS 12*4237e5fdSKay Sievers bool "Maintain a devtmpfs filesystem to mount at /dev" 132b2af54aSKay Sievers depends on HOTPLUG && SHMEM && TMPFS 142b2af54aSKay Sievers help 15*4237e5fdSKay Sievers This creates a tmpfs filesystem instance early at bootup. 16*4237e5fdSKay Sievers In this filesystem, the kernel driver core maintains device 17*4237e5fdSKay Sievers nodes with their default names and permissions for all 18*4237e5fdSKay Sievers registered devices with an assigned major/minor number. 19*4237e5fdSKay Sievers Userspace can modify the filesystem content as needed, add 20*4237e5fdSKay Sievers symlinks, and apply needed permissions. 21*4237e5fdSKay Sievers It provides a fully functional /dev directory, where usually 22*4237e5fdSKay Sievers udev runs on top, managing permissions and adding meaningful 23*4237e5fdSKay Sievers symlinks. 24*4237e5fdSKay Sievers In very limited environments, it may provide a sufficient 25*4237e5fdSKay Sievers functional /dev without any further help. It also allows simple 26*4237e5fdSKay Sievers rescue systems, and reliably handles dynamic major/minor numbers. 272b2af54aSKay Sievers 282b2af54aSKay Sieversconfig DEVTMPFS_MOUNT 29*4237e5fdSKay Sievers bool "Automount devtmpfs at /dev, after the kernel mounted the rootfs" 302b2af54aSKay Sievers depends on DEVTMPFS 312b2af54aSKay Sievers help 32*4237e5fdSKay Sievers This will instruct the kernel to automatically mount the 33*4237e5fdSKay Sievers devtmpfs filesystem at /dev, directly after the kernel has 34*4237e5fdSKay Sievers mounted the root filesystem. The behavior can be overridden 35*4237e5fdSKay Sievers with the commandline parameter: devtmpfs.mount=0|1. 36*4237e5fdSKay Sievers This option does not affect initramfs based booting, here 37*4237e5fdSKay Sievers the devtmpfs filesystem always needs to be mounted manually 38*4237e5fdSKay Sievers after the roots is mounted. 39*4237e5fdSKay Sievers With this option enabled, it allows to bring up a system in 40*4237e5fdSKay Sievers rescue mode with init=/bin/sh, even when the /dev directory 41*4237e5fdSKay Sievers on the rootfs is completely empty. 422b2af54aSKay Sievers 431da177e4SLinus Torvaldsconfig STANDALONE 441da177e4SLinus Torvalds bool "Select only drivers that don't need compile-time external firmware" if EXPERIMENTAL 451da177e4SLinus Torvalds default y 461da177e4SLinus Torvalds help 471da177e4SLinus Torvalds Select this option if you don't have magic firmware for drivers that 481da177e4SLinus Torvalds need it. 491da177e4SLinus Torvalds 501da177e4SLinus Torvalds If unsure, say Y. 511da177e4SLinus Torvalds 521da177e4SLinus Torvaldsconfig PREVENT_FIRMWARE_BUILD 531da177e4SLinus Torvalds bool "Prevent firmware from being built" 541da177e4SLinus Torvalds default y 551da177e4SLinus Torvalds help 561da177e4SLinus Torvalds Say yes to avoid building firmware. Firmware is usually shipped 571da177e4SLinus Torvalds with the driver, and only when updating the firmware a rebuild 581da177e4SLinus Torvalds should be made. 591da177e4SLinus Torvalds If unsure say Y here. 601da177e4SLinus Torvalds 611da177e4SLinus Torvaldsconfig FW_LOADER 62d9b19199SAdrian Bunk tristate "Userspace firmware loading support" if EMBEDDED 63135c294fSAndrew Morton depends on HOTPLUG 64d9b19199SAdrian Bunk default y 651da177e4SLinus Torvalds ---help--- 661da177e4SLinus Torvalds This option is provided for the case where no in-kernel-tree modules 67312c004dSKay Sievers require userspace firmware loading support, but a module built outside 681da177e4SLinus Torvalds the kernel tree does. 691da177e4SLinus Torvalds 70d172e7f5SDavid Woodhouseconfig FIRMWARE_IN_KERNEL 71d172e7f5SDavid Woodhouse bool "Include in-kernel firmware blobs in kernel binary" 72d172e7f5SDavid Woodhouse depends on FW_LOADER 73d172e7f5SDavid Woodhouse default y 74d172e7f5SDavid Woodhouse help 75d172e7f5SDavid Woodhouse The kernel source tree includes a number of firmware 'blobs' 76d172e7f5SDavid Woodhouse which are used by various drivers. The recommended way to 77d172e7f5SDavid Woodhouse use these is to run "make firmware_install" and to copy the 78d172e7f5SDavid Woodhouse resulting binary files created in usr/lib/firmware directory 79d172e7f5SDavid Woodhouse of the kernel tree to the /lib/firmware on your system so 80d172e7f5SDavid Woodhouse that they can be loaded by userspace helpers on request. 81d172e7f5SDavid Woodhouse 82d172e7f5SDavid Woodhouse Enabling this option will build each required firmware blob 83d172e7f5SDavid Woodhouse into the kernel directly, where request_firmware() will find 84d172e7f5SDavid Woodhouse them without having to call out to userspace. This may be 85d172e7f5SDavid Woodhouse useful if your root file system requires a device which uses 86d172e7f5SDavid Woodhouse such firmware, and do not wish to use an initrd. 87d172e7f5SDavid Woodhouse 88d172e7f5SDavid Woodhouse This single option controls the inclusion of firmware for 8911f1fbcfSNick Andrew every driver which uses request_firmware() and ships its 90d172e7f5SDavid Woodhouse firmware in the kernel source tree, to avoid a proliferation 91d172e7f5SDavid Woodhouse of 'Include firmware for xxx device' options. 92d172e7f5SDavid Woodhouse 93d172e7f5SDavid Woodhouse Say 'N' and let firmware be loaded from userspace. 94d172e7f5SDavid Woodhouse 954d2acfbfSDavid Woodhouseconfig EXTRA_FIRMWARE 964d2acfbfSDavid Woodhouse string "External firmware blobs to build into the kernel binary" 974d2acfbfSDavid Woodhouse depends on FW_LOADER 984d2acfbfSDavid Woodhouse help 994d2acfbfSDavid Woodhouse This option allows firmware to be built into the kernel, for the 1004d2acfbfSDavid Woodhouse cases where the user either cannot or doesn't want to provide it from 1014d2acfbfSDavid Woodhouse userspace at runtime (for example, when the firmware in question is 1024d2acfbfSDavid Woodhouse required for accessing the boot device, and the user doesn't want to 1034d2acfbfSDavid Woodhouse use an initrd). 1044d2acfbfSDavid Woodhouse 1054d2acfbfSDavid Woodhouse This option is a string, and takes the (space-separated) names of the 1064d2acfbfSDavid Woodhouse firmware files -- the same names which appear in MODULE_FIRMWARE() 1074d2acfbfSDavid Woodhouse and request_firmware() in the source. These files should exist under 1084d2acfbfSDavid Woodhouse the directory specified by the EXTRA_FIRMWARE_DIR option, which is 1094d2acfbfSDavid Woodhouse by default the firmware/ subdirectory of the kernel source tree. 1104d2acfbfSDavid Woodhouse 1114d2acfbfSDavid Woodhouse So, for example, you might set CONFIG_EXTRA_FIRMWARE="usb8388.bin", 1124d2acfbfSDavid Woodhouse copy the usb8388.bin file into the firmware/ directory, and build the 1134d2acfbfSDavid Woodhouse kernel. Then any request_firmware("usb8388.bin") will be 1144d2acfbfSDavid Woodhouse satisfied internally without needing to call out to userspace. 1154d2acfbfSDavid Woodhouse 1164d2acfbfSDavid Woodhouse WARNING: If you include additional firmware files into your binary 1174d2acfbfSDavid Woodhouse kernel image which are not available under the terms of the GPL, 1184d2acfbfSDavid Woodhouse then it may be a violation of the GPL to distribute the resulting 1194d2acfbfSDavid Woodhouse image -- since it combines both GPL and non-GPL work. You should 1204d2acfbfSDavid Woodhouse consult a lawyer of your own before distributing such an image. 1214d2acfbfSDavid Woodhouse 1224d2acfbfSDavid Woodhouseconfig EXTRA_FIRMWARE_DIR 1234d2acfbfSDavid Woodhouse string "Firmware blobs root directory" 1244d2acfbfSDavid Woodhouse depends on EXTRA_FIRMWARE != "" 1254d2acfbfSDavid Woodhouse default "firmware" 1264d2acfbfSDavid Woodhouse help 1274d2acfbfSDavid Woodhouse This option controls the directory in which the kernel build system 1284d2acfbfSDavid Woodhouse looks for the firmware files listed in the EXTRA_FIRMWARE option. 1294d2acfbfSDavid Woodhouse The default is the firmware/ directory in the kernel source tree, 1304d2acfbfSDavid Woodhouse but by changing this option you can point it elsewhere, such as 1314d2acfbfSDavid Woodhouse the /lib/firmware/ directory or another separate directory 1324d2acfbfSDavid Woodhouse containing firmware files. 1334d2acfbfSDavid Woodhouse 1341da177e4SLinus Torvaldsconfig DEBUG_DRIVER 1351da177e4SLinus Torvalds bool "Driver Core verbose debug messages" 1361da177e4SLinus Torvalds depends on DEBUG_KERNEL 1371da177e4SLinus Torvalds help 1381da177e4SLinus Torvalds Say Y here if you want the Driver core to produce a bunch of 1391da177e4SLinus Torvalds debug messages to the system log. Select this if you are having a 1401da177e4SLinus Torvalds problem with the driver core and want to see more of what is 1411da177e4SLinus Torvalds going on. 1421da177e4SLinus Torvalds 1431da177e4SLinus Torvalds If you are unsure about this, say N here. 1441da177e4SLinus Torvalds 1459ac7849eSTejun Heoconfig DEBUG_DEVRES 1469ac7849eSTejun Heo bool "Managed device resources verbose debug messages" 1479ac7849eSTejun Heo depends on DEBUG_KERNEL 1489ac7849eSTejun Heo help 1499ac7849eSTejun Heo This option enables kernel parameter devres.log. If set to 1509ac7849eSTejun Heo non-zero, devres debug messages are printed. Select this if 1519ac7849eSTejun Heo you are having a problem with devres or want to debug 1529ac7849eSTejun Heo resource management for a managed device. devres.log can be 1539ac7849eSTejun Heo switched on and off from sysfs node. 1549ac7849eSTejun Heo 1559ac7849eSTejun Heo If you are unsure about this, Say N here. 1569ac7849eSTejun Heo 1574039483fSMichael Holzheuconfig SYS_HYPERVISOR 1584039483fSMichael Holzheu bool 1594039483fSMichael Holzheu default n 160eba6cd67SRandy Dunlap 161eba6cd67SRandy Dunlapendmenu 162