• Gaurav Minocha's avatar
    Adding selftest testdata dynamically into live tree · ae9304c9
    Gaurav Minocha authored
    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: default avatarGaurav Minocha <gaurav.minocha.os@gmail.com>
    [glikely: Removed ability to build as a module and fixed no-devicetree bug]
    Signed-off-by: default avatarGrant Likely <grant.likely@linaro.org>
    ae9304c9
versatile-pb.dts 977 Bytes