]> git.ipfire.org Git - people/ms/u-boot.git/commit
dtoc: Replace dot with underscore to avoid compiler errors
authorSimon Glass <sjg@chromium.org>
Mon, 16 Jan 2017 04:09:08 +0000 (21:09 -0700)
committerSimon Glass <sjg@chromium.org>
Wed, 8 Feb 2017 13:07:35 +0000 (06:07 -0700)
commit6b6024a3a2e0297267ad8bc0ad1dd03d6d04265a
tree1100f9ec9fd23dd8f149348d6569a91ee8f7e17f
parente9b25f2ea1ef24a648f07feeb3604888bdca43e0
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 <sjg@chromium.org>
arch/sandbox/dts/sandbox.dts
tools/dtoc/dtoc.py