From: Jerry Van Baren <gerald.vanbaren@smiths-aerospace•com>
To: linuxppc-dev@ozlabs•org, David Gibson <david@gibson•dropbear.id.au>
Subject: [PATCH 2/2] libfdt: Use Jon's fdc for testing
Date: Mon, 19 Feb 2007 13:01:12 -0500 [thread overview]
Message-ID: <45D9E5E8.8080200@smiths-aerospace.com> (raw)
Use jdl's flattened device tree compiler (dtc) to generate the test tree.
Signed-off-by: Jerry Van Baren <vanbaren@cideas•com>
---
tests/Makefile | 11 ++++++++---
tests/test_tree1.dts | 23 +++++++++++++++++++++++
2 files changed, 31 insertions(+), 3 deletions(-)
diff --git a/tests/Makefile b/tests/Makefile
index 533c98e..7f7ed9b 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -41,15 +41,20 @@ all: $(TESTS) $(TREES)
@$(VECHO) LD $@
$(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS)
+%.dtb: %.dts
+ @$(VECHO) NOTE: It is normal to have errors and warnings here.
+ dtc -b 0 -f -O dtb -V 16 $^ > $@
+
+
$(LIB_TESTS): %: testutils.o $(LIBFDT)
$(LIBTREE_TESTS): %: testutils.o trees.o $(LIBFDT)
dumptrees: %: trees.o
-$(TREES): dumptrees
- @$(VECHO) DUMPTREES
- ./dumptrees >/dev/null
+#$(TREES): dumptrees
+# @$(VECHO) DUMPTREES
+# ./dumptrees >/dev/null
clean:
@$(VECHO) CLEAN "(tests)"
diff --git a/tests/test_tree1.dts b/tests/test_tree1.dts
new file mode 100644
index 0000000..ab62772
--- /dev/null
+++ b/tests/test_tree1.dts
@@ -0,0 +1,23 @@
+/*
+ * libfdt test tree source
+ */
+
+/ {
+ /*
+ * Test nodes and values...
+ */
+ prop_int = <deadbeef>;
+ prop_str = "hello world";
+ subnode1 {
+ prop_int = <deadbeef>;
+ subsubnode {
+ prop_int = <deadbeef>;
+ };
+ };
+ subnode2 {
+ prop_int = <abcd1234>;
+ subsubnode {
+ prop_int = <abcd1234>;
+ };
+ };
+};
--
1.4.4.4
______________________________________________________________________
CAUTION: This message was sent via the Public Internet and its
authenticity cannot be guaranteed.
______________________________________________________
reply other threads:[~2007-02-19 18:01 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=45D9E5E8.8080200@smiths-aerospace.com \
--to=gerald.vanbaren@smiths-aerospace$(echo .)com \
--cc=david@gibson$(echo .)dropbear.id.au \
--cc=linuxppc-dev@ozlabs$(echo .)org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox