{"id":809136,"url":"http://patchwork.ozlabs.org/api/patches/809136/?format=json","web_url":"http://patchwork.ozlabs.org/project/buildroot/patch/5326fe3900e51f3b0a2ac4fc9d750245d560802c.1504381100.git.yann.morin.1998@free.fr/","project":{"id":27,"url":"http://patchwork.ozlabs.org/api/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":"<5326fe3900e51f3b0a2ac4fc9d750245d560802c.1504381100.git.yann.morin.1998@free.fr>","list_archive_url":null,"date":"2017-09-02T19:38:49","name":"[1/4] arch: add option to disable internal toolchain backend","commit_ref":null,"pull_url":null,"state":"changes-requested","archived":false,"hash":"6073b38d6fa6a21d2c434edae6ee381dd3c4cc3e","submitter":{"id":13903,"url":"http://patchwork.ozlabs.org/api/people/13903/?format=json","name":"Yann E. MORIN","email":"yann.morin.1998@free.fr"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/buildroot/patch/5326fe3900e51f3b0a2ac4fc9d750245d560802c.1504381100.git.yann.morin.1998@free.fr/mbox/","series":[{"id":1176,"url":"http://patchwork.ozlabs.org/api/series/1176/?format=json","web_url":"http://patchwork.ozlabs.org/project/buildroot/list/?series=1176","date":"2017-09-02T19:38:49","name":"[1/4] arch: add option to disable internal toolchain backend","version":1,"mbox":"http://patchwork.ozlabs.org/series/1176/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/809136/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/809136/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=\"nrSLE6LH\"; 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 3xl5yg1XnLz9sNq\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSun,  3 Sep 2017 05:39:06 +1000 (AEST)","from localhost (localhost [127.0.0.1])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 2B4B0880A3;\n\tSat,  2 Sep 2017 19:39:05 +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 PoQpRjQgi-kP; Sat,  2 Sep 2017 19:39:03 +0000 (UTC)","from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 2D02188073;\n\tSat,  2 Sep 2017 19:39:03 +0000 (UTC)","from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136])\n\tby ash.osuosl.org (Postfix) with ESMTP id 0B1C71CE555\n\tfor <buildroot@lists.busybox.net>;\n\tSat,  2 Sep 2017 19:39:01 +0000 (UTC)","from localhost (localhost [127.0.0.1])\n\tby silver.osuosl.org (Postfix) with ESMTP id 0148E2AD0D\n\tfor <buildroot@lists.busybox.net>;\n\tSat,  2 Sep 2017 19:39:01 +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 tl-cwsnuwM4C for <buildroot@lists.busybox.net>;\n\tSat,  2 Sep 2017 19:38:59 +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 0D7F526F21\n\tfor <buildroot@buildroot.org>; Sat,  2 Sep 2017 19:38:59 +0000 (UTC)","by mail-wr0-f194.google.com with SMTP id a47so1538357wra.2\n\tfor <buildroot@buildroot.org>; Sat, 02 Sep 2017 12:38:58 -0700 (PDT)","from localhost.localdomain\n\t(2a01cb0886107300a556795e0851f8aa.ipv6.abo.wanadoo.fr.\n\t[2a01:cb08:8610:7300:a556:795e:851:f8aa])\n\tby smtp.gmail.com with ESMTPSA id\n\tt131sm1093127wmg.15.2017.09.02.12.38.55\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tSat, 02 Sep 2017 12:38:55 -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=hwiPpQOm0vDIGTR/V2xQGD1GtramaxGTvey9roBqHdY=;\n\tb=nrSLE6LHm7HixjAf2n9eTNKjDm1ajUb96zB3TaCO1zyllYouj0S0iSpDiA3CyVK1SD\n\tN9YKGUciI5VZVlJRr/Bs6enYs49seB9+UJMeeVMc1TxrB9ATcq3VDO9wNl+4I/Sbmdex\n\tgVQxv4PVI3TP8TYDAuyym2qBfwhtr6XpwuNGRE0KVdbAwj4H86cbRB0wfX13co4cx2Wi\n\t1FpVi9+rIjfSrU4aZubLOBJerw0IGywt8NCKfETZ4OMB0CoLoTPgSR/9Q/hAg9jahlum\n\togMZaR+/z1r0jn8NWXEwTJdzN2HOKHFqB67L4nA+gNohgWgyl0UTcu325iX3jTboZhhQ\n\t+PLQ==","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=hwiPpQOm0vDIGTR/V2xQGD1GtramaxGTvey9roBqHdY=;\n\tb=kj4qtdGYD0HBPN7E0GeXwvODgCxckgGwaL39O1nDvGlvN0+H4olMuJrEJOC1hNdrzw\n\tXHtwmk4wCG233EAzjpRfLKZbDbVMZrW/UEt+Lz0M5Pkq/5P91yCP27lNXjkN1HSrLjGh\n\tKTjPZLp7CfqpCLa1oRNSbkVcw1V0gmZyglQ3RV06VEK7wQUMvt5PI0cXu+KeZjArskUg\n\tMD5+rkbfI3dQ9Y+TERDI/2SueleangI00D/jE4f4+41UfETq57R89KfE825QcLceYInW\n\tU3Qzhwbd1xuG1kKUjyoOfvzcMNAkMWfzi1rPmv/fU8QD69cq7fUBq4jasTKPjc2FFIo9\n\tp8YQ==","X-Gm-Message-State":"AHPjjUhlv72XipWn2aYFOEqpR/5vGocSf1OlsDLmLprTYOKUaYL2SRWB\n\tJTno/4CwQrDdG0cs","X-Google-Smtp-Source":"ADKCNb58AYNIut0XEmur+HbGZgUpSM3xrmUQ9apseJnkcmKYd3cr65LLD23GMACQLq8/hCXtpMws+w==","X-Received":"by 10.223.151.144 with SMTP id s16mr3016050wrb.110.1504381136323;\n\tSat, 02 Sep 2017 12:38:56 -0700 (PDT)","From":"\"Yann E. MORIN\" <yann.morin.1998@free.fr>","To":"buildroot@buildroot.org","Date":"Sat,  2 Sep 2017 21:38:49 +0200","Message-Id":"<5326fe3900e51f3b0a2ac4fc9d750245d560802c.1504381100.git.yann.morin.1998@free.fr>","X-Mailer":"git-send-email 2.11.0","In-Reply-To":"<cover.1504381100.git.yann.morin.1998@free.fr>","References":"<cover.1504381100.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/4] arch: add option to disable internal\n\ttoolchain backend","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 architectures or specific cores do not have support in upstream\ngcc. Currently, they are individually listed as exclusions in the\ntoolchain choice.\n\nThis poses a maintainance burden, as the knowledge about what gcc\nversion supports what architecture is split across many places: the\ntoolchain choice, the gcc version choice, the external toolchains.\n\nAs a first step, add a blind option that architectures or individual\ncores may select to indicate they lack support in our internal backend.\n\nYes, the logic is inverted, because the very large majority of archs and\ncores do have support in upstream gcc (or in a vendor fork we support,\nlike bfin and arc). Only a very few do not, and it is much easier to\ncater to those rather than all the others.\n\nActual use of the option will come in followup patches.\n\nSigned-off-by: \"Yann E. MORIN\" <yann.morin.1998@free.fr>\nCc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>\nCc: Arnout Vandecappelle <arnout@mind.be>\n---\n arch/Config.in      | 6 ++++++\n toolchain/Config.in | 1 +\n 2 files changed, 7 insertions(+)","diff":"diff --git a/arch/Config.in b/arch/Config.in\nindex f385745e47..da893caf5a 100644\n--- a/arch/Config.in\n+++ b/arch/Config.in\n@@ -250,6 +250,12 @@ config BR2_xtensa\n \n endchoice\n \n+# For some architectures or specific cores, our internal toolchain\n+# backend is not suitable (like, missing support in upstream gcc, or\n+# no ChipCo fork exists...)\n+config BR2_ARCH_NO_INTERNAL_BACKEND\n+\tbool\n+\n # The following string values are defined by the individual\n # Config.in.$ARCH files\n config BR2_ARCH\ndiff --git a/toolchain/Config.in b/toolchain/Config.in\nindex 584d053058..919757e558 100644\n--- a/toolchain/Config.in\n+++ b/toolchain/Config.in\n@@ -43,6 +43,7 @@ choice\n config BR2_TOOLCHAIN_BUILDROOT\n \tbool \"Buildroot toolchain\"\n \tselect BR2_TOOLCHAIN_HAS_SHADOW_PASSWORDS\n+\tdepends on !BR2_ARCH_NO_INTERNAL_BACKEND\n \tdepends on !BR2_bf606\n \tdepends on !BR2_bf607\n \tdepends on !BR2_bf608\n","prefixes":["1/4"]}