diff options
author | Paul Burton <paul.burton@imgtec.com> | 2014-06-13 23:56:45 +0100 |
---|---|---|
committer | Marc Jones <marc.jones@se-eng.com> | 2015-03-03 18:43:51 +0100 |
commit | 33186920784e5a4cd6f28b8c964f139808632f33 (patch) | |
tree | 1802e5a9b6940add81a30f9c3e9618ce1e18be0c /util/cbfstool | |
parent | 226fc941af3a03100a897b3db9c4b44d4e663acb (diff) | |
download | coreboot-33186920784e5a4cd6f28b8c964f139808632f33.tar.xz |
cbfstool: Add the MIPS architecture
Specify a CBFS architecture value for MIPS and allow cbfstool to make
use of it.
Original-Change-Id: I604d61004596b65c9903d444e030241f712202bd
Original-Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Original-Reviewed-on: https://chromium-review.googlesource.com/207971
Original-Reviewed-by: Stefan Reinauer <reinauer@chromium.org>
Original-Reviewed-by: David Hendricks <dhendrix@chromium.org>
(cherry picked from commit 7c4df61715df3767673841789d02fe5d1bd1d4a0)
Signed-off-by: Marc Jones <marc.jones@se-eng.com>
Change-Id: Ib30524f5e7e8c7891cb69fc8ed8f6a7e44ac3325
Reviewed-on: http://review.coreboot.org/8519
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'util/cbfstool')
-rw-r--r-- | util/cbfstool/cbfs.h | 1 | ||||
-rw-r--r-- | util/cbfstool/cbfstool.c | 2 | ||||
-rw-r--r-- | util/cbfstool/common.c | 1 |
3 files changed, 3 insertions, 1 deletions
diff --git a/util/cbfstool/cbfs.h b/util/cbfstool/cbfs.h index 9af801c903..f7cd39a20f 100644 --- a/util/cbfstool/cbfs.h +++ b/util/cbfstool/cbfs.h @@ -53,6 +53,7 @@ struct cbfs_header { #define CBFS_ARCHITECTURE_X86 0x00000001 #define CBFS_ARCHITECTURE_ARM 0x00000010 #define CBFS_ARCHITECTURE_AARCH64 0x0000aa64 +#define CBFS_ARCHITECTURE_MIPS 0x00000100 #define CBFS_ARCHITECTURE_RISCV 0xc001d0de #define CBFS_FILE_MAGIC "LARCHIVE" diff --git a/util/cbfstool/cbfstool.c b/util/cbfstool/cbfstool.c index 4628499f07..41df15745a 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 d990ddd226..bd9cdc0aa5 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" } |