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 0f0e367d026a8a6701430519c070366ddd199462..11c55fd8c87551e9c57f74670afafaafcb6db9f8 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 9cbdf3698a3ffa91ea323ff44f2df1940c690f3f..f3745f7a8c98c2e16e76a05f737022256f13986a 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 63b5972cc8e66e300d58de58b59faaaa3e941c2d..c0ba4f2ea42e5b598a35cdc0f05cd635b17b0ff6 100644 (file)
@@ -20,7 +20,7 @@
                        convert-fit;
 
                        u-boot-tpl {
-                               replace;
+                               ifwi-replace;
                                ifwi-subpart = "IBBP";
                                ifwi-entry = "IBBL";
                        };
index 21ec4654ffe53fe253f60baebb44143b82c4e26b..0874440ab53469ef3b12f9cc077e2e66f835efd0 100644 (file)
@@ -19,7 +19,7 @@
                        filename = "ifwi.bin";
 
                        u-boot-tpl {
-                               replace;
+                               ifwi-replace;
                                ifwi-subpart = "IBBP";
                                ifwi-entry = "IBBL";
                        };
index 62486fd990e6105c9bad22ac265d6f3c03e76c96..82a4bc8cdd500f0c7417188c8848c23c61343b06 100644 (file)
@@ -20,7 +20,7 @@
 
                        _testing {
                                return-unknown-contents;
-                               replace;
+                               ifwi-replace;
                                ifwi-subpart = "IBBP";
                                ifwi-entry = "IBBL";
                        };