Skip to content

Commit b519051

Browse files
committed
of: Move testcase FDT data into drivers/of
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 <[email protected]>
1 parent 215a14c commit b519051

File tree

6 files changed

+5
-4
lines changed

6 files changed

+5
-4
lines changed

arch/arm/boot/dts/testcases/tests.dtsi

Lines changed: 0 additions & 2 deletions
This file was deleted.

arch/arm/boot/dts/versatile-pb.dts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/include/ "versatile-ab.dts"
1+
#include <versatile-ab.dts>
22

33
/ {
44
model = "ARM Versatile PB";
@@ -47,4 +47,4 @@
4747
};
4848
};
4949

50-
/include/ "testcases/tests.dtsi"
50+
#include <testcases.dtsi>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#include "tests-phandle.dtsi"
2+
#include "tests-interrupts.dtsi"

scripts/Makefile.lib

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ ld_flags = $(LDFLAGS) $(ldflags-y)
152152
dtc_cpp_flags = -Wp,-MD,$(depfile).pre.tmp -nostdinc \
153153
-I$(srctree)/arch/$(SRCARCH)/boot/dts \
154154
-I$(srctree)/arch/$(SRCARCH)/boot/dts/include \
155+
-I$(srctree)/drivers/of/testcase-data \
155156
-undef -D__DTS__
156157

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

0 commit comments

Comments
 (0)