From 6b6024a3a2e0297267ad8bc0ad1dd03d6d04265a Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Sun, 15 Jan 2017 21:09:08 -0700 Subject: dtoc: Replace dot with underscore to avoid compiler errors If there is a '.' in a compatible string, then dtoc will produce a struct with a name containing a '.'. This won't work, so replace it with '_'. Also add a suitable test to the sandbox device tree to catch this. Signed-off-by: Simon Glass --- arch/sandbox/dts/sandbox.dts | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'arch') diff --git a/arch/sandbox/dts/sandbox.dts b/arch/sandbox/dts/sandbox.dts index e6d336f..2061464 100644 --- a/arch/sandbox/dts/sandbox.dts +++ b/arch/sandbox/dts/sandbox.dts @@ -203,6 +203,11 @@ stringarray = "one"; }; + spl-test4 { + u-boot,dm-pre-reloc; + compatible = "sandbox,spl-test.2"; + }; + square { compatible = "demo-shape"; colour = "blue"; -- cgit v1.1