[U-Boot] [PATCH 1/4] x86: microcode-tool: Write pure data to the dtsi file
Bin Meng
bmeng.cn at gmail.com
Fri Aug 7 11:28:43 CEST 2015
Currently the microcode-tool writes microcode into a data block as
well as the device tree properties which represents the first 48
bytes in the microcode data. Now we change the tool to only write
the microcode without device tree stuff so that multiple microcode
data blocks can be included in a single property.
Signed-off-by: Bin Meng <bmeng.cn at gmail.com>
---
tools/microcode-tool.py | 23 ++++++++++++-----------
1 file changed, 12 insertions(+), 11 deletions(-)
diff --git a/tools/microcode-tool.py b/tools/microcode-tool.py
index 71c2e91..5522ffc 100755
--- a/tools/microcode-tool.py
+++ b/tools/microcode-tool.py
@@ -173,20 +173,21 @@ def CreateFile(date, license_text, mcodes, outfile):
* node.
*
* Date: %s
+ *
+ * Device tree properties for this microcode:
+ *
+ * compatible = "intel,microcode";
+ * intel,header-version = <%d>;
+ * intel,update-revision = <%#x>;
+ * intel,date-code = <%#x>;
+ * intel,processor-signature = <%#x>;
+ * intel,checksum = <%#x>;
+ * intel,loader-revision = <%d>;
+ * intel,processor-flags = <%#x>;
*/
-compatible = "intel,microcode";
-intel,header-version = <%d>;
-intel,update-revision = <%#x>;
-intel,date-code = <%#x>;
-intel,processor-signature = <%#x>;
-intel,checksum = <%#x>;
-intel,loader-revision = <%d>;
-intel,processor-flags = <%#x>;
-
/* The first 48-bytes are the public header which repeats the above data */
-data = <%s
-\t>;'''
+%s'''
words = ''
add_comments = len(mcodes) > 1
for mcode in mcodes:
--
1.8.2.1
More information about the U-Boot
mailing list