Re: [PATCH v4 1/4] README: Explain how to add a new API function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Sun, Nov 07, 2021 at 03:43:43PM -0700, Simon Glass wrote:
> This is not obvious so add a little note about it.
> 
> Signed-off-by: Simon Glass <sjg@xxxxxxxxxxxx>

This is a good change, regardless of anything else; merged.

> ---
> 
> (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
>  -----
>  

-- 
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Device Tree]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux