[Crosstoolchain-logs] [device-tree-compiler] 89/357: Remove bogus errors from check_chosen.
Hector Oron
zumbi at moszumanska.debian.org
Thu Dec 8 17:05:53 UTC 2016
This is an automated email from the git hooks/post-receive script.
zumbi pushed a commit to branch upstream/1.3.x
in repository device-tree-compiler.
commit b29597d9a343761f768a9d78a63f1c09e71b43d2
Author: Scott Wood <scottwood at freescale.com>
Date: Thu Mar 22 11:11:09 2007 -0500
Remove bogus errors from check_chosen.
It is not an error for /chosen (or any of its children) to be missing.
It is not a requirement that the output of dtc be a complete, valid
device tree, as it may be intended that the dtb be passed through boot
code that will complete it. Thus, do not complain.
Signed-off-by: Scott Wood <scottwood at freescale.com>
Acked-by: David Gibson <david at gibson.dropbear.id.au>
---
livetree.c | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/livetree.c b/livetree.c
index 45642dc..ce73f50 100644
--- a/livetree.c
+++ b/livetree.c
@@ -588,13 +588,8 @@ static int check_chosen(struct node *root)
int ok = 1;
chosen = get_subnode(root, "chosen");
- if (! chosen) {
- ERRMSG("Missing /chosen node\n");
- return 0;
- }
-
- CHECK_HAVE_WARN_STRING(chosen, "bootargs");
- CHECK_HAVE_WARN_STRING(chosen, "linux,stdout-path");
+ if (!chosen)
+ return ok;
/* give warning for obsolete interrupt-controller property */
do {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/crosstoolchain/device-tree-compiler.git
More information about the Crosstoolchain-logs
mailing list