libfdt: Tidy up pylibfdt build rule
authorSimon Glass <sjg@chromium.org>
Wed, 24 Mar 2021 17:40:48 +0000 (06:40 +1300)
committerSimon Glass <sjg@chromium.org>
Fri, 26 Mar 2021 04:03:04 +0000 (17:03 +1300)
commit91f414b3a82e5e8419a0ad703b7055884c4be254
tree358d98b2c6a80eefcb46bdf13f61913d24eeb750
parent4c6f65074e75fc9ddf5aa553f2f0738617fd00d5
libfdt: Tidy up pylibfdt build rule

At present the build rule for pylibfdt depends on _libfdt.so but modern
Python versions add a different suffix to the output file, resulting in
something like _libfdt.cpython-38-x86_64-linux-gnu.so

The result is that pylibfdt is rebuilt every time.

Rename the file the standard name so that the rule works correctly. Also
add libfdt.py to the dependencies, so that file is always created if
missing.

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