From patchwork Tue Apr 29 04:48:55 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 343664 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 22A4D1400B0 for ; Tue, 29 Apr 2014 14:49:25 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C50FB4BABB; Tue, 29 Apr 2014 06:49:21 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bkVUz4t7Pfd4; Tue, 29 Apr 2014 06:49:21 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 3F9924BABD; Tue, 29 Apr 2014 06:49:19 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 6EA784BABD for ; Tue, 29 Apr 2014 06:49:15 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kPUIsYjW0fdH for ; Tue, 29 Apr 2014 06:49:12 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-yh0-f54.google.com (mail-yh0-f54.google.com [209.85.213.54]) by theia.denx.de (Postfix) with ESMTPS id 1E2BA4BABB for ; Tue, 29 Apr 2014 06:49:08 +0200 (CEST) Received: by mail-yh0-f54.google.com with SMTP id b6so4180832yha.41 for ; Mon, 28 Apr 2014 21:49:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=R8lCFGVANjqNG/keCBlXG1AdvTJLiMwlwMFc9coKRzU=; b=NeYDvEh6laIX2NHpavo/GvIBz7xhmBn+cCE+qx6r9RTjltEIf0jAxqaIrqZpBL+acd sNZnCExb3mFObkykkDAo+IRdNdIXSWXYJ+Ch7Ng/Jprm/tQP8zSqU0Mfuqf1h1d+4WJ+ jgGKMMjg+yxM7eVBDaz7jI400W2QcwXJZtcnoX6wLbobWkLPte7TDsR3fZA7VyDTdYf5 Ast8JYBVNqknNlTv43+AzZbG9zG4dgFKbnQRfh9/aguMTDakNzcEkwVyJsnUEOwt3NJT Kv1+edXq0W6vOjRunSlxL4YNGUJKFyzUoQfXs+DkVey2BrSdstmYEK6GmkedZ106NMFD G6nw== X-Received: by 10.236.52.74 with SMTP id d50mr44710292yhc.44.1398746945839; Mon, 28 Apr 2014 21:49:05 -0700 (PDT) Received: from localhost.localdomain ([177.194.43.224]) by mx.google.com with ESMTPSA id u5sm34670154yhg.25.2014.04.28.21.49.04 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 28 Apr 2014 21:49:05 -0700 (PDT) From: Fabio Estevam To: trini@ti.com Date: Tue, 29 Apr 2014 01:48:55 -0300 Message-Id: <1398746935-11855-1-git-send-email-festevam@gmail.com> X-Mailer: git-send-email 1.8.3.2 Cc: Fabio Estevam , u-boot@lists.denx.de, geert@linux-m68k.org, mpe@ellerman.id.au Subject: [U-Boot] [PATCH] common: image: Allow mkimage to build a uImage for extensa X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@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