diff options
author | Michal Suchanek <msuchanek@suse.de> | 2022-10-13 22:43:41 +0200 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2022-10-29 07:36:33 -0600 |
commit | 7d01bb1c5a1daef0187c9ea276bde19a8d0e7fde (patch) | |
tree | b1065d6f1b9f1e19be405403e7b00a2e1929651b /scripts | |
parent | c977b184350479b8c43a0e002eaf2b13b510ba4f (diff) | |
download | u-boot-7d01bb1c5a1daef0187c9ea276bde19a8d0e7fde.zip u-boot-7d01bb1c5a1daef0187c9ea276bde19a8d0e7fde.tar.gz u-boot-7d01bb1c5a1daef0187c9ea276bde19a8d0e7fde.tar.bz2 |
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.
Link: https://github.com/swig/swig/pull/2277
Signed-off-by: Michal Suchanek <msuchanek@suse.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/dtc/pylibfdt/libfdt.i_shipped | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/dtc/pylibfdt/libfdt.i_shipped b/scripts/dtc/pylibfdt/libfdt.i_shipped index 27c29ea..56cc5d4 100644 --- a/scripts/dtc/pylibfdt/libfdt.i_shipped +++ b/scripts/dtc/pylibfdt/libfdt.i_shipped @@ -7,6 +7,10 @@ %module libfdt +%begin %{ +#define PY_SSIZE_T_CLEAN +%} + %include <stdint.i> %{ |