Commit 935665c1 authored by Brendan Higgins's avatar Brendan Higgins Committed by Rob Herring

of: unittest: unflatten device tree on UML when testing

UML supports enabling OF, and is useful for running the device tree
tests, so add support for unflattening device tree blobs so we can
actually use it.
Signed-off-by: default avatarBrendan Higgins <brendanhiggins@google.com>
Reviewed-by: default avatarFrank Rowand <frank.rowand@sony.com>
Signed-off-by: default avatarRob Herring <robh@kernel.org>
parent da36822d
...@@ -2521,6 +2521,10 @@ static int __init of_unittest(void) ...@@ -2521,6 +2521,10 @@ static int __init of_unittest(void)
int res; int res;
/* adding data for unittest */ /* adding data for unittest */
if (IS_ENABLED(CONFIG_UML))
unittest_unflatten_overlay_base();
res = unittest_data_add(); res = unittest_data_add();
if (res) if (res)
return res; return res;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment