binman: Adjust pylibfdt for incremental build
authorSimon Glass <sjg@chromium.org>
Fri, 10 Jul 2020 00:39:33 +0000 (18:39 -0600)
committerSimon Glass <sjg@chromium.org>
Mon, 20 Jul 2020 17:37:47 +0000 (11:37 -0600)
commit8beed3d7ac5a3253a850bdadcb2dbc1fec6aff6c
tree1466dc535d9ea9bbf139af8482b54dfe32feae00
parentfe04f647a27df076cd53208b9b3117c97dac4f89
binman: Adjust pylibfdt for incremental build

If the pylibfdt shared-object file is detected, then Python assumes that
the libfdt.py file exists also.

Sometimes when an incremental build aborts, the shared-object file is
built but the libfdt.py is not. The only way out at this point is to use
'make mkproper', or similar.

Fix this by removing the .so file before it is built. This seems to make
Python rebuild everything.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
scripts/dtc/pylibfdt/Makefile