From patchwork Tue Aug 11 20:37:09 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Waldemar Brodkorb X-Patchwork-Id: 506216 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id 3CA0914027C for ; Wed, 12 Aug 2015 06:37:19 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 5C0F48072F; Tue, 11 Aug 2015 20:37:18 +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 G9Z5orOMxjVX; Tue, 11 Aug 2015 20:37:15 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id A606380731; Tue, 11 Aug 2015 20:37:15 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id EA5311C1059 for ; Tue, 11 Aug 2015 20:37:13 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id E6EFF95A0F for ; Tue, 11 Aug 2015 20:37:13 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VY1n4T0xySx1 for ; Tue, 11 Aug 2015 20:37:12 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from helium.waldemar-brodkorb.de (helium.waldemar-brodkorb.de [89.238.66.15]) by hemlock.osuosl.org (Postfix) with ESMTPS id 7385095A49 for ; Tue, 11 Aug 2015 20:37:12 +0000 (UTC) Received: by helium.waldemar-brodkorb.de (Postfix, from userid 1000) id 5C938101F6; Tue, 11 Aug 2015 22:37:09 +0200 (CEST) Date: Tue, 11 Aug 2015 22:37:09 +0200 From: Waldemar Brodkorb To: buildroot@buildroot.org Message-ID: <20150811203709.GA9885@waldemar-brodkorb.de> MIME-Version: 1.0 Content-Disposition: inline X-Operating-System: Linux 3.2.0-4-amd64 x86_64 User-Agent: Mutt/1.5.21 (2010-09-15) Subject: [Buildroot] [PATCH 1/2] toolchain: add sparc64 architecture support X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Introduce sparc64 architecture to buildroot. Signed-off-by: Waldemar Brodkorb --- arch/Config.in | 12 +++++++++++- arch/Config.in.sparc | 9 +++++++-- toolchain/toolchain-buildroot/Config.in | 3 ++- 3 files changed, 20 insertions(+), 4 deletions(-) diff --git a/arch/Config.in b/arch/Config.in index 875f412..4cdd54e 100644 --- a/arch/Config.in +++ b/arch/Config.in @@ -217,6 +217,16 @@ config BR2_sparc http://www.oracle.com/sun http://en.wikipedia.org/wiki/Sparc +config BR2_sparc64 + bool "SPARC64" + select BR2_ARCH_IS_64 + select BR2_ARCH_HAS_MMU_MANDATORY + help + SPARC (from Scalable Processor Architecture) is a RISC instruction + set architecture (ISA) developed by Sun Microsystems. + http://www.oracle.com/sun + http://en.wikipedia.org/wiki/Sparc + config BR2_x86_64 bool "x86_64" select BR2_ARCH_IS_64 @@ -388,7 +398,7 @@ if BR2_sh || BR2_sh64 source "arch/Config.in.sh" endif -if BR2_sparc +if BR2_sparc || BR2_sparc64 source "arch/Config.in.sparc" endif diff --git a/arch/Config.in.sparc b/arch/Config.in.sparc index cc10e8d..faf4a11 100644 --- a/arch/Config.in.sparc +++ b/arch/Config.in.sparc @@ -1,7 +1,8 @@ choice prompt "Target Architecture Variant" - depends on BR2_sparc - default BR2_sparc_v8 + depends on BR2_sparc || BR2_sparc64 + default BR2_sparc_v8 if BR2_sparc + default BR2_sparc_v9 if BR2_sparc64 help Specific CPU variant to use @@ -9,10 +10,13 @@ config BR2_sparc_v8 bool "v8" config BR2_sparc_leon3 bool "leon3" +config BR2_sparc_v9 + bool "v9" endchoice config BR2_ARCH default "sparc" if BR2_sparc + default "sparc64" if BR2_sparc64 config BR2_ENDIAN default "BIG" @@ -20,3 +24,4 @@ config BR2_ENDIAN config BR2_GCC_TARGET_CPU default "leon3" if BR2_sparc_leon3 default "v8" if BR2_sparc_v8 + default "ultrasparc" if BR2_sparc_v9 diff --git a/toolchain/toolchain-buildroot/Config.in b/toolchain/toolchain-buildroot/Config.in index 6d74819..17dba36 100644 --- a/toolchain/toolchain-buildroot/Config.in +++ b/toolchain/toolchain-buildroot/Config.in @@ -67,7 +67,8 @@ config BR2_TOOLCHAIN_BUILDROOT_GLIBC BR2_mipsel || BR2_mips64 || BR2_mips64el|| \ BR2_powerpc || BR2_powerpc64 || BR2_powerpc64le || \ BR2_sh || BR2_sh64 || BR2_sparc || \ - BR2_x86_64 || BR2_microblaze || BR2_nios2 + BR2_sparc64 || BR2_x86_64 || BR2_microblaze || \ + BR2_nios2 depends on BR2_USE_MMU depends on !BR2_STATIC_LIBS depends on !BR2_powerpc_SPE