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>
This commit is contained in:
Simon Glass 2021-11-07 15:43:43 -07:00 committed by David Gibson
parent c0c2e115f8
commit ca72944343

9
README
View file

@ -77,6 +77,15 @@ More work remains to support all of libfdt, including access to numeric
values. 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 Tests
----- -----