{"id":809239,"url":"http://patchwork.ozlabs.org/api/1.2/patches/809239/?format=json","web_url":"http://patchwork.ozlabs.org/project/buildroot/patch/8de5375c8ca0110ebd5baaec946fed002cc7eb80.1504431850.git.yann.morin.1998@free.fr/","project":{"id":27,"url":"http://patchwork.ozlabs.org/api/1.2/projects/27/?format=json","name":"Buildroot development","link_name":"buildroot","list_id":"buildroot.buildroot.org","list_email":"buildroot@buildroot.org","web_url":"","scm_url":"","webscm_url":"","list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<8de5375c8ca0110ebd5baaec946fed002cc7eb80.1504431850.git.yann.morin.1998@free.fr>","list_archive_url":null,"date":"2017-09-03T09:44:27","name":"[1/8] arch: introduce minimal required gcc version","commit_ref":null,"pull_url":null,"state":"accepted","archived":false,"hash":"d4549ab2a6ffe340c65c8a9ea5b8f9a59916e47d","submitter":{"id":13903,"url":"http://patchwork.ozlabs.org/api/1.2/people/13903/?format=json","name":"Yann E. MORIN","email":"yann.morin.1998@free.fr"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/buildroot/patch/8de5375c8ca0110ebd5baaec946fed002cc7eb80.1504431850.git.yann.morin.1998@free.fr/mbox/","series":[{"id":1206,"url":"http://patchwork.ozlabs.org/api/1.2/series/1206/?format=json","web_url":"http://patchwork.ozlabs.org/project/buildroot/list/?series=1206","date":"2017-09-03T09:44:27","name":"[1/8] arch: introduce minimal required gcc version","version":1,"mbox":"http://patchwork.ozlabs.org/series/1206/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/809239/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/809239/checks/","tags":{},"related":[],"headers":{"Return-Path":"<buildroot-bounces@busybox.net>","X-Original-To":["incoming@patchwork.ozlabs.org","buildroot@lists.busybox.net"],"Delivered-To":["patchwork-incoming@bilbo.ozlabs.org","buildroot@osuosl.org"],"Authentication-Results":["ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=busybox.net\n\t(client-ip=140.211.166.138; helo=whitealder.osuosl.org;\n\tenvelope-from=buildroot-bounces@busybox.net;\n\treceiver=<UNKNOWN>)","ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"DxrO2Ck3\"; dkim-atps=neutral"],"Received":["from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138])\n\t(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xlSkP4rxqz9s71\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSun,  3 Sep 2017 19:44:45 +1000 (AEST)","from localhost (localhost [127.0.0.1])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 1A0CA86EA2;\n\tSun,  3 Sep 2017 09:44:43 +0000 (UTC)","from whitealder.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id T1CmPeDzcl6f; Sun,  3 Sep 2017 09:44:40 +0000 (UTC)","from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id BD94086D8A;\n\tSun,  3 Sep 2017 09:44:40 +0000 (UTC)","from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136])\n\tby ash.osuosl.org (Postfix) with ESMTP id 2C7961C41C7\n\tfor <buildroot@lists.busybox.net>;\n\tSun,  3 Sep 2017 09:44:40 +0000 (UTC)","from localhost (localhost [127.0.0.1])\n\tby silver.osuosl.org (Postfix) with ESMTP id 2518725D7D\n\tfor <buildroot@lists.busybox.net>;\n\tSun,  3 Sep 2017 09:44:40 +0000 (UTC)","from silver.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id 5SoA6jlV0dJB for <buildroot@lists.busybox.net>;\n\tSun,  3 Sep 2017 09:44:39 +0000 (UTC)","from mail-wr0-f194.google.com (mail-wr0-f194.google.com\n\t[209.85.128.194])\n\tby silver.osuosl.org (Postfix) with ESMTPS id 1674526448\n\tfor <buildroot@buildroot.org>; Sun,  3 Sep 2017 09:44:39 +0000 (UTC)","by mail-wr0-f194.google.com with SMTP id y15so1516347wrc.4\n\tfor <buildroot@buildroot.org>; Sun, 03 Sep 2017 02:44:39 -0700 (PDT)","from localhost.localdomain\n\t(2a01cb08861073004cc40c703ef54565.ipv6.abo.wanadoo.fr.\n\t[2a01:cb08:8610:7300:4cc4:c70:3ef5:4565])\n\tby smtp.gmail.com with ESMTPSA id\n\tt135sm1972938wmt.30.2017.09.03.02.44.36\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tSun, 03 Sep 2017 02:44:36 -0700 (PDT)"],"X-Virus-Scanned":["amavisd-new at osuosl.org","amavisd-new at osuosl.org"],"X-Greylist":"domain auto-whitelisted by SQLgrey-1.7.6","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=sender:from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=tNPLmkVSrUtVNOHxCQvY0lIV+zrbo8VJgAyRmbXGX+8=;\n\tb=DxrO2Ck3nX4AQ4/vyVNscKgCbu2o4dIurV66UQA1DaXBNJy4xlFzgKxSFkWjWxKqRr\n\tn0oYIkVvpEAOQUfeuK/XMTXkibBw4HwvAt8Q/CHomyk95JW/aeUXLAYQ2ViKKgl7uu6M\n\tDHsYlB7ubfdNaO77Yzhfvv7HNBwrYYhQDaJ0YmNTZ9M/G96BCGwUl7hZTiwpbtrMMODc\n\tbi/YkWhuvMGyJsJjdpG6iB16HpMg/WLJSInSESeaTIcnEWARFO1AqdyBckTgoG+EvzmM\n\tNnFQZDMNyibYKiR6RXpXIipDgnFODAdZlXlAqsTwS67YOYNuHgkpAke2E5EjYFWxuXuo\n\tz5ng==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:sender:from:to:cc:subject:date:message-id\n\t:in-reply-to:references;\n\tbh=tNPLmkVSrUtVNOHxCQvY0lIV+zrbo8VJgAyRmbXGX+8=;\n\tb=sPQd08h4r+vvNNN7pTr3Ki3xHB7UZ5ixqW9RISDKi3krKKtJHXHjoRs+FtbmqJtLWi\n\tgczvrWA0TF+UmGkljD6AAuKlrZJLleexzUKS0gwKMUjglvQ+kfzFfT1SV+y3jVRFuZgF\n\tVSKFaCqs+Zp9tLACU/+S8M7gG2M+glREL7mPr3FJ0jnMETu2X0BgLwa1tziHM6A3fPoa\n\tmtFLPFKvNsd9azOc/3Q/Ru2qDHv75YUiJXkygzFN47iXG1njWrQrNPHwDs8bBsZyrQqG\n\tkFSnWDP+5x9Wrv8RzNHNmuMykZxwSelo3eLb/oX+ca+aVqn+q/LrnCZaaZDRohOw7BBp\n\tsOEA==","X-Gm-Message-State":"AHPjjUgbsS0SXXoKfAZ3v2xrVnkFsfBhTBsaCHSeoP8srt6vR6c4LOEU\n\t7ZMLYlgcgKY5XLns","X-Google-Smtp-Source":"ADKCNb70w/smAy67NO6KnZZcBNkDTl6KNELOCZ1xJN3b4+jfdgZZpPWn5N87y2SmpJCBfRmgR1mGKg==","X-Received":"by 10.223.147.132 with SMTP id 4mr1754219wrp.119.1504431877386; \n\tSun, 03 Sep 2017 02:44:37 -0700 (PDT)","From":"\"Yann E. MORIN\" <yann.morin.1998@free.fr>","To":"buildroot@buildroot.org","Date":"Sun,  3 Sep 2017 11:44:27 +0200","Message-Id":"<8de5375c8ca0110ebd5baaec946fed002cc7eb80.1504431850.git.yann.morin.1998@free.fr>","X-Mailer":"git-send-email 2.11.0","In-Reply-To":"<cover.1504431850.git.yann.morin.1998@free.fr>","References":"<cover.1504431850.git.yann.morin.1998@free.fr>","Cc":"Thomas Petazzoni <thomas.petazzoni@free-electrons.com>,\n\t\"Yann E. MORIN\" <yann.morin.1998@free.fr>","Subject":"[Buildroot] [PATCH 1/8] arch: introduce minimal required gcc version","X-BeenThere":"buildroot@busybox.net","X-Mailman-Version":"2.1.18-1","Precedence":"list","List-Id":"Discussion and development of buildroot <buildroot.busybox.net>","List-Unsubscribe":"<http://lists.busybox.net/mailman/options/buildroot>,\n\t<mailto:buildroot-request@busybox.net?subject=unsubscribe>","List-Archive":"<http://lists.busybox.net/pipermail/buildroot/>","List-Post":"<mailto:buildroot@busybox.net>","List-Help":"<mailto:buildroot-request@busybox.net?subject=help>","List-Subscribe":"<http://lists.busybox.net/mailman/listinfo/buildroot>,\n\t<mailto:buildroot-request@busybox.net?subject=subscribe>","MIME-Version":"1.0","Content-Type":"text/plain; charset=\"us-ascii\"","Content-Transfer-Encoding":"7bit","Errors-To":"buildroot-bounces@busybox.net","Sender":"\"buildroot\" <buildroot-bounces@busybox.net>"},"content":"Some CPU variants require that a recent-enough gcc be selected. For\nexample, ARM's cortex-a35 requires gcc-5, while cortex-a73 requires\ngcc-7. Same goes for other architectures, of course.\n\nCurrently, we hard-code every such conditions in the gcc version choice,\nas well as in the individual external toolchains.\n\nHowever, as we add even more CPU variants, the conditions are getting\nmore and more complex to write and maintain.\n\nIntroduce new symbols, that architectures can select if they have a\nspecific requirement on the gcc version. gcc and external toolchains\ncan then properly depend on those symbols.\n\nThe burden of maintaining the requirements on the gcc version now falls\ndown to the architeture, instead of being split up in gcc and all the\nexternal toolchains.\n\nAs the oldest gcc version to handle, we can either choose gcc-4.9, as\nthe odlest version we support in our internal toolchain, or choose\ngcc-4.8, as the oldest external toolchain we support (except for the\ncustom ones, but they'll be handled specifically in upcoming changes).\nWe choose to go back up to gcc-4.8.\n\nSigned-off-by: \"Yann E. MORIN\" <yann.morin.1998@free.fr>\nCc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>\n---\n arch/Config.in | 21 +++++++++++++++++++++\n 1 file changed, 21 insertions(+)","diff":"diff --git a/arch/Config.in b/arch/Config.in\nindex c10bf16809..607da36c1d 100644\n--- a/arch/Config.in\n+++ b/arch/Config.in\n@@ -261,6 +261,27 @@ config BR2_ARCH_HAS_TOOLCHAIN_BUILDROOT\n \tbool\n \tdefault y if !BR2_ARCH_HAS_NO_TOOLCHAIN_BUILDROOT\n \n+# The following symbols are selected by the individual\n+# Config.in.$ARCH files\n+config BR2_ARCH_NEEDS_GCC_AT_LEAST_4_8\n+\tbool\n+\n+config BR2_ARCH_NEEDS_GCC_AT_LEAST_4_9\n+\tbool\n+\tselect BR2_ARCH_NEEDS_GCC_AT_LEAST_4_8\n+\n+config BR2_ARCH_NEEDS_GCC_AT_LEAST_5\n+\tbool\n+\tselect BR2_ARCH_NEEDS_GCC_AT_LEAST_4_9\n+\n+config BR2_ARCH_NEEDS_GCC_AT_LEAST_6\n+\tbool\n+\tselect BR2_ARCH_NEEDS_GCC_AT_LEAST_5\n+\n+config BR2_ARCH_NEEDS_GCC_AT_LEAST_7\n+\tbool\n+\tselect BR2_ARCH_NEEDS_GCC_AT_LEAST_6\n+\n # The following string values are defined by the individual\n # Config.in.$ARCH files\n config BR2_ARCH\n","prefixes":["1/8"]}