[coreboot-gerrit] New patch to review for coreboot: 84fd0ec cbfstool: Add the MIPS architecture
Marc Jones (marc.jones@se-eng.com)
gerrit at coreboot.org
Mon Feb 23 07:36:49 CET 2015
Marc Jones (marc.jones at se-eng.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/8519
-gerrit
commit 84fd0ecef2d6a5da131018f1fbd8c2abf8b9b40f
Author: Paul Burton <paul.burton at imgtec.com>
Date: Fri Jun 13 23:56:45 2014 +0100
cbfstool: Add the MIPS architecture
Specify a CBFS architecture value for MIPS & allow cbfstool to make
use of it.
Original-Change-Id: I604d61004596b65c9903d444e030241f712202bd
Original-Signed-off-by: Paul Burton <paul.burton at imgtec.com>
Original-Reviewed-on: https://chromium-review.googlesource.com/207971
Original-Reviewed-by: Stefan Reinauer <reinauer at chromium.org>
Original-Reviewed-by: David Hendricks <dhendrix at chromium.org>
(cherry picked from commit 7c4df61715df3767673841789d02fe5d1bd1d4a0)
Signed-off-by: Marc Jones <marc.jones at se-eng.com>
Change-Id: Ib30524f5e7e8c7891cb69fc8ed8f6a7e44ac3325
---
util/cbfstool/cbfs.h | 1 +
util/cbfstool/cbfstool.c | 2 +-
util/cbfstool/common.c | 1 +
3 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/util/cbfstool/cbfs.h b/util/cbfstool/cbfs.h
index 9af801c..6aa4060 100644
--- a/util/cbfstool/cbfs.h
+++ b/util/cbfstool/cbfs.h
@@ -54,6 +54,7 @@ struct cbfs_header {
#define CBFS_ARCHITECTURE_ARM 0x00000010
#define CBFS_ARCHITECTURE_AARCH64 0x0000aa64
#define CBFS_ARCHITECTURE_RISCV 0xc001d0de
+#define CBFS_ARCHITECTURE_MIPS 0x00000100
#define CBFS_FILE_MAGIC "LARCHIVE"
diff --git a/util/cbfstool/cbfstool.c b/util/cbfstool/cbfstool.c
index 4628499..41df157 100644
--- a/util/cbfstool/cbfstool.c
+++ b/util/cbfstool/cbfstool.c
@@ -590,7 +590,7 @@ static void usage(char *name)
"Updates the FIT table with microcode entries\n"
"\n"
"ARCHes:\n"
- " arm64, arm, x86\n"
+ " arm64, arm, mips, x86\n"
"TYPEs:\n", name, name
);
print_supported_filetypes();
diff --git a/util/cbfstool/common.c b/util/cbfstool/common.c
index d990ddd..bd9cdc0 100644
--- a/util/cbfstool/common.c
+++ b/util/cbfstool/common.c
@@ -132,6 +132,7 @@ static struct {
} arch_names[] = {
{ CBFS_ARCHITECTURE_AARCH64, "arm64" },
{ CBFS_ARCHITECTURE_ARM, "arm" },
+ { CBFS_ARCHITECTURE_MIPS, "mips" },
{ CBFS_ARCHITECTURE_RISCV, "riscv" },
{ CBFS_ARCHITECTURE_X86, "x86" },
{ CBFS_ARCHITECTURE_UNKNOWN, "unknown" }
More information about the coreboot-gerrit
mailing list