aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlistair Delva <adelva@google.com>2024-04-10 14:29:22 -0700
committerAlistair Delva <adelva@google.com>2024-04-10 14:29:24 -0700
commitb52156669a887ea9c9f3daed83e250c78def17c2 (patch)
tree41716510302bd9fc4953fb0c4060f164fed3f47d
parent7386a9ca90e41c44f87c47d4cc1844654c4fa44b (diff)
downloadu-boot-b52156669a887ea9c9f3daed83e250c78def17c2.tar.gz
pylibfdt: Work-around SWIG limitations with flexible arrays
U-Boot has a fork of this pylibfdt file, so it was missing the upstream patch. Change-Id: Ib351a437793e61e0d9b5af2494864d6a4db888fb
-rw-r--r--scripts/dtc/pylibfdt/libfdt.i_shipped3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/dtc/pylibfdt/libfdt.i_shipped b/scripts/dtc/pylibfdt/libfdt.i_shipped
index 56cc5d48f4..5046dbf903 100644
--- a/scripts/dtc/pylibfdt/libfdt.i_shipped
+++ b/scripts/dtc/pylibfdt/libfdt.i_shipped
@@ -996,6 +996,9 @@ class NodeAdder():
%rename(fdt_property) fdt_property_func;
+%immutable fdt_property::data;
+%immutable fdt_node_header::name;
+
/*
* fdt32_t is a big-endian 32-bit value defined to uint32_t in libfdt_env.h
* so use the same type here.