aboutsummaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-11-07 15:43:43 -0700
committerDavid Gibson <david@gibson.dropbear.id.au>2021-12-28 20:14:05 +1100
commitca7294434309930076ff99ff4f0c817499f50f5a (patch)
tree3140092ffacdbb9d9e03c0ed20616dbd93e7edaf /README
parentc0c2e115f82ed3bc5f9d3f9e5380f0f7e81a1c21 (diff)
downloaddtc-ca7294434309930076ff99ff4f0c817499f50f5a.zip
dtc-ca7294434309930076ff99ff4f0c817499f50f5a.tar.gz
dtc-ca7294434309930076ff99ff4f0c817499f50f5a.tar.bz2
README: Explain how to add a new API function
This is not obvious so add a little note about it. Signed-off-by: Simon Glass <sjg@chromium.org> Message-Id: <20211107224346.3181320-2-sjg@chromium.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'README')
-rw-r--r--README9
1 files changed, 9 insertions, 0 deletions
diff --git a/README b/README
index 5f5655d..a48312a 100644
--- a/README
+++ b/README
@@ -77,6 +77,15 @@ More work remains to support all of libfdt, including access to numeric
values.
+Adding a new function to libfdt.h
+---------------------------------
+
+The shared library uses libfdt/version.lds to list the exported functions, so
+add your new function there. Check that your function works with pylibfdt. If
+it cannot be supported, put the declaration in libfdt.h behind #ifndef SWIG so
+that swig ignores it.
+
+
Tests
-----