summaryrefslogtreecommitdiffstats
path: root/drivers/of/Kconfig
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@secretlab.ca>2011-12-12 09:25:57 -0700
committerGrant Likely <grant.likely@secretlab.ca>2011-12-12 13:40:16 -0700
commit53a42093d96ef5ede3b4f4cdb8f3256f27228ab0 (patch)
tree7ed1bf6fc3b9aa764072a2969903b316fd333871 /drivers/of/Kconfig
parent15c9a0acc3f7873db4b7d35d016729b2dc229b49 (diff)
downloadlinux-stable-53a42093d96ef5ede3b4f4cdb8f3256f27228ab0.tar.gz
linux-stable-53a42093d96ef5ede3b4f4cdb8f3256f27228ab0.tar.bz2
linux-stable-53a42093d96ef5ede3b4f4cdb8f3256f27228ab0.zip
of: Add device tree selftests
Add some runtime test cases for the library of device tree parsing functions. v2: - Add testcase for phandle with 0 args - Don't run testcases if testcase data isn't present in device tree Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/of/Kconfig')
-rw-r--r--drivers/of/Kconfig9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/of/Kconfig b/drivers/of/Kconfig
index cac63c9f49ae..268163dd71c7 100644
--- a/drivers/of/Kconfig
+++ b/drivers/of/Kconfig
@@ -15,6 +15,15 @@ config PROC_DEVICETREE
an image of the device tree that the kernel copies from Open
Firmware or other boot firmware. If unsure, say Y here.
+config OF_SELFTEST
+ bool "Device Tree Runtime self tests"
+ help
+ This option builds in test cases for the device tree infrastructure
+ that are executed one at boot time, and the results dumped to the
+ console.
+
+ If unsure, say N here, but this option is safe to enable.
+
config OF_FLATTREE
bool
select DTC