mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [RFC Patch 0/3] BLSpec device-tree fallback handling
@ 2022-03-04  6:24 Rouven Czerwinski
  2022-03-04  6:24 ` [RFC Patch 1/3] blspec: create list of entries, iterate over list Rouven Czerwinski
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Rouven Czerwinski @ 2022-03-04  6:24 UTC (permalink / raw)
  To: barebox; +Cc: Rouven Czerwinski

Barebox contains code to select the correct bootloader specification
entry by looking at the devicetree option, loading the tree and
comparing that trees first compatible with the compatible of the
internal device tree.

This series implements the comparison to not only use the first
compatible defined in the tree, but latter compatibles as well.
This is useful if compatibles are adjusted, but new bootloaders need to
be able to boot bootloader spec entries with the old compatible set.
In this case the barebox board can set the following compatibles:

  compatible = "newcomp", "oldcomp",… ;

And call blspec_set_compatible_depth(2) in the board code to indicate
that not only the first compatible should be compared, but oldcomp
should be compared as well.

Rouven Czerwinski (3):
  blspec: create list of entries, iterate over list
  blspec: take compatible name as argument
  blspec: allow setting compatible depth

 common/blspec.c  | 125 +++++++++++++++++++++++++++++++++++------------
 include/blspec.h |   2 +-
 2 files changed, 94 insertions(+), 33 deletions(-)

-- 
2.35.1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-03-08  8:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-04  6:24 [RFC Patch 0/3] BLSpec device-tree fallback handling Rouven Czerwinski
2022-03-04  6:24 ` [RFC Patch 1/3] blspec: create list of entries, iterate over list Rouven Czerwinski
2022-03-04  6:24 ` [RFC Patch 2/3] blspec: take compatible name as argument Rouven Czerwinski
2022-03-04  6:24 ` [RFC Patch 3/3] blspec: allow setting compatible depth Rouven Czerwinski
2022-03-08  8:11   ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox