]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[dt] Allow for creation of standalone devices
authorMichael Brown <mcb30@ipxe.org>
Wed, 11 Jun 2025 11:51:56 +0000 (12:51 +0100)
committerMichael Brown <mcb30@ipxe.org>
Wed, 11 Jun 2025 12:02:20 +0000 (13:02 +0100)
commitc4a3d438e642e8692e6a94e7d4db75d75744e73f
tree54f216ad2468de4416251f827ed10f003f8e6714
parentb5fb7353fa3856cee7e0a6760c2341ca617d6ef4
[dt] Allow for creation of standalone devices

We will want to be able to create the console device as early as
possible.  Refactor devicetree probing to remove the assumption that a
devicetree device must have a devicetree parent, and expose functions
to allow a standalone device to be created given only the offset of a
node within the tree.

The full device path is no longer trivial to construct with this
assumption removed.  The full path is currently used only for debug
messages.  Remove the stored full path, use just the node name for
debug messages, and ensure that the topology information previously
visible in the full path is reconstructible from the combined debug
output if needed.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/drivers/bus/devtree.c
src/include/ipxe/devtree.h