Skip to content

Commit

Permalink
of: Move testcase FDT data into drivers/of
Browse files Browse the repository at this point in the history
The testcase data is usable by any platform. This patch moves it into
the drivers/of directory so it can be included by any architecture.

Using the test cases requires manually adding #include <testcases.dtsi>
to the end of the boards .dtsi file and enabling CONFIG_OF_SELFTEST. Not
pretty though. A useful project would be to make the testcase code
easier to execute.

Signed-off-by: Grant Likely <grant.likely@linaro.org>
  • Loading branch information
Grant Likely committed Feb 20, 2014
1 parent 215a14c commit b519051
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 4 deletions.
2 changes: 0 additions & 2 deletions arch/arm/boot/dts/testcases/tests.dtsi

This file was deleted.

4 changes: 2 additions & 2 deletions arch/arm/boot/dts/versatile-pb.dts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/include/ "versatile-ab.dts"
#include <versatile-ab.dts>

/ {
model = "ARM Versatile PB";
Expand Down Expand Up @@ -47,4 +47,4 @@
};
};

/include/ "testcases/tests.dtsi"
#include <testcases.dtsi>
2 changes: 2 additions & 0 deletions drivers/of/testcase-data/testcases.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#include "tests-phandle.dtsi"
#include "tests-interrupts.dtsi"
File renamed without changes.
1 change: 1 addition & 0 deletions scripts/Makefile.lib
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ ld_flags = $(LDFLAGS) $(ldflags-y)
dtc_cpp_flags = -Wp,-MD,$(depfile).pre.tmp -nostdinc \
-I$(srctree)/arch/$(SRCARCH)/boot/dts \
-I$(srctree)/arch/$(SRCARCH)/boot/dts/include \
-I$(srctree)/drivers/of/testcase-data \
-undef -D__DTS__

# Finds the multi-part object the current object will be linked into
Expand Down

0 comments on commit b519051

Please sign in to comment.