diff options
author | Simon Glass <sjg@chromium.org> | 2016-07-25 18:59:14 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2016-09-18 21:04:39 -0600 |
commit | 2a70d897ed68fd521411a10831ac05e1ffdd3d41 (patch) | |
tree | e3923ef5b91172f52da3627b6370e9fbee6b5bc2 /tools/dtoc/fdt.py | |
parent | 0170804f60b19a2033ac39964fcd192a0c7eda42 (diff) | |
download | u-boot-2a70d897ed68fd521411a10831ac05e1ffdd3d41.tar.gz |
dtoc: Support deleting device tree properties
Add support for deleting a device tree property. With the fallback
implementation this uses fdtput. With libfdt it uses the API call and
updates the offsets afterwards.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/dtoc/fdt.py')
-rw-r--r-- | tools/dtoc/fdt.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/dtoc/fdt.py b/tools/dtoc/fdt.py index c0ce5af8ac..f01c7b18ea 100644 --- a/tools/dtoc/fdt.py +++ b/tools/dtoc/fdt.py @@ -184,6 +184,16 @@ class NodeBase: """ raise NotImplementedError() + def DeleteProp(self, prop_name): + """Delete a property of a node + + This should be implemented by subclasses + + Args: + prop_name: Name of the property to delete + """ + raise NotImplementedError() + class Fdt: """Provides simple access to a flat device tree blob. |