mirror of
https://github.com/dgibson/dtc.git
synced 2025-10-14 00:37:41 -04:00
At present, dtc makes a lot of semantic checks on the device tree by default, and will refuse to produce output if they fail. This means people tend to need -f to force output despite failing semantic checks rather a lot. This patch splits the device tree checks into structural checks (no bad or duplicate names or phandles) and semantic checks (everything else). By default, only the structural checks are performed, and are fatal. -f will force output even with structural errors (using this in -Idts mode would essentially always be a bad idea, but it might be useful in -Idtb mode for examining a malformed dtb). Semantic checks are only performed if the new -c command line option is supplied, and are always warnings only. Semantic checks will never be performed on a tree with structural errors. This patch is only a stopgap before implementing proper fine-grained error/warning handling, but it should at least get rid of the far-too-frequent need for -f for the time being. This patch removes the -f from the dtc testcases now that it's no longer necessary. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> |
||
---|---|---|
.. | ||
base01.asm | ||
base01.cmd | ||
base01.dts | ||
base01.stderr | ||
del_node.c | ||
del_property.c | ||
dtc.sh | ||
dumptrees.c | ||
empty.dts | ||
escapes.dts | ||
find_property.c | ||
get_mem_rsv.c | ||
get_name.c | ||
get_path.c | ||
getprop.c | ||
label01.dts | ||
Makefile.tests | ||
move_and_save.c | ||
node_check_compatible.c | ||
node_offset_by_compatible.c | ||
node_offset_by_prop_value.c | ||
nop_node.c | ||
nop_property.c | ||
notfound.c | ||
open_pack.c | ||
parent_offset.c | ||
path_offset.c | ||
root_node.c | ||
run_tests.sh | ||
rw_tree1.c | ||
setprop.c | ||
setprop_inplace.c | ||
string_escapes.c | ||
subnode_offset.c | ||
supernode_atdepth_offset.c | ||
sw_tree1.c | ||
test01.asm | ||
test01.dts | ||
test01.stderr | ||
test_tree1.dts | ||
testdata.h | ||
tests.h | ||
testutils.c | ||
trees.S | ||
truncated_property.c |