devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Locating syntax error in dts/dtsi files
@ 2013-03-21  8:12 Sachin Kamat
       [not found] ` <CAK9yfHzSiXk+4XqpEdmGhdD+pWcv8O_NCNRbNTv9tGNntFWdvg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Sachin Kamat @ 2013-03-21  8:12 UTC (permalink / raw)
  To: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ; +Cc: Rob Herring

Hi,

I was wondering if there is any way to locate the syntax error in
included .dtsi files (other than manually inspecting them).
In certain cases dtc only points at the line which includes the dtsi
file inside the dts file as the location of syntax (parsing error) and
does not pinpoint the line number inside the .dtsi file.

For e.g.
When a terminating brace and semicolon "};" was missing in
arch/arm/boot/dts/exynos4.dtsi, dtc gave the following error when I
did 'make dtbs'

Error: arch/arm/boot/dts/exynos4210-pinctrl.dtsi:17.1-2 syntax error
FATAL ERROR: Unable to parse input tree
make[1]: *** [arch/arm/boot/dts/exynos4210-origen.dtb] Error 1
make: *** [dtbs] Error 2

In this case it doesn't even tell the actual file that has a problem.
-- 
With warm regards,
Sachin

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-04-15 12:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-21  8:12 Locating syntax error in dts/dtsi files Sachin Kamat
     [not found] ` <CAK9yfHzSiXk+4XqpEdmGhdD+pWcv8O_NCNRbNTv9tGNntFWdvg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-04-15 12:59   ` Grant Likely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).