fdt: Makefile: Build python libfdt library if needed
authorSimon Glass <sjg@chromium.org>
Sat, 27 May 2017 13:38:23 +0000 (07:38 -0600)
committerSimon Glass <sjg@chromium.org>
Fri, 2 Jun 2017 16:17:50 +0000 (10:17 -0600)
commite38ffc42674fedc750ca895046be0bd983b56dd5
treead48702d5c9f5e12cbb352179cf70fd0414cc7a7
parentb4360206a4bc67404125b0478132aeaeea41683f
fdt: Makefile: Build python libfdt library if needed

This is needed by binman and dtoc, so if those are being used, check that
the library is present and complain if not. Make sure that any error
appears on stderr so that buildman notices it.

This means that the fallback library (which uses fdtget) will not be used
anymore and swig will need to be installed to use binman / dtoc.

This affects any board which uses binman (currently sunxi and x86) or dtoc
(anything that uses CONFIG_SPL_OF_PLATDATA, currently some rockchip
boards).

Signed-off-by: Simon Glass <sjg@chromium.org>
Makefile
scripts/Makefile.spl