From: Fabio Estevam Date: Tue, 29 Apr 2014 01:48:55 -0300 Subject: [U-Boot] [PATCH] common: image: Allow mkimage to build a uImage for extensa Message-ID: <1398746935-11855-1-git-send-email-festevam@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de From: Fabio Estevam Currently we get the following failure when trying to build a uImage for extensa: $ ./tools/mkimage -A xtensa Invalid CPU Type - valid names are: alpha, arm, x86, ia64, m68k, microblaze, mips, mips64, nios2, powerpc, ppc, s390, sh, sparc, sparc64, blackfin, avr32, nds32, or1k, sandbox, arm64 Add an entry for extensa so that a uImage can be built. Reported-by: Geert Uytterhoeven Signed-off-by: Fabio Estevam --- common/image.c | 1 + include/image.h | 1 + 2 files changed, 2 insertions(+) diff --git a/common/image.c b/common/image.c index 9c6bec5..e0bdaf3 100644 --- a/common/image.c +++ b/common/image.c @@ -83,6 +83,7 @@ static const table_entry_t uimage_arch[] = { { IH_ARCH_SANDBOX, "sandbox", "Sandbox", }, { IH_ARCH_ARM64, "arm64", "AArch64", }, { IH_ARCH_ARC, "arc", "ARC", }, + { IH_ARCH_EXTENSA, "extensa", "EXTENSA", }, { -1, "", "", }, }; diff --git a/include/image.h b/include/image.h index 6afd57b..7595745 100644 --- a/include/image.h +++ b/include/image.h @@ -158,6 +158,7 @@ struct lmb; #define IH_ARCH_OPENRISC 21 /* OpenRISC 1000 */ #define IH_ARCH_ARM64 22 /* ARM64 */ #define IH_ARCH_ARC 23 /* Synopsys DesignWare ARC */ +#define IH_ARCH_EXTENSA 24 /* Extensa */ /* * Image Types -- 1.8.3.2