On Wed, Jun 14, 2017 at 05:52:25PM +0300, Pantelis Antoniou wrote:
This patch enables an overlay to refer to a previous overlay's
labels by performing a merge of symbol information at application
time.
This seems to be doing things the hard way.
You're essentially extending the semantics of overlay application to
add the symbol merging. You've implemented these extended semantics
in libfdt, which is all very well, but that's not the only overlay
application implementation.
It seems to me a better approach would be to change dtc's -@
implementation, so that in /plugin/ mode instead of making a global
__symbols__ node, it puts it into the individual fragments. That way
the existing overlay application semantics will update the __symbols__
node.
--
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