summaryrefslogtreecommitdiffstats
path: root/lib/Kconfig.debug
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2014-07-14 14:38:12 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-07-17 18:44:19 -0700
commit0a8adf584759cbcbce5d88d419db01a8d0373abf (patch)
tree30f1901d7c12756f558d259d89299c505697b41c /lib/Kconfig.debug
parentb1425189d0f928babb62bdc0609a4cd4d341654d (diff)
downloadop-kernel-dev-0a8adf584759cbcbce5d88d419db01a8d0373abf.zip
op-kernel-dev-0a8adf584759cbcbce5d88d419db01a8d0373abf.tar.gz
test: add firmware_class loader test
This provides a simple interface to trigger the firmware_class loader to test built-in, filesystem, and user helper modes. Additionally adds tests via the new interface to the selftests tree. Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/Kconfig.debug')
-rw-r--r--lib/Kconfig.debug13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index 7a638aa..213cd9f 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -1649,6 +1649,19 @@ config TEST_BPF
If unsure, say N.
+config TEST_FIRMWARE
+ tristate "Test firmware loading via userspace interface"
+ default n
+ depends on FW_LOADER
+ help
+ This builds the "test_firmware" module that creates a userspace
+ interface for testing firmware loading. This can be used to
+ control the triggering of firmware loading without needing an
+ actual firmware-using device. The contents can be rechecked by
+ userspace.
+
+ If unsure, say N.
+
source "samples/Kconfig"
source "lib/Kconfig.kgdb"
OpenPOWER on IntegriCloud