diff options
author | Simon Glass <sjg@chromium.org> | 2017-08-14 13:07:28 -0600 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2017-08-15 13:47:24 +1000 |
commit | ab78860f09f5817d5ad7fe3d55d4dad861b75c24 (patch) | |
tree | 2391ce5979fd9cf800265061fa1181b518d7d085 | |
parent | 36f511fb1113a8a70defb21b7036882f122aa844 (diff) | |
download | dtc-ab78860f09f5817d5ad7fe3d55d4dad861b75c24.zip dtc-ab78860f09f5817d5ad7fe3d55d4dad861b75c24.tar.gz dtc-ab78860f09f5817d5ad7fe3d55d4dad861b75c24.tar.bz2 |
pylibfdt: Add stdint include to fix uint32_t
Some types used by libfdt.h are not understood the Python module since
they are defined outside it. An example is an attempt to do this:
import libfdt
result = libfdt.fdt_node_offset_by_phandle(fdt, phandle)
This results in:
TypeError: in method 'fdt_node_offset_by_phandle', argument 2 of
type 'uint32_t'
Include the standard integer header file to fix this.
Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-rw-r--r-- | pylibfdt/libfdt.i | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pylibfdt/libfdt.i b/pylibfdt/libfdt.i index cd1c6a9..c7b79ec 100644 --- a/pylibfdt/libfdt.i +++ b/pylibfdt/libfdt.i @@ -52,6 +52,8 @@ %module libfdt +%include <stdint.i> + %{ #define SWIG_FILE_WITH_INIT #include "libfdt.h" |