mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH v2 0/6] commands: implement of_compatible command
@ 2023-05-19 10:01 Ahmad Fatoum
  2023-05-19 10:01 ` [PATCH v2 1/6] treewide: don't mix goto labels and statements on same line Ahmad Fatoum
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Ahmad Fatoum @ 2023-05-19 10:01 UTC (permalink / raw)
  To: barebox

This enables scripts to do:

  if of_compatible -k radxa,rock3a radxa,rock5a ; then
    of_property -df mmc0 sd-uhs-sdr104
  fi

instead of checking $global.model. See individual patches for changelog.

Ahmad Fatoum (6):
  treewide: don't mix goto labels and statements on same line
  treewide: drop null pointer checks around of_delete_node
  commands: of_property: use new of_read_file
  commands: of_dump: remove duplicate error message
  commands: of_dump: use of_dup instead of flattening/unflattening
  commands: implement of_compatible command

 commands/Kconfig                 |  15 ++++
 commands/Makefile                |   1 +
 commands/of_compatible.c         | 124 +++++++++++++++++++++++++++++++
 commands/of_dump.c               |  28 ++-----
 commands/of_property.c           |  16 +---
 common/blspec.c                  |   3 +-
 common/state/state.c             |  15 ++--
 common/state/state_variables.c   |   9 ++-
 drivers/usb/gadget/udc/fsl_udc.c |   3 +-
 9 files changed, 168 insertions(+), 46 deletions(-)
 create mode 100644 commands/of_compatible.c

-- 
2.39.2




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

end of thread, other threads:[~2023-05-25  7:38 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-19 10:01 [PATCH v2 0/6] commands: implement of_compatible command Ahmad Fatoum
2023-05-19 10:01 ` [PATCH v2 1/6] treewide: don't mix goto labels and statements on same line Ahmad Fatoum
2023-05-19 10:01 ` [PATCH v2 2/6] treewide: drop null pointer checks around of_delete_node Ahmad Fatoum
2023-05-19 10:01 ` [PATCH v2 3/6] commands: of_property: use new of_read_file Ahmad Fatoum
2023-05-19 10:01 ` [PATCH v2 4/6] commands: of_dump: remove duplicate error message Ahmad Fatoum
2023-05-19 10:01 ` [PATCH v2 5/6] commands: of_dump: use of_dup instead of flattening/unflattening Ahmad Fatoum
2023-05-19 10:01 ` [PATCH v2 6/6] commands: implement of_compatible command Ahmad Fatoum
2023-05-25  7:36 ` [PATCH v2 0/6] " Sascha Hauer

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