Go to file
David Gibson 169f0b183d dtc: Disable semantic checks by default
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>
2007-10-22 09:53:15 -05:00
Documentation dtc: Whitespace cleanup 2007-09-18 09:43:26 -05:00
libfdt libfdt: Add missing RW_CHECK_HEADER to fdt_del_node() 2007-10-22 09:52:18 -05:00
scripts Add DTC release version information. 2007-07-07 13:52:25 -05:00
tests dtc: Disable semantic checks by default 2007-10-22 09:53:15 -05:00
.gitignore Merge libfdt into dtc. 2007-06-14 15:05:55 +10:00
GPL dtc: Remove redundant copy of the GPL 2007-06-25 21:43:11 -05:00
Makefile Restore warning message about bison expected output. 2007-10-16 07:36:30 -05:00
Makefile.dtc dtc: Refactor Makefiles 2007-10-15 08:28:07 -05:00
TODO Update TODO 2005-10-19 16:29:52 +10:00
comment-test.dts Initial label support. Also switch to glr-parser mode and get rid of 2005-06-16 14:36:37 +10:00
data.c dtc: Improve support for string escapes 2007-10-16 08:10:15 -05:00
dtc-lexer.l dtc: Improve support for string escapes 2007-10-16 08:10:15 -05:00
dtc-parser.y dtc: Whitespace cleanup 2007-09-18 09:43:26 -05:00
dtc.c dtc: Disable semantic checks by default 2007-10-22 09:53:15 -05:00
dtc.h dtc: Disable semantic checks by default 2007-10-22 09:53:15 -05:00
flattree.c dtc: Use libfdt/fdt.h instead of flat_dt.h 2007-09-27 08:21:18 -05:00
fstree.c dtc: Whitespace cleanup 2007-09-18 09:43:26 -05:00
ftdump.c dtc: Use libfdt/fdt.h instead of flat_dt.h 2007-09-27 08:21:18 -05:00
livetree.c dtc: Disable semantic checks by default 2007-10-22 09:53:15 -05:00
srcpos.c DTC: Add support for a C-like #include "file" mechanism. 2007-03-26 08:36:07 -05:00
srcpos.h dtc: move declaration of yyerror 2007-07-07 10:07:27 -05:00
treesource.c dtc: Improve -Odts output 2007-10-17 07:14:38 -05:00