summaryrefslogtreecommitdiff
path: root/tools/dtoc/fdt.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-07-22 21:43:53 -0600
committerSimon Glass <sjg@chromium.org>2023-08-02 12:05:57 -0600
commit7155646b22a9ef41100cdee18f39cf353810788a (patch)
tree56b4e53645d6a9c225d47e64ff2fc830ca4c4946 /tools/dtoc/fdt.py
parentb2f47a599cad3b618c6d7b4356ea6ea2625309c0 (diff)
dtoc: Make properties dirty when purging them
Without the 'dirty' flag properties are not written back to the devicetree when synced. This means that new properties copied over to a node are not always written out. Fix this and add a test. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/dtoc/fdt.py')
-rw-r--r--tools/dtoc/fdt.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/dtoc/fdt.py b/tools/dtoc/fdt.py
index fd0f3e94f5c..2589be990ae 100644
--- a/tools/dtoc/fdt.py
+++ b/tools/dtoc/fdt.py
@@ -272,6 +272,7 @@ class Prop:
the FDT is synced
"""
self._offset = None
+ self.dirty = True
class Node:
"""A device tree node