]> git.ipfire.org Git - people/ms/u-boot.git/commit
dtoc: make ScanTree recurse into subnodes
authorPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Wed, 22 Feb 2017 18:06:04 +0000 (19:06 +0100)
committerStefan Roese <sr@denx.de>
Wed, 29 Mar 2017 05:38:08 +0000 (07:38 +0200)
commit524dd45e0d10ece227457ec88517f58000c2a24b
tree25977d0f0a3879b5a145c642748dce7e54b3e8b4
parent1fb6921e1978d322ede538e5423faf2c27ece9c5
dtoc: make ScanTree recurse into subnodes

Previously, dtoc could only process the top-level nodes which led to
device nodes in hierarchical trees to be ignored. E.g. the mmc0 node
in the following example would be ignored, as only the soc node was
processed:

  / {
soc {
mmc0 {
/* ... */
};
};
  };

This introduces a recursive helper method ScanNode, which is used by
ScanTree to recursively parse the entire tree hierarchy.

Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
tools/dtoc/dtoc.py