dtc/pylibfdt
David Gibson 98972f1b3e pylibfdt: Improved version extraction
Currently setup.py expects the library version in a VERSION environment
variable, or it exctracts the version from the Makefile.  The latter is
for the case where the script is run standalone, rather than from make.
But parsing the Makefile is ugly and fragile, and won't always get the
same version we put into the C code.

This changes to instead extracting the version from the trivial .h file we
already generate to put the version into C code.  It's still slightly ugly,
but it's simpler and since we can control the precise format of that .h,
not as fragile.

This lets us remove the remains of the makefile parsing code from setup.py.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Simon Glass <sjg@chromium.org>
2018-09-25 10:31:00 +10:00
..
.gitignore Add an initial Python library for libfdt 2017-03-21 16:21:58 +11:00
Makefile.pylibfdt pylibfdt: Improved version extraction 2018-09-25 10:31:00 +10:00
libfdt.i pylibfdt: Add a means to add and delete notes 2018-09-13 10:16:34 +10:00
setup.py pylibfdt: Improved version extraction 2018-09-25 10:31:00 +10:00