davidchisnall / dtc

FreeBSD Device Tree Compiler
18 stars 15 forks source link

dts: allow multiple /dts-v1/ tags #61

Closed kevans91 closed 4 years ago

kevans91 commented 4 years ago

Some DTS from Linux are including DTSI that also contain a /dts-v1/ tag at the top. GNU DTC doesn't seems to have a problem with that so fix our dtc to behave the same.

This is FreeBSD r354115

davidchisnall commented 4 years ago

Please can I have a test for this? I guess it's a dts and a dtsi, the former including the latter?

kevans91 commented 4 years ago

Yup- just added test. Basically, yeah- main .dts includes a .dtsi that also has a "/dts-v1/;" at the top. It seems somewhat fragile, but I guess Linux DTS is structured appropriately to make it work.