1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-02 09:12:08 +02:00

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)
This commit is contained in:
Simon Glass
2019-08-24 07:22:44 -06:00
parent b986b3bb19
commit 8dbb7444eb
9 changed files with 44 additions and 13 deletions

View File

@@ -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