Adding selftest testdata dynamically into live tree
This patch attaches selftest's device tree data (required by /drivers/of/selftest.c) dynamically into live device tree. First, it links selftest device tree data into the kernel image and then iterates over all the nodes and attaches them into the live tree. Once the testcases are complete, it removes the data attached. This patch will remove the manual process of addition and removal of selftest device tree data into the machine's dts file. Tested successfully with current selftest's testcases. Signed-off-by: Gaurav Minocha <gaurav.minocha.os@gmail.com> [glikely: Removed ability to build as a module and fixed no-devicetree bug] Signed-off-by: Grant Likely <grant.likely@linaro.org>
This commit is contained in:
committed by
Grant Likely
parent
848007ba9e
commit
ae9304c9d3
@@ -10,6 +10,7 @@ menu "Device Tree and Open Firmware support"
|
||||
config OF_SELFTEST
|
||||
bool "Device Tree Runtime self tests"
|
||||
depends on OF_IRQ
|
||||
select OF_DYNAMIC
|
||||
help
|
||||
This option builds in test cases for the device tree infrastructure
|
||||
that are executed once at boot time, and the results dumped to the
|
||||
|
||||
Reference in New Issue
Block a user