binman: Correct use of 'replace' in IFWI tests
authorSimon Glass <sjg@chromium.org>
Sat, 24 Aug 2019 13:22:47 +0000 (07:22 -0600)
committerSimon Glass <sjg@chromium.org>
Tue, 15 Oct 2019 14:40:02 +0000 (08:40 -0600)
At present the Intel IFWI entry uses 'replace' without the 'ifwi-' prefix.
This is a fairly generic name which might conflict with the main Entry
base class at some point, if more features are added. Add a prefix.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/binman/README.entries
tools/binman/etype/intel_ifwi.py
tools/binman/test/111_x86-rom-ifwi.dts
tools/binman/test/112_x86-rom-ifwi-nodesc.dts
tools/binman/test/113_x86-rom-ifwi-nodata.dts

index 0f0e367..11c55fd 100644 (file)
@@ -432,6 +432,12 @@ The contents of the IFWI are specified by the subnodes of the IFWI node.
 Each subnode describes an entry which is placed into the IFWFI with a given
 sub-partition (and optional entry name).
 
+Properties for subnodes:
+    ifwi-subpart - sub-parition to put this entry into, e.g. "IBBP"
+    ifwi-entry - entry name t use, e.g. "IBBL"
+    ifwi-replace - if present, indicates that the item should be replaced
+        in the IFWI. Otherwise it is added.
+
 See README.x86 for information about x86 binary blobs.
 
 
index 9cbdf36..f3745f7 100644 (file)
@@ -36,6 +36,12 @@ class Entry_intel_ifwi(Entry_blob):
     Each subnode describes an entry which is placed into the IFWFI with a given
     sub-partition (and optional entry name).
 
+    Properties for subnodes:
+        ifwi-subpart - sub-parition to put this entry into, e.g. "IBBP"
+        ifwi-entry - entry name t use, e.g. "IBBL"
+        ifwi-replace - if present, indicates that the item should be replaced
+            in the IFWI. Otherwise it is added.
+
     See README.x86 for information about x86 binary blobs.
     """
     def __init__(self, section, etype, node):
@@ -95,7 +101,7 @@ class Entry_intel_ifwi(Entry_blob):
         for node in self._node.subnodes:
             entry = Entry.Create(self.section, node)
             entry.ReadNode()
-            entry._ifwi_replace = fdt_util.GetBool(node, 'replace')
+            entry._ifwi_replace = fdt_util.GetBool(node, 'ifwi-replace')
             entry._ifwi_subpart = fdt_util.GetString(node, 'ifwi-subpart')
             entry._ifwi_entry_name = fdt_util.GetString(node, 'ifwi-entry')
             self._ifwi_entries[entry._ifwi_subpart] = entry
index 63b5972..c0ba4f2 100644 (file)
@@ -20,7 +20,7 @@
                        convert-fit;
 
                        u-boot-tpl {
-                               replace;
+                               ifwi-replace;
                                ifwi-subpart = "IBBP";
                                ifwi-entry = "IBBL";
                        };
index 21ec465..0874440 100644 (file)
@@ -19,7 +19,7 @@
                        filename = "ifwi.bin";
 
                        u-boot-tpl {
-                               replace;
+                               ifwi-replace;
                                ifwi-subpart = "IBBP";
                                ifwi-entry = "IBBL";
                        };
index 62486fd..82a4bc8 100644 (file)
@@ -20,7 +20,7 @@
 
                        _testing {
                                return-unknown-contents;
-                               replace;
+                               ifwi-replace;
                                ifwi-subpart = "IBBP";
                                ifwi-entry = "IBBL";
                        };