libfdt: Fix build with python 3.10
PATCH 1/1 libfdt: Fix build with python 3.10
Python 3.10 requires defining PY_SSIZE_T_CLEAN. This will be fixed in swig 4.10 but it is not clear when it will be released. There was a warning since python 3.8.
Signed-off-by Michal Suchanek <[email protected]>
---
scripts/dtc/pylibfdt/libfdt.i_shipped | 4 ++++ 1 file changed, 4 insertions(+)
scripts/dtc/pylibfdt/libfdt.i_shipped +4 -0
@@ -7,6 +7,10 @@ %module libfdt +%begin %{ +#define PY_SSIZE_T_CLEAN +%} + %include <stdint.i> %{
Signature · 1 line
2.37.3
Quoted 5 lines · Michal Suchanek
Python 3.10 requires defining
PY_SSIZE_T_CLEAN. This will be fixed in swig 4.10 but it is not clear when it will be released. There was a warning since python 3.8.
Quoted 8 lines
Signed-off-by Michal Suchanek <[email protected]>---
scripts/dtc/pylibfdt/libfdt.i_shipped | 4 ++++ 1 file changed, 4 insertions(+)
Reviewed-by Simon Glass <[email protected]>
Simon Glass
Reviewed-byQuoted 5 lines · Michal Suchanek
Python 3.10 requires defining
PY_SSIZE_T_CLEAN. This will be fixed in swig 4.10 but it is not clear when it will be released. There was a warning since python 3.8.
Quoted 8 lines
Signed-off-by Michal Suchanek <[email protected]>---
scripts/dtc/pylibfdt/libfdt.i_shipped | 4 ++++ 1 file changed, 4 insertions(+)
Reviewed-by Simon Glass <[email protected]>
Applied to u-boot-dm, thanks!