From patchwork Tue Oct 18 15:55:25 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vicente Olivert Riera X-Patchwork-Id: 683762 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3sz0671n0Pz9s2Q for ; Wed, 19 Oct 2016 02:55:42 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id ECF1893381; Tue, 18 Oct 2016 15:55:39 +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 w+gM9LBbNfik; Tue, 18 Oct 2016 15:55:39 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 559C39336F; Tue, 18 Oct 2016 15:55:39 +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 1B17D1C273F for ; Tue, 18 Oct 2016 15:55:38 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 16AA59336F for ; Tue, 18 Oct 2016 15:55:38 +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 yCnuCCCL2rfQ for ; Tue, 18 Oct 2016 15:55:37 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mailapp01.imgtec.com (mailapp02.imgtec.com [217.156.133.132]) by hemlock.osuosl.org (Postfix) with ESMTP id 453D79331A for ; Tue, 18 Oct 2016 15:55:37 +0000 (UTC) Received: from HHMAIL03.hh.imgtec.org (unknown [10.44.0.21]) by Forcepoint Email with ESMTPS id BBDD05062B7BC for ; Tue, 18 Oct 2016 16:55:31 +0100 (IST) Received: from HHMAIL01.hh.imgtec.org (10.100.10.19) by HHMAIL03.hh.imgtec.org (10.44.0.21) with Microsoft SMTP Server (TLS) id 14.3.294.0; Tue, 18 Oct 2016 16:55:34 +0100 Received: from vriera-linux.le.imgtec.org (192.168.154.36) by HHMAIL01.hh.imgtec.org (10.100.10.21) with Microsoft SMTP Server (TLS) id 14.3.294.0; Tue, 18 Oct 2016 16:55:34 +0100 From: Vicente Olivert Riera To: Date: Tue, 18 Oct 2016 16:55:25 +0100 Message-ID: <20161018155525.29327-1-Vincent.Riera@imgtec.com> X-Mailer: git-send-email 2.10.1 MIME-Version: 1.0 X-Originating-IP: [192.168.154.36] Subject: [Buildroot] [PATCH] MIPS: add support for M6201 cores 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" -march=m6201 is not yet supported in GCC upstream, so disabling all versions when selecting this core. Note that M6201 implies a MIPS R6 CPU, and some GCC versions are already disabled for R6, so we don't need to disable those ones for M6201 as well. The external Codescape IMG GNU Linux Toolchain has support for this core. Signed-off-by: Vicente Olivert Riera --- arch/Config.in.mips | 5 +++++ package/gcc/Config.in.host | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/arch/Config.in.mips b/arch/Config.in.mips index f7bfa21..3662fed 100644 --- a/arch/Config.in.mips +++ b/arch/Config.in.mips @@ -55,6 +55,10 @@ config BR2_mips_m5101 bool "M5101" depends on !BR2_ARCH_IS_64 select BR2_MIPS_CPU_MIPS32R5 +config BR2_mips_m6201 + bool "M6201" + depends on !BR2_ARCH_IS_64 + select BR2_MIPS_CPU_MIPS32R6 config BR2_mips_p5600 bool "P5600" depends on !BR2_ARCH_IS_64 @@ -131,6 +135,7 @@ config BR2_GCC_TARGET_ARCH default "interaptiv" if BR2_mips_interaptiv default "m5100" if BR2_mips_m5100 default "m5101" if BR2_mips_m5101 + default "m6201" if BR2_mips_m6201 default "p5600" if BR2_mips_p5600 default "mips64" if BR2_mips_64 default "mips64r2" if BR2_mips_64r2 diff --git a/package/gcc/Config.in.host b/package/gcc/Config.in.host index df60c65..d204bf7 100644 --- a/package/gcc/Config.in.host +++ b/package/gcc/Config.in.host @@ -63,7 +63,8 @@ choice depends on !(BR2_TOOLCHAIN_USES_MUSL && (BR2_powerpc64 || BR2_powerpc64el)) # Unsupported MIPS cores depends on !BR2_mips_interaptiv && !BR2_mips_m5100 && \ - !BR2_mips_m5101 && !BR2_mips_i6400 && !BR2_mips_p6600 + !BR2_mips_m5101 && !BR2_mips_m6201 && !BR2_mips_i6400 && \ + !BR2_mips_p6600 # musl mips64 unsupported depends on !(BR2_TOOLCHAIN_USES_MUSL && (BR2_mips64 || BR2_mips64el)) select BR2_TOOLCHAIN_GCC_AT_LEAST_5 @@ -73,7 +74,7 @@ choice # Broken or unsupported architectures depends on !BR2_arc # Unsupported MIPS cores - depends on !BR2_mips_p6600 + depends on !BR2_mips_m6201 && !BR2_mips_p6600 select BR2_TOOLCHAIN_GCC_AT_LEAST_6 endchoice