From patchwork Thu Apr 3 21:01:12 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Cercueil X-Patchwork-Id: 336773 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id 70D02140095 for ; Fri, 4 Apr 2014 08:02:27 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id ACC5F31C6A; Thu, 3 Apr 2014 21:02:26 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RXijPvQXn9x0; Thu, 3 Apr 2014 21:02:22 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id B3B1A2FF69; Thu, 3 Apr 2014 21:02:20 +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 644451C1E95 for ; Thu, 3 Apr 2014 21:02:18 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 621C58C7CA for ; Thu, 3 Apr 2014 21:02:18 +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 RERdEm12Xjx7 for ; Thu, 3 Apr 2014 21:02:18 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from marvin.crapouillou.net (rev33.vpn.fdn.fr [80.67.179.33]) by whitealder.osuosl.org (Postfix) with ESMTPS id DB33C8C829 for ; Thu, 3 Apr 2014 21:02:17 +0000 (UTC) Received: from 95-91-234-117-dynip.superkabel.de ([95.91.234.117] helo=debian.hitronhub.home) by marvin.crapouillou.net with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA256:128) (Exim 4.80) (envelope-from ) id 1WVom5-00045j-Bg; Thu, 03 Apr 2014 23:02:13 +0200 From: Paul Cercueil To: buildroot@busybox.net Date: Thu, 3 Apr 2014 23:01:12 +0200 Message-Id: <1396558881-29631-2-git-send-email-paul@crapouillou.net> X-Mailer: git-send-email 1.9.0 In-Reply-To: <1396558881-29631-1-git-send-email-paul@crapouillou.net> References: <1396558881-29631-1-git-send-email-paul@crapouillou.net> Cc: Paul Cercueil Subject: [Buildroot] [PATCH 02/11] arch: MIPS: Add config option BR2_GCC_TARGET_TUNE 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 This option is actually already used in GCC's package. This allows to optimize the toolchain for a specific MIPS processor while supporting more than one family of processors. Signed-Off-By: Paul Cercueil --- arch/Config.in.mips | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/Config.in.mips b/arch/Config.in.mips index 20951e0..e4160a2 100644 --- a/arch/Config.in.mips +++ b/arch/Config.in.mips @@ -83,6 +83,16 @@ config BR2_GCC_TARGET_ARCH default "mips64" if BR2_mips_64 default "mips64r2" if BR2_mips_64r2 +config BR2_GCC_TARGET_TUNE + default "mips1" if BR2_mips_1 + default "mips2" if BR2_mips_2 + default "mips3" if BR2_mips_3 + default "mips4" if BR2_mips_4 + default "mips32" if BR2_mips_32 + default "mips32r2" if BR2_mips_32r2 + default "mips64" if BR2_mips_64 + default "mips64r2" if BR2_mips_64r2 + config BR2_MIPS_OABI32 bool default y if BR2_mips || BR2_mipsel