Adding selftest testdata dynamically into live tree
authorGaurav Minocha <gaurav.minocha.os@gmail.com>
Thu, 17 Jul 2014 06:09:39 +0000 (23:09 -0700)
committerGrant Likely <grant.likely@linaro.org>
Fri, 25 Jul 2014 06:18:13 +0000 (00:18 -0600)
commitae9304c9d3111759fed5946272be3b13ba41f7e3
tree8f45c4e45d170d09b53146d27432e7a7fb44a3f9
parent848007ba9eeae9436d988e3266f4e229ce71de87
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>
arch/arm/boot/dts/versatile-pb.dts
drivers/of/Kconfig
drivers/of/Makefile
drivers/of/selftest.c
drivers/of/testcase-data/testcases.dts [moved from drivers/of/testcase-data/testcases.dtsi with 92% similarity]