platform_external_dtc/pylibfdt
Ross Burton 383e148b70 pylibfdt: fix with Python 3.10
Since Python 2.5 the argument parsing functions when parsing expressions
such as s# (string plus length) expect the length to be an int or a
ssize_t, depending on whether PY_SSIZE_T_CLEAN is defined or not.

Python 3.8 deprecated the use of int, and with Python 3.10 this symbol
must be defined and ssize_t used[1].

Define the magic symbol when building the extension, and cast the ints
from the libfdt API to ssize_t as appropriate.

[1] https://docs.python.org/3.10/whatsnew/3.10.html#id2

Signed-off-by: Ross Burton <ross.burton@arm.com>
Message-Id: <20211111160536.2516573-1-ross.burton@arm.com>
[dwg: Adjust for new location of setup.py]
Tested-by: Rob Herring <robh@kernel.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2021-11-12 12:45:46 +11:00
..
.gitignore Use Python3 by default 2019-03-29 15:43:24 +11:00
libfdt.i pylibfdt: fix with Python 3.10 2021-11-12 12:45:46 +11:00
Makefile.pylibfdt pylibfdt: Move setup.py to the top level 2021-11-11 14:34:51 +11:00
meson.build pylibfdt: Move setup.py to the top level 2021-11-11 14:34:51 +11:00