From 8f50e53a4bb4c6f4b95398bb57d58f32fecdad93 Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Wed, 13 Nov 2013 14:34:57 -0800 Subject: cbfstool: Fix architecture check when adding payload In the process of rewriting cbfstool for ARM and using a new internal API a regression was introduced that would silently let you add an ARM payload into an x86 CBFS image and the other way around. This patch fixes cbfstool to produce an error in that case again. Change-Id: I37ee65a467d9658d0846c2cf43b582e285f1a8f8 Signed-off-by: Stefan Reinauer Reviewed-on: https://chromium-review.googlesource.com/176711 Reviewed-by: Hung-Te Lin Commit-Queue: Stefan Reinauer Tested-by: Stefan Reinauer (cherry picked from commit 8f74f3f5227e440ae46b59f8fd692f679f3ada2d) Signed-off-by: Isaac Christensen Reviewed-on: http://review.coreboot.org/6879 Tested-by: build bot (Jenkins) Reviewed-by: Edward O'Callaghan Reviewed-by: Paul Menzel --- util/cbfstool/common.h | 1 + 1 file changed, 1 insertion(+) (limited to 'util/cbfstool/common.h') diff --git a/util/cbfstool/common.h b/util/cbfstool/common.h index b1f25d0d20..455fb8b283 100644 --- a/util/cbfstool/common.h +++ b/util/cbfstool/common.h @@ -112,6 +112,7 @@ int buffer_write_file(struct buffer *buffer, const char *filename); /* Destroys a memory buffer. */ void buffer_delete(struct buffer *buffer); +const char *arch_to_string(uint32_t a); uint32_t string_to_arch(const char *arch_string); #define ALIGN(val, by) (((val) + (by)-1)&~((by)-1)) -- cgit v1.2.3