|author||Jiri Slaby <firstname.lastname@example.org>||2013-05-22 10:56:24 +0200|
|committer||Greg Kroah-Hartman <email@example.com>||2013-06-24 16:41:32 -0700|
build some drivers only when compile-testing
Some drivers can be built on more platforms than they run on. This is a burden for users and distributors who package a kernel. They have to manually deselect some (for them useless) drivers when updating their configs via oldconfig. And yet, sometimes it is even impossible to disable the drivers without patching the kernel. Introduce a new config option COMPILE_TEST and make all those drivers to depend on the platform they run on, or on the COMPILE_TEST option. Now, when users/distributors choose COMPILE_TEST=n they will not have the drivers in their allmodconfig setups, but developers still can compile-test them with COMPILE_TEST=y. Now the drivers where we use this new option: * PTP_1588_CLOCK_PCH: The PCH EG20T is only compatible with Intel Atom processors so it should depend on x86. * FB_GEODE: Geode is 32-bit only so only enable it for X86_32. * USB_CHIPIDEA_IMX: The OF_DEVICE dependency will be met on powerpc systems -- which do not actually support the hardware via that method. * INTEL_MID_PTI: It is specific to the Penwell type of Intel Atom device. [v2] * remove EXPERT dependency [gregkh - remove chipidea portion, as it's incorrect, and also doesn't apply to my driver-core tree] Signed-off-by: Jiri Slaby <firstname.lastname@example.org> Cc: Andrew Morton <email@example.com> Cc: Linus Torvalds <firstname.lastname@example.org> Cc: Jeff Mahoney <email@example.com> Cc: Alexander Shishkin <firstname.lastname@example.org> Cc: email@example.com Cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de> Cc: firstname.lastname@example.org Cc: email@example.com Cc: Richard Cochran <firstname.lastname@example.org> Cc: email@example.com Cc: Ben Hutchings <firstname.lastname@example.org> Cc: "Keller, Jacob E" <email@example.com> Signed-off-by: Greg Kroah-Hartman <firstname.lastname@example.org>
Diffstat (limited to 'init')
1 files changed, 14 insertions, 0 deletions
diff --git a/init/Kconfig b/init/Kconfig
index 55ccdf6640f..1e825c299ea 100644
@@ -53,6 +53,20 @@ config CROSS_COMPILE
need to set this unless you want the configured kernel build
directory to select the cross-compiler automatically.
+ bool "Compile also drivers which will not load"
+ default n
+ Some drivers can be compiled on a different platform than they are
+ intended to be run on. Despite they cannot be loaded there (or even
+ when they load they cannot be used due to missing HW support),
+ developers still, opposing to distributors, might want to build such
+ drivers to compile-test them.
+ If you are a developer and want to build everything available, say Y
+ here. If you are a user/distributor, say N here to exclude useless
+ drivers to be distributed.
string "Local version - append to kernel release"