From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bin Meng Date: Fri, 4 Oct 2019 17:44:53 +0800 Subject: [U-Boot] [PATCH 014/126] fdt: Show the preprocessed .dts file on error In-Reply-To: <20190925145750.200592-15-sjg@chromium.org> References: <20190925145750.200592-1-sjg@chromium.org> <20190925145750.200592-15-sjg@chromium.org> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Simon, On Wed, Sep 25, 2019 at 10:58 PM Simon Glass wrote: > > When device-tree compilation fails it is sometimes tricky to see which > line is broken, since the input file to dtc is a pre-processed version > of the device tree. > > Add a line that points to the file that needs to be checked: > > Output is something like this: > > Error: arch/x86/dts/.chromebook_coral.dtb.pre.tmp:170.15-16 syntax error This line already provides information that you need. > FATAL ERROR: Unable to parse input tree > Check /tmp/b/chromebook_coral/arch/x86/dts/.chromebook_coral.dtb.pre.tmp I don't understand why we need another line that provides the same information. > for errors > > Signed-off-by: Simon Glass > --- > > scripts/Makefile.lib | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > Regards, Bin