Mirror of DTC
Find a file
Milton Miller 6a99b13132 dtc: implement labels on property data
Extend the parser grammer to allow labels before or after any
property data (string, cell list, or byte list), and any
byte or cell within the property data.

Store the labels using the same linked list structure as node
references, but using a parallel list.

When writing assembly output emit global labels as offsets from
the start of the definition of the data.

Note that the alignment for a cell list is done as part of the
opening < delimiter, not the = or , before it.  To label a cell
after a string or byte list put the label inside the cell list.

For example,
	prop = zero: [ aa bb ], two: < four: 1234 > eight: ;
will produce labels with offsets 0, 2, 4, and 8 bytes from
the beginning of the data for property prop.

Signed-off-by: Milton Miller <miltonm@bga.com>
2007-07-07 10:13:31 -05:00
Documentation Add paper on the flattened tree and dtc presented at linux.conf.au 2006 by 2006-01-31 16:17:59 +11:00
libfdt dtc: Improve and better integrate dtc and libfdt Makefiles 2007-06-25 21:50:14 -05:00
tests dtc: Improve and better integrate dtc and libfdt Makefiles 2007-06-25 21:50:14 -05:00
.gitignore Merge libfdt into dtc. 2007-06-14 15:05:55 +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: implement labels on property data 2007-07-07 10:13:31 -05:00
dtc-lexer.l dtc: allow a label: in any dts context 2007-07-07 10:10:12 -05:00
dtc-parser.y dtc: implement labels on property data 2007-07-07 10:13:31 -05:00
dtc.c Add -o <output file> to the usage message. 2007-04-19 17:17:51 -05:00
dtc.h dtc: implement labels on property data 2007-07-07 10:13:31 -05:00
flat_dt.h Improve options, #define default version. 2007-03-19 08:54:40 -05:00
flattree.c dtc: implement labels on property data 2007-07-07 10:13:31 -05:00
fstree.c Rework tracking of reserve entries during processing. This is initial work 2005-10-24 18:18:38 +10:00
ftdump.c ftdump missing be32_to_cpu() on size cell. 2007-03-22 08:30:52 -05:00
GPL dtc: Remove redundant copy of the GPL 2007-06-25 21:43:11 -05:00
livetree.c Remove bogus errors from check_chosen. 2007-03-26 08:34:23 -05:00
Makefile dtc: Add install makefile target 2007-07-02 08:44:37 -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
TODO Update TODO 2005-10-19 16:29:52 +10:00
treesource.c DTC: Add support for a C-like #include "file" mechanism. 2007-03-26 08:36:07 -05:00