From patchwork Sun Sep 3 09:44:32 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yann E. MORIN" X-Patchwork-Id: 809245 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="gxurU8Yk"; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3xlSkf16l9z9s7c for ; Sun, 3 Sep 2017 19:44:58 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id D413A870B4; Sun, 3 Sep 2017 09:44:54 +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 KLij8lqUDVs8; Sun, 3 Sep 2017 09:44:52 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 3D83D86E88; Sun, 3 Sep 2017 09:44:52 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id BAA6E1C41C7 for ; Sun, 3 Sep 2017 09:44:47 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id A4E8527550 for ; Sun, 3 Sep 2017 09:44:47 +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 PCrUkA3caPm2 for ; Sun, 3 Sep 2017 09:44:47 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) by silver.osuosl.org (Postfix) with ESMTPS id B6BF726448 for ; Sun, 3 Sep 2017 09:44:46 +0000 (UTC) Received: by mail-wm0-f66.google.com with SMTP id e204so3864518wma.2 for ; Sun, 03 Sep 2017 02:44:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=D8dkiWEDmESDbJrxB/tBlIhe6naKxa2Ss2tExJrv1mM=; b=gxurU8Yk+4i5qUf0z/jHUoKdPrsj4B35MAJSKoRWtQq4zryyV3mTuF3vaEuP8i0E6T d8hVLGrQKxQNH/bXFhMl6UGYXDrXQQstTYB54X9LOW2ZuN8eI1izX47QzIIZvahynWe7 eLd+TYB3XFZVwJ/m/hPjYii2IAvX2eJvIcfLIBqiNmxkN+htfmHF1aEpl4/AzI+EaMPN cJy0k3DTrupZUAsyAtBpo4E2Lz3f4MIUUjXzJGWK2q+NlryfLyIeSfaMX20Uq8eGcQzA kkzTWW3C8Om5FrnJiboreaua2TkF8ROINhkmyIbHyTuuhWRZHWB/c3DQD3l6JPFkdxNH iYxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=D8dkiWEDmESDbJrxB/tBlIhe6naKxa2Ss2tExJrv1mM=; b=o+pFSIYzigdaZyAvZ4/mFm6GnJ8vbsLc1vbgV7EhTsJUWHc+peboRb7r23aHbxs7KT hYit7wRhF1ELFgMX6pbC9Ful9t5XV9JF/hbHhNHu/7r5tE9Mn0kei/CXPthIlG4x33er 4rNKtTsThG08tg5GHj1UTKQUgO6t/fiyAphCvqoz6Y4Rmj9NZWbLO8M2eCasibwe7ud+ FjEyZjs3xRG+PqAajtfd4TVNQnngtlXjp0vjvoxYA1GTWTYomLTWQch6zvuqxSYfVH9M SL7myhGQ7HegZGm6F+Kg6veo+Iyba9rmUMwvI2xQ9KmPoEckej/jpZLZuhpqOdpEeCBh r25A== X-Gm-Message-State: AHPjjUh6GVJz7Og3HuM+e3/ltop5mhDScuYYydGU599kv/tW07RVaDcy rZengRVtFt1CC7af X-Google-Smtp-Source: ADKCNb50G5g3ac1qm2Cd6y2XGcUXIMw/BLQSprschKZub9CO/qtMz00vwTXqFDpZrOQ4YOpUeQ+uAQ== X-Received: by 10.28.213.21 with SMTP id m21mr1799427wmg.145.1504431885060; Sun, 03 Sep 2017 02:44:45 -0700 (PDT) Received: from localhost.localdomain (2a01cb08861073004cc40c703ef54565.ipv6.abo.wanadoo.fr. [2a01:cb08:8610:7300:4cc4:c70:3ef5:4565]) by smtp.gmail.com with ESMTPSA id t135sm1972938wmt.30.2017.09.03.02.44.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 03 Sep 2017 02:44:43 -0700 (PDT) From: "Yann E. MORIN" To: buildroot@buildroot.org Date: Sun, 3 Sep 2017 11:44:32 +0200 Message-Id: X-Mailer: git-send-email 2.11.0 In-Reply-To: References: Cc: Thomas Petazzoni , "Yann E. MORIN" Subject: [Buildroot] [PATCH 6/8] arch/mips: some variants need different gcc versions 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: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" We use the conditions currently expressed in the gcc version choice. We leave the msul vs mips64 conditions in gcc, because the "fault" really is on gcc, which does not recognise the mips64+musl tuples, so the fix lie with gcc, and the current conditions are fitting. Signed-off-by: "Yann E. MORIN" Cc: Thomas Petazzoni --- arch/Config.in.mips | 7 +++++++ package/gcc/Config.in.host | 8 -------- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/arch/Config.in.mips b/arch/Config.in.mips index 1cce1710da..c08b2a2968 100644 --- a/arch/Config.in.mips +++ b/arch/Config.in.mips @@ -7,9 +7,11 @@ config BR2_MIPS_CPU_MIPS32R2 select BR2_MIPS_NAN_LEGACY config BR2_MIPS_CPU_MIPS32R5 bool + select BR2_ARCH_NEEDS_GCC_AT_LEAST_5 config BR2_MIPS_CPU_MIPS32R6 bool select BR2_MIPS_NAN_2008 + select BR2_ARCH_NEEDS_GCC_AT_LEAST_5 config BR2_MIPS_CPU_MIPS64 bool select BR2_MIPS_NAN_LEGACY @@ -18,9 +20,11 @@ config BR2_MIPS_CPU_MIPS64R2 select BR2_MIPS_NAN_LEGACY config BR2_MIPS_CPU_MIPS64R5 bool + select BR2_ARCH_NEEDS_GCC_AT_LEAST_5 config BR2_MIPS_CPU_MIPS64R6 bool select BR2_MIPS_NAN_2008 + select BR2_ARCH_NEEDS_GCC_AT_LEAST_5 choice prompt "Target Architecture Variant" @@ -53,11 +57,13 @@ config BR2_mips_interaptiv bool "interAptiv" depends on !BR2_ARCH_IS_64 select BR2_MIPS_CPU_MIPS32R2 + select BR2_ARCH_NEEDS_GCC_AT_LEAST_6 config BR2_mips_m5150 bool "M5150" depends on !BR2_ARCH_IS_64 select BR2_MIPS_CPU_MIPS32R5 select BR2_MIPS_NAN_2008 + select BR2_ARCH_NEEDS_GCC_AT_LEAST_6 config BR2_mips_m6250 bool "M6250" depends on !BR2_ARCH_IS_64 @@ -101,6 +107,7 @@ config BR2_mips_i6400 bool "I6400" depends on BR2_ARCH_IS_64 select BR2_MIPS_CPU_MIPS64R6 + select BR2_ARCH_NEEDS_GCC_AT_LEAST_6 config BR2_mips_p6600 bool "P6600" depends on BR2_ARCH_IS_64 diff --git a/package/gcc/Config.in.host b/package/gcc/Config.in.host index df836d96e4..8c07c29c2d 100644 --- a/package/gcc/Config.in.host +++ b/package/gcc/Config.in.host @@ -28,12 +28,6 @@ config BR2_GCC_VERSION_4_9_X # Broken or unsupported ARM cores depends on !BR2_cortex_a17 && !BR2_cortex_a17_a7 depends on !BR2_cortex_a72 && !BR2_cortex_a72_a53 - # Unsupported MIPS cores - depends on !BR2_mips_interaptiv - # Unsupported for MIPS R5 - depends on !BR2_MIPS_CPU_MIPS32R5 && !BR2_MIPS_CPU_MIPS64R5 - # Unsupported for MIPS R6 - depends on !BR2_MIPS_CPU_MIPS32R6 && !BR2_MIPS_CPU_MIPS64R6 # musl microblaze unsupported depends on !(BR2_TOOLCHAIN_USES_MUSL && (BR2_microblazeel || BR2_microblazebe)) # musl ppc64 unsupported @@ -51,8 +45,6 @@ config BR2_GCC_VERSION_5_X depends on !BR2_cortex_a57_a53 && !BR2_cortex_a72_a53 # musl ppc64 unsupported depends on !(BR2_TOOLCHAIN_USES_MUSL && (BR2_powerpc64 || BR2_powerpc64le)) - # Unsupported MIPS cores - depends on !BR2_mips_interaptiv && !BR2_mips_m5150 && !BR2_mips_i6400 # musl mips64 unsupported depends on !(BR2_TOOLCHAIN_USES_MUSL && (BR2_mips64 || BR2_mips64el)) select BR2_TOOLCHAIN_GCC_AT_LEAST_5