]> git.dujemihanovic.xyz Git - u-boot.git/commit
dtoc: Support ACPI paths in of-platdata
authorSimon Glass <sjg@chromium.org>
Wed, 8 Jul 2020 03:32:06 +0000 (21:32 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Fri, 17 Jul 2020 06:32:24 +0000 (14:32 +0800)
commitf02d0eb3fab332b94ebb98b73c3445f920a0c852
tree315f7e29f04c7b1bc9caf0c59a6767d03f073d4e
parent8d7ff12e635f255afce74767a78d7584abbbaed0
dtoc: Support ACPI paths in of-platdata

The start of an ACPI path typically has backslashes in it. These are not
preserved during the translation from device tree to C code, since dtc
(correctly) uses the first backslash as an escape character, and dtoc
therefore leaves it out of the C string.

Fix this with special-case handling.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/dtoc/dtb_platdata.py
tools/dtoc/dtoc_test_simple.dts
tools/dtoc/test_dtoc.py