diff options
author | Ronald G. Minnich <rminnich@gmail.com> | 2014-10-16 10:55:39 +0000 |
---|---|---|
committer | Ronald G. Minnich <rminnich@gmail.com> | 2014-10-16 18:05:13 +0200 |
commit | 833bf20f92c38e8e3dfee12d3b81d47bcd35d906 (patch) | |
tree | cb5d2da239a2c121e5b9f1326cf58ddec53138e7 /util/cbfstool/elfheaders.c | |
parent | a9db82fbaff166bf474fb6ead7345073a4d3a77d (diff) |
RISCV: add this architecture to cbfstool
Change-Id: I6d972e595f12585cda08e1a6d2b94b4bf4f212f5
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Reviewed-on: http://review.coreboot.org/7067
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'util/cbfstool/elfheaders.c')
-rw-r--r-- | util/cbfstool/elfheaders.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/util/cbfstool/elfheaders.c b/util/cbfstool/elfheaders.c index 4c0de89090..634e76a136 100644 --- a/util/cbfstool/elfheaders.c +++ b/util/cbfstool/elfheaders.c @@ -611,6 +611,7 @@ elf_headers(const struct buffer *pinput, // The tool may work in architecture-independent way. if (arch != CBFS_ARCHITECTURE_UNKNOWN && !((ehdr->e_machine == EM_ARM) && (arch == CBFS_ARCHITECTURE_ARM)) && + !((ehdr->e_machine == EM_RISCV) && (arch == CBFS_ARCHITECTURE_RISCV)) && !((ehdr->e_machine == EM_386) && (arch == CBFS_ARCHITECTURE_X86))) { ERROR("The stage file has the wrong architecture\n"); return -1; |