From ca7294434309930076ff99ff4f0c817499f50f5a Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Sun, 7 Nov 2021 15:43:43 -0700 Subject: [PATCH] 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 Message-Id: <20211107224346.3181320-2-sjg@chromium.org> Signed-off-by: David Gibson --- README | 9 +++++++++ 1 file changed, 9 insertions(+) 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 -----