mirror of
https://github.com/dgibson/dtc.git
synced 2025-12-09 05:05:20 -05:00
dtc: Convert "name" property checking to new infrastructure
This patch removes the old-style checking code for the "name" property - i.e. verifying that the "name" property, if present, matches the node name. It replaces it with a pair of more-or-less equivalent checks in the new checking framework. This also promotes this check to a "structural" check, or at least an error-rather-than-warning test, since the structural/semantic distinction doesn't really apply in the new framework. A testcase for the check is also added. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
d06cda32f6
commit
459c955cca
3 changed files with 47 additions and 15 deletions
|
|
@ -162,6 +162,7 @@ dtc_tests () {
|
|||
run_test dtc-checkfails.sh -I dts -O dtb minusone-phandle.dts
|
||||
run_test dtc-checkfails.sh -I dts -O dtb nonexist-node-ref.dts
|
||||
run_test dtc-checkfails.sh -I dts -O dtb nonexist-label-ref.dts
|
||||
run_test dtc-checkfails.sh -I dts -O dtb bad-name-property.dts
|
||||
}
|
||||
|
||||
while getopts "vt:m" ARG ; do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue