diff options
author | Simon Glass <sjg@chromium.org> | 2019-08-24 07:22:44 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2019-10-15 08:40:02 -0600 |
commit | 8dbb7444ebaa499b753269c88cdd76f12f0fa875 (patch) | |
tree | a0686156cbdc102690cc019b5c7c5b3057a3a4cb /tools/binman/entry.py | |
parent | b986b3bb192f772a7c81c69aafe59094df7d4b81 (diff) | |
download | u-boot-8dbb7444ebaa499b753269c88cdd76f12f0fa875.zip u-boot-8dbb7444ebaa499b753269c88cdd76f12f0fa875.tar.gz u-boot-8dbb7444ebaa499b753269c88cdd76f12f0fa875.tar.bz2 |
binman: Allow use of help and entry-docs without libfdt
At present if libfdt is not available binman can't do anything much.
Improve the situation a little.
Ideally there should be a test to cover this, but I'm not quite sure how
to fake this.
Signed-off-by: Simon Glass <sjg@chromium.org>
(fixed up missing ReadChildData() enty test)
Diffstat (limited to 'tools/binman/entry.py')
-rw-r--r-- | tools/binman/entry.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/binman/entry.py b/tools/binman/entry.py index fe8e1dd..409c0dc 100644 --- a/tools/binman/entry.py +++ b/tools/binman/entry.py @@ -21,7 +21,6 @@ import os import sys import fdt_util -import state import tools from tools import ToHex, ToHexSize import tout @@ -71,6 +70,10 @@ class Entry(object): orig_size: Original size value read from node """ def __init__(self, section, etype, node, name_prefix=''): + # Put this here to allow entry-docs and help to work without libfdt + global state + import state + self.section = section self.etype = etype self._node = node |