scripts: imx: report file where error occurred
Especially when using #include directives in imxcfg files, error
messages can be hard to follow because line numbers differ between
preprocessor and source files. Teach the imx image generation tool about
preprocessing line number / file name directive, so it can give more
useful error messages. Instead of:

  error in line 11: Invalid argument

It now says:

  $barebox/arch/arm/boards/$som/flash-header-$board.imxcfg:5: Invalid argument

No change in compiled barebox binaries.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 51f1e9c commit 9344bf77582c21c7ee086bccd4c00971b95282b8
@Ahmad Fatoum Ahmad Fatoum authored on 28 Nov 2019
Sascha Hauer committed on 2 Dec 2019
Showing 1 changed file
View
scripts/imx/imx.c