This is not obvious so add a little note about it. Signed-off-by: Simon Glass <sjg@xxxxxxxxxxxx> --- (no changes since v1) README | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README b/README index d9bf850..bac1714 100644 --- a/README +++ b/README @@ -71,6 +71,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 ----- -- 2.34.0.rc0.344.g81b53c2807-goog