cbfstool: Add the MIPS architecture
Specify a CBFS architecture value for MIPS & allow cbfstool to make use of it. Change-Id: I604d61004596b65c9903d444e030241f712202bd Signed-off-by: Paul Burton <paul.burton@imgtec.com> Reviewed-on: https://chromium-review.googlesource.com/207971 Reviewed-by: Stefan Reinauer <reinauer@chromium.org> Reviewed-by: David Hendricks <dhendrix@chromium.org>
This commit is contained in:
parent
d6c9603c41
commit
7c4df61715
3 changed files with 3 additions and 1 deletions
|
|
@ -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_FILE_MAGIC "LARCHIVE"
|
||||
|
||||
|
|
|
|||
|
|
@ -519,7 +519,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();
|
||||
|
|
|
|||
|
|
@ -124,6 +124,7 @@ static struct {
|
|||
} arch_names[] = {
|
||||
{ CBFS_ARCHITECTURE_AARCH64, "arm64" },
|
||||
{ CBFS_ARCHITECTURE_ARM, "arm" },
|
||||
{ CBFS_ARCHITECTURE_MIPS, "mips" },
|
||||
{ CBFS_ARCHITECTURE_X86, "x86" },
|
||||
{ CBFS_ARCHITECTURE_UNKNOWN, "unknown" }
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue