diff options
author | Andrew Davis <afd@ti.com> | 2025-08-22 12:10:38 -0500 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2025-08-25 11:39:08 +1000 |
commit | 9197f1ccd95c9475006677aa97bf39727c1e8aa5 (patch) | |
tree | c7c2f8e8ffd5ed5c6ec58843212e04343a2f253e | |
parent | e1284ee5dc20f94097bc6424ede9c3e433dba77d (diff) | |
download | dtc-9197f1ccd95c9475006677aa97bf39727c1e8aa5.zip dtc-9197f1ccd95c9475006677aa97bf39727c1e8aa5.tar.gz dtc-9197f1ccd95c9475006677aa97bf39727c1e8aa5.tar.bz2 |
The path given as an alias inside an overlay can be a path to a node
in the base DT. The path check searches only the overlay as that is
the only tree available leading to false check failures.
Skip this check when checking an overlay.
Signed-off-by: Andrew Davis <afd@ti.com>
Message-ID: <20250822171038.190122-1-afd@ti.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-rw-r--r-- | checks.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -718,11 +718,14 @@ static void check_alias_paths(struct check *c, struct dt_info *dti, continue; } - if (!prop->val.val || !get_node_by_path(dti->dt, prop->val.val)) { + /* This check does not work for overlays with external paths */ + if (!(dti->dtsflags & DTSF_PLUGIN) && + (!prop->val.val || !get_node_by_path(dti->dt, prop->val.val))) { FAIL_PROP(c, dti, node, prop, "aliases property is not a valid node (%s)", prop->val.val); continue; } + if (strspn(prop->name, LOWERCASE DIGITS "-") != strlen(prop->name)) FAIL(c, dti, node, "aliases property name must include only lowercase and '-'"); } |