Mirror of DTC
Find a file
David Gibson 874ff219af libfdt: Consistently use big-endian property data in testcases
Flat device trees always have integers in their structure stored as
big-endian.  From this point of view, property values are
bags-of-bytes and any endianness is up to users of the device tree to
determine.

The libfdt testcases which use properties with integer values,
currently use native endian format for the architecture on which the
testcases are run.  This works ok for now, since both the creation and
checking of the example device trees happen in the same endianness.

This will become a problem, however, for tests of dtc which we want to
add in the nearish future.  dtc always uses big-endian format for
'cell' format data in properties; as it needs to in order to produce
powerpc-usable device trees when hosted on a little-endian
architecture.

This patch, therefore, changes the libfdt testsuite to use big-endian
format always for integer format data, in order to interoperate sanely
with future dtc testcases.  This also means that the example trees
created by the testsuite should now be byte-for-byte identical
regardless of dtc and libfdt's host platform, which is arguably an
advantage.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2007-09-17 14:18:19 -05:00
Documentation Add initial Device Tree Compiler manual 2007-08-09 15:58:47 -05:00
libfdt libfdt: Add fdt_node_offset_by_prop_value() 2007-09-17 13:18:09 -05:00
scripts Add DTC release version information. 2007-07-07 13:52:25 -05:00
tests libfdt: Consistently use big-endian property data in testcases 2007-09-17 14:18:19 -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: store labels in ascending order 2007-07-07 10:14:12 -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 dtc: Optimise by default, fix warnings thus uncovered 2007-08-31 08:34:18 -05:00
dtc.h dtc: Optimise by default, fix warnings thus uncovered 2007-08-31 08:34:18 -05:00
flat_dt.h Improve options, #define default version. 2007-03-19 08:54:40 -05:00
flattree.c dtc: Assume properties preced subnodes in the flattened tree 2007-09-05 13:17:14 -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: Optimise by default, fix warnings thus uncovered 2007-08-31 08:34:18 -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