2007-10-10 09:12:12 +02:00
|
|
|
LIB_TESTS_L = get_mem_rsv \
|
|
|
|
root_node find_property subnode_offset path_offset \
|
2007-11-12 23:59:38 +01:00
|
|
|
get_name getprop get_phandle \
|
|
|
|
get_path supernode_atdepth_offset parent_offset \
|
|
|
|
node_offset_by_prop_value node_offset_by_phandle \
|
2007-10-16 05:58:25 +02:00
|
|
|
node_check_compatible node_offset_by_compatible \
|
2008-08-20 08:55:14 +02:00
|
|
|
get_alias \
|
2007-06-26 04:45:51 +02:00
|
|
|
notfound \
|
|
|
|
setprop_inplace nop_property nop_node \
|
|
|
|
sw_tree1 \
|
2008-02-18 06:09:25 +01:00
|
|
|
move_and_save mangle-layout nopulate \
|
2008-01-11 04:55:05 +01:00
|
|
|
open_pack rw_tree1 set_name setprop del_property del_node \
|
dtc: Add support for binary includes.
On Wed, Jun 04, 2008 at 09:26:23AM -0500, Jon Loeliger wrote:
> David Gibson wrote:
>
>> But as I said that can be dealt with in the future without breaking
>> compatibility. Objection withdrawn.
>>
>
> And on that note, I officially implore Scott to
> re-submit his binary include patch!
Scott's original patch does still have some implementation details I
didn't like. So in the interests of saving time, I've addressed some
of those, added a testcase, and and now resubmitting my revised
version of Scott's patch.
dtc: Add support for binary includes.
A property's data can be populated with a file's contents
as follows:
node {
prop = /incbin/("path/to/data");
};
A subset of a file can be included by passing start and size parameters.
For example, to include bytes 8 through 23:
node {
prop = /incbin/("path/to/data", 8, 16);
};
As with /include/, non-absolute paths are looked for in the directory
of the source file that includes them.
Implementation revised, and a testcase added by David Gibson
Signed-off-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Acked-by: Scott Wood <scottwood@freescale.com>
2008-06-11 03:58:39 +02:00
|
|
|
string_escapes references path-references boot-cpuid incbin \
|
2008-02-14 06:50:34 +01:00
|
|
|
dtbs_equal_ordered \
|
2008-08-14 15:28:19 +02:00
|
|
|
add_subnode_with_nops path_offset_aliases
|
2007-06-26 04:45:51 +02:00
|
|
|
LIB_TESTS = $(LIB_TESTS_L:%=$(TESTS_PREFIX)%)
|
|
|
|
|
|
|
|
LIBTREE_TESTS_L = truncated_property
|
|
|
|
LIBTREE_TESTS = $(LIBTREE_TESTS_L:%=$(TESTS_PREFIX)%)
|
|
|
|
|
|
|
|
TESTS = $(LIB_TESTS) $(LIBTREE_TESTS)
|
|
|
|
|
|
|
|
TESTS_TREES_L = test_tree1.dtb
|
|
|
|
TESTS_TREES = $(TESTS_TREES_L:%=$(TESTS_PREFIX)%)
|
|
|
|
|
|
|
|
TESTS_TARGETS = $(TESTS) $(TESTS_TREES)
|
|
|
|
|
2007-11-12 23:52:58 +01:00
|
|
|
TESTS_DEPFILES = $(TESTS:%=%.d) \
|
|
|
|
$(addprefix $(TESTS_PREFIX),testutils.d trees.d dumptrees.d)
|
2007-06-26 04:45:51 +02:00
|
|
|
|
2008-05-15 08:39:12 +02:00
|
|
|
TESTS_CLEANFILES_L = *.output vglog.* vgcore.* *.dtb *.test.dts *.dtsv1 tmp.*
|
2008-10-03 17:49:22 +02:00
|
|
|
TESTS_CLEANFILES_L += dumptrees
|
|
|
|
TESTS_CLEANFILES = $(TESTS) $(TESTS_CLEANFILES_L:%=$(TESTS_PREFIX)%)
|
2007-06-26 04:45:51 +02:00
|
|
|
|
|
|
|
.PHONY: tests
|
|
|
|
tests: $(TESTS) $(TESTS_TREES)
|
|
|
|
|
2009-01-02 14:20:34 +01:00
|
|
|
$(LIB_TESTS): %: $(TESTS_PREFIX)testutils.o $(LIBFDT_archive)
|
2007-06-26 04:45:51 +02:00
|
|
|
|
2009-01-02 14:20:34 +01:00
|
|
|
$(LIBTREE_TESTS): %: $(TESTS_PREFIX)testutils.o $(TESTS_PREFIX)trees.o $(LIBFDT_archive)
|
2007-06-26 04:45:51 +02:00
|
|
|
|
|
|
|
$(TESTS_PREFIX)dumptrees: $(TESTS_PREFIX)trees.o
|
|
|
|
|
|
|
|
$(TESTS_TREES): $(TESTS_PREFIX)dumptrees
|
|
|
|
@$(VECHO) DUMPTREES
|
|
|
|
cd $(TESTS_PREFIX); ./dumptrees >/dev/null
|
|
|
|
|
|
|
|
tests_clean:
|
|
|
|
@$(VECHO) CLEAN "(tests)"
|
|
|
|
rm -f $(STD_CLEANFILES:%=$(TESTS_PREFIX)%)
|
|
|
|
rm -f $(TESTS_CLEANFILES)
|
|
|
|
|
2008-05-15 08:39:12 +02:00
|
|
|
check: tests dtc convert-dtsv0
|
2007-06-26 04:45:51 +02:00
|
|
|
cd $(TESTS_PREFIX); ./run_tests.sh
|
|
|
|
|
2008-05-15 08:39:12 +02:00
|
|
|
checkm: tests dtc convert-dtsv0
|
2007-11-21 01:56:14 +01:00
|
|
|
cd $(TESTS_PREFIX); ./run_tests.sh -m 2>&1 | tee vglog.$$$$
|
|
|
|
|
2008-05-15 08:39:12 +02:00
|
|
|
checkv: tests dtc convert-dtsv0
|
2007-06-26 04:45:51 +02:00
|
|
|
cd $(TESTS_PREFIX); ./run_tests.sh -v
|
|
|
|
|
|
|
|
ifneq ($(DEPTARGETS),)
|
|
|
|
-include $(TESTS_DEPFILES)
|
|
|
|
endif
|
|
|
|
|