[U-Boot] [PATCH 45/45] dtoc: Fix the value of SetInt()

Simon Glass sjg at chromium.org
Mon Oct 1 18:22:49 UTC 2018


This does not set the correct value at present. Fix it.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 tools/dtoc/fdt.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/dtoc/fdt.py b/tools/dtoc/fdt.py
index 2df2d4b0cc7..9ad72f89ec7 100644
--- a/tools/dtoc/fdt.py
+++ b/tools/dtoc/fdt.py
@@ -171,7 +171,7 @@ class Prop:
             val: Integer value (32-bit, single cell)
         """
         self.bytes = struct.pack('>I', val);
-        self.value = val
+        self.value = self.bytes
         self.type = TYPE_INT
         self.dirty = True
 
-- 
2.19.0.605.g01d371f741-goog



More information about the U-Boot mailing list