diff options
author | Julius Werner <jwerner@chromium.org> | 2019-05-03 18:29:28 -0700 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2019-06-04 11:23:48 +0000 |
commit | fbec63d15f761e01c934078570acbef779e707ba (patch) | |
tree | 64adbebdfed8205b3dfe7b12d490f32759a830b2 /Documentation/lib/payloads/index.md | |
parent | f36d53c6539ec9e221a5005f00a56960f791a81f (diff) |
device_tree: Have absolute paths start with '/'
Currently DT paths are *not* expected to start with '/'. This is not
what the spec says (see Devicetree Specification v0.2, 2.2.3 Path Names)
and also not what is done by Linux.
Change dt_find_node_by_path() to expect paths to start with '/' and add
a leading '/' to all DT path strings. Besides the compatibility with the
spec this change is also needed to support aliases in the future.
This patch was adapted from depthcharge's http://crosreview.com/1252770
Change-Id: Ibdf59ccbb4ead38c6193b630642fd1f1e847dd89
Signed-off-by: Julius Werner <jwerner@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/32865
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'Documentation/lib/payloads/index.md')
0 files changed, 0 insertions, 0 deletions