From patchwork Thu Aug 29 22:10:40 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ezequiel Garcia X-Patchwork-Id: 270971 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id AD8222C007C for ; Fri, 30 Aug 2013 08:10:44 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 97D068BDC9; Thu, 29 Aug 2013 22:10:43 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bnc9RHbZsrxW; Thu, 29 Aug 2013 22:10:40 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 21C0A8BD83; Thu, 29 Aug 2013 22:10:40 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 0D1E71BF82D for ; Thu, 29 Aug 2013 22:10:38 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 0D6ED8D70F for ; Thu, 29 Aug 2013 22:10:38 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WjVZayVJIooL for ; Thu, 29 Aug 2013 22:10:36 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail.free-electrons.com (top.free-electrons.com [176.31.233.9]) by whitealder.osuosl.org (Postfix) with ESMTP id A2B548D787 for ; Thu, 29 Aug 2013 22:10:36 +0000 (UTC) Received: by mail.free-electrons.com (Postfix, from userid 106) id C301B849; Fri, 30 Aug 2013 00:10:50 +0200 (CEST) Received: from localhost.localdomain (unknown [190.2.109.158]) by mail.free-electrons.com (Postfix) with ESMTPA id 7E6E0824; Fri, 30 Aug 2013 00:10:49 +0200 (CEST) From: Ezequiel Garcia To: Date: Thu, 29 Aug 2013 19:10:40 -0300 Message-Id: <1377814241-10526-2-git-send-email-ezequiel.garcia@free-electrons.com> X-Mailer: git-send-email 1.8.1.5 In-Reply-To: <1377814241-10526-1-git-send-email-ezequiel.garcia@free-electrons.com> References: <1377814241-10526-1-git-send-email-ezequiel.garcia@free-electrons.com> Subject: [Buildroot] [PATCH v3 1/2] nios2: Add new architecture X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net From: Ezequiel Garcia This commit adds very basic support to build for the Nios II architecture. Toolchain support is still missing and instead we need to use an external custom toolchain. Notice that this architecture had been previously removed in Buildroot 2010.05-rc1 release (as explained in the CHANGES file) and this commit adds it back. Acked-by: Thomas Petazzoni Signed-off-by: Ezequiel Garcia --- arch/Config.in | 11 +++++++++++ arch/Config.in.nios2 | 5 +++++ toolchain/Config.in | 5 +++-- 3 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 arch/Config.in.nios2 diff --git a/arch/Config.in b/arch/Config.in index 0b5b218..14899ca 100644 --- a/arch/Config.in +++ b/arch/Config.in @@ -124,6 +124,13 @@ config BR2_mips64el http://www.mips.com/ http://en.wikipedia.org/wiki/MIPS_Technologies +config BR2_nios2 + bool "Nios II" + help + Nios II is a soft core processor from Altera Corporation. + http://www.altera.com/ + http://en.wikipedia.org/wiki/Nios_II + config BR2_powerpc bool "PowerPC" help @@ -305,6 +312,10 @@ if BR2_mips || BR2_mips64 || BR2_mipsel || BR2_mips64el source "arch/Config.in.mips" endif +if BR2_nios2 +source "arch/Config.in.nios2" +endif + if BR2_powerpc source "arch/Config.in.powerpc" endif diff --git a/arch/Config.in.nios2 b/arch/Config.in.nios2 new file mode 100644 index 0000000..ed63898 --- /dev/null +++ b/arch/Config.in.nios2 @@ -0,0 +1,5 @@ +config BR2_ARCH + default "nios2" + +config BR2_ENDIAN + default "LITTLE" diff --git a/toolchain/Config.in b/toolchain/Config.in index 53d2573..9d1e68f 100644 --- a/toolchain/Config.in +++ b/toolchain/Config.in @@ -25,7 +25,7 @@ choice config BR2_TOOLCHAIN_BUILDROOT bool "Buildroot toolchain" - depends on !BR2_microblaze && !BR2_aarch64 + depends on !BR2_microblaze && !BR2_aarch64 && !BR2_nios2 select BR2_TOOLCHAIN_HAS_SHADOW_PASSWORDS config BR2_TOOLCHAIN_EXTERNAL @@ -38,7 +38,8 @@ config BR2_TOOLCHAIN_EXTERNAL config BR2_TOOLCHAIN_CTNG bool "Crosstool-NG toolchain" depends on BR2_DEPRECATED - depends on !BR2_microblaze && !BR2_aarch64 && !BR2_xtensa && !BR2_arc + depends on !BR2_microblaze && !BR2_aarch64 && !BR2_xtensa && \ + !BR2_arc && !BR2_nios2 select BR2_TOOLCHAIN_HAS_SHADOW_PASSWORDS help Say 'y' if you want to generate the toolchain with crosstool-NG