mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 00/18] boot: improve cdev alias and blspec support
@ 2025-04-14  6:31 Ahmad Fatoum
  2025-04-14  6:31 ` [PATCH 01/18] cdev: make cdev_find_child_by_gpt_typeuuid external Ahmad Fatoum
                   ` (19 more replies)
  0 siblings, 20 replies; 33+ messages in thread
From: Ahmad Fatoum @ 2025-04-14  6:31 UTC (permalink / raw)
  To: barebox

Building on past top of past bootscan and cdev alias infrastructure in
next, enable the following:

   - Favoring entries in GPT XBOOTLDR partition and EFI system
     partitions, like we already do for MBR XBOOTLDR partition

   - Allow state backend and other DT bindings to point at a
     barebox,bootsource node to allow same state DT description
     to work across different boot media

Ahmad Fatoum (18):
  cdev: make cdev_find_child_by_gpt_typeuuid external
  cdev: constify cdev_find_child_by_gpt_typeuuid's guid_t pointer
    argument
  partition: efi: respect DPS_TYPE_FLAG_NO_AUTO flag
  blspec: iterate over all XBOOTLDR partitions
  blspec: support GPT XBOOTLDR partition
  blspec: collect bootloader spec entries from ESP
  cdev: alias: add support for partition links
  cdev: do not dereference partname for non-partitions
  cdev: use common cdev_free helper internally
  cdev: implement devfs_create_link in terms of devfs_create
  misc: storage-by-uuid: consider only first diskuuid match
  misc: storage-by-uuid: prepare for generalizing to different aliases
  misc: storage-by-uuid: rename to storage-by-alias
  misc: storage-by-alias: switch over to using cdev aliases
  misc: storage-by-alias: add support barebox,bootsource
  misc: storage-by-alias: register as link to main cdev
  cdev: constify cdev_readlink argument
  cdev: follow links in cdev_find_child_by_gpt_typeuuid

 commands/boot.c                 |   1 +
 common/blspec.c                 |  75 +++++++---
 common/bootscan.c               |  11 +-
 common/cdev-alias.c             |  53 ++++---
 drivers/misc/Kconfig            |  21 ++-
 drivers/misc/Makefile           |   2 +-
 drivers/misc/storage-by-alias.c | 236 ++++++++++++++++++++++++++++++++
 drivers/misc/storage-by-uuid.c  | 202 ---------------------------
 fs/devfs-core.c                 | 104 ++++++++++----
 include/block.h                 |   1 +
 include/bootscan.h              |   5 +-
 include/driver.h                |  20 +--
 12 files changed, 440 insertions(+), 291 deletions(-)
 create mode 100644 drivers/misc/storage-by-alias.c
 delete mode 100644 drivers/misc/storage-by-uuid.c

-- 
2.39.5




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

end of thread, other threads:[~2025-04-14 13:30 UTC | newest]

Thread overview: 33+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-04-14  6:31 [PATCH 00/18] boot: improve cdev alias and blspec support Ahmad Fatoum
2025-04-14  6:31 ` [PATCH 01/18] cdev: make cdev_find_child_by_gpt_typeuuid external Ahmad Fatoum
2025-04-14  6:31 ` [PATCH 02/18] cdev: constify cdev_find_child_by_gpt_typeuuid's guid_t pointer argument Ahmad Fatoum
2025-04-14  6:31 ` [PATCH 03/18] partition: efi: respect DPS_TYPE_FLAG_NO_AUTO flag Ahmad Fatoum
2025-04-14 11:38   ` Sascha Hauer
2025-04-14  6:31 ` [PATCH 04/18] blspec: iterate over all XBOOTLDR partitions Ahmad Fatoum
2025-04-14  6:31 ` [PATCH 05/18] blspec: support GPT XBOOTLDR partition Ahmad Fatoum
2025-04-14  6:31 ` [PATCH 06/18] blspec: collect bootloader spec entries from ESP Ahmad Fatoum
2025-04-14 10:14   ` Marco Felsch
2025-04-14 10:19     ` Ahmad Fatoum
2025-04-14 10:41       ` Marco Felsch
2025-04-14  6:31 ` [PATCH 07/18] cdev: alias: add support for partition links Ahmad Fatoum
2025-04-14 10:17   ` Marco Felsch
2025-04-14 10:20     ` Ahmad Fatoum
2025-04-14 10:49       ` Marco Felsch
2025-04-14 13:28         ` Sascha Hauer
2025-04-14  6:31 ` [PATCH 08/18] cdev: do not dereference partname for non-partitions Ahmad Fatoum
2025-04-14  6:31 ` [PATCH 09/18] cdev: use common cdev_free helper internally Ahmad Fatoum
2025-04-14  6:31 ` [PATCH 10/18] cdev: implement devfs_create_link in terms of devfs_create Ahmad Fatoum
2025-04-14  6:31 ` [PATCH 11/18] misc: storage-by-uuid: consider only first diskuuid match Ahmad Fatoum
2025-04-14 10:24   ` Marco Felsch
2025-04-14 10:31     ` Ahmad Fatoum
2025-04-14  6:31 ` [PATCH 12/18] misc: storage-by-uuid: prepare for generalizing to different aliases Ahmad Fatoum
2025-04-14 10:31   ` Marco Felsch
2025-04-14 10:35     ` Ahmad Fatoum
2025-04-14  6:31 ` [PATCH 13/18] misc: storage-by-uuid: rename to storage-by-alias Ahmad Fatoum
2025-04-14  6:31 ` [PATCH 14/18] misc: storage-by-alias: switch over to using cdev aliases Ahmad Fatoum
2025-04-14  6:31 ` [PATCH 15/18] misc: storage-by-alias: add support barebox,bootsource Ahmad Fatoum
2025-04-14  6:31 ` [PATCH 16/18] misc: storage-by-alias: register as link to main cdev Ahmad Fatoum
2025-04-14  6:31 ` [PATCH 17/18] cdev: constify cdev_readlink argument Ahmad Fatoum
2025-04-14  6:31 ` [PATCH 18/18] cdev: follow links in cdev_find_child_by_gpt_typeuuid Ahmad Fatoum
2025-04-14 10:51 ` [PATCH 00/18] boot: improve cdev alias and blspec support Marco Felsch
2025-04-14 13:25 ` Sascha Hauer

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