lkml.org 
[lkml]   [2019]   [Feb]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v3] of: unittest: unflatten device tree on UML when testing
From
Date
On 2/19/19 3:54 PM, Brendan Higgins wrote:
> 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: Brendan Higgins <brendanhiggins@google.com>
> ---
> drivers/of/unittest.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/drivers/of/unittest.c b/drivers/of/unittest.c
> index 84427384654d5..98f0dfc91c2a3 100644
> --- a/drivers/of/unittest.c
> +++ b/drivers/of/unittest.c
> @@ -2514,6 +2514,10 @@ static int __init of_unittest(void)
> int res;
>
> /* adding data for unittest */
> +
> + if (IS_ENABLED(CONFIG_UML))
> + unittest_unflatten_overlay_base();
> +
> res = unittest_data_add();
> if (res)
> return res;
>


Reviewed-by: Frank Rowand <frank.rowand@sony.com>

\
 
 \ /
  Last update: 2019-02-20 02:50    [W:0.037 / U:35.060 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site