From patchwork Tue Mar 22 22:21:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 1608376 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=h/oq//Ac; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=140.211.166.138; helo=smtp1.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=) Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4KNQv104B1z9s0B for ; Wed, 23 Mar 2022 09:21:32 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 95322847B7; Tue, 22 Mar 2022 22:21:30 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id R17ZDPmxYACZ; Tue, 22 Mar 2022 22:21:29 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id AB28384338; Tue, 22 Mar 2022 22:21:28 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 6C6CE1BF5B3 for ; Tue, 22 Mar 2022 22:21:15 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 67BDF40B6D for ; Tue, 22 Mar 2022 22:21:15 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp2.osuosl.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rc_DMbyDER8K for ; Tue, 22 Mar 2022 22:21:14 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 Received: from mail-pj1-x1031.google.com (mail-pj1-x1031.google.com [IPv6:2607:f8b0:4864:20::1031]) by smtp2.osuosl.org (Postfix) with ESMTPS id 485374048E for ; Tue, 22 Mar 2022 22:21:14 +0000 (UTC) Received: by mail-pj1-x1031.google.com with SMTP id mp6-20020a17090b190600b001c6841b8a52so4561711pjb.5 for ; Tue, 22 Mar 2022 15:21:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=pBVibrcR+UPcG2nYiCy9R69ko4oJVI7fB4zcjm+Jkus=; b=h/oq//AcpAJx9W9e7fSb0OaSho1m6FFbowASG9Glpn5yiQ6tEzhiIIcGosjk1G6DOJ c72MGk6TN3exLCNO9Ki/S5pBK7wT0+hAaVk1R+ZcJR3/AAaFcCIOM8h566PFucsvkqIL qDzBzg4BSHlTMldQKRR9fJbn7QDZhFgZRHjvUskvMdwolWEeBz+WGXT7DPcGA0VS5C6E e8h3cn6NZm+YInxyziWuHMcHeGv0aUlJMF4X2gzuwab1192HlcIBRQQCdfZuP6O/O8j9 M9J61M9KNBUAdO//xyvCw2n98Djf59GQEc3UfgdfXztthNyIF8sfCF5pa8iUrmPqtnKy BitA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=pBVibrcR+UPcG2nYiCy9R69ko4oJVI7fB4zcjm+Jkus=; b=nUBHjifAeM0y4/eobYLF4BdqmSQ/rQ8ifEYFwWhoH2RkPOqd3XHGrtpLY838r37hmG 469NIWxTCSdUKDJGWR7q+X8fCEm5hx9l3hDmDe4eKiekzFPTpn7bnQdFu15a+zlUkNUc UTig6386zaz+vGTEnQB1+Le4OYXMkDVHwK0nCFCAG6zYoDIxGlhuQVlZuYxFC1qTAZRz 3LbZEGJAvJc/fKla5Bq7bt6zndWbOCSRV+EQfKcc3lu3ItKRja9VRpTefHNMt0vOdeKX Id8i7yJ1eArswmE5BDkGxSkSd2CAStv9rgPcezeu/ooKUJFsIMuDpfUTaOo0TLbMIp/D /y6Q== X-Gm-Message-State: AOAM532CFuat384a3TsnQaIdFZgkxBpw8YkMSF4iVs5N+ZbVYga+GHVT wvuGMOCK051fPMZ98Yq6Y3aGVKPAwdE= X-Google-Smtp-Source: ABdhPJwbyjfHSMubcVY+D/Ee7Gw5K/tS5m8dbQS4oMlWHNz5hLHBx/RfO6C4JlxVlUb8vAduMAV8Ow== X-Received: by 2002:a17:90a:e7cc:b0:1bf:2500:a493 with SMTP id kb12-20020a17090ae7cc00b001bf2500a493mr7659108pjb.37.1647987673293; Tue, 22 Mar 2022 15:21:13 -0700 (PDT) Received: from localhost.localdomain (ip72-194-116-95.oc.oc.cox.net. [72.194.116.95]) by smtp.gmail.com with ESMTPSA id h14-20020a63384e000000b00366ba5335e7sm18415313pgn.72.2022.03.22.15.21.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Mar 2022 15:21:12 -0700 (PDT) From: Florian Fainelli To: buildroot@buildroot.org Date: Tue, 22 Mar 2022 15:21:05 -0700 Message-Id: <20220322222106.42347-2-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220322222106.42347-1-f.fainelli@gmail.com> References: <20220322222106.42347-1-f.fainelli@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/2] toolchain/Config.in: add BR2_TOOLCHAIN_GCC_AT_LEAST_12 blind option X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: opendmb@gmail.com, Florian Fainelli , mmayer@broadcom.com Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" In order to add gcc 12 support for internal and external toolchain in follow-up commits, introduce BR2_TOOLCHAIN_GCC_AT_LEAST_12 symbol. Signed-off-by: Florian Fainelli --- toolchain/Config.in | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/toolchain/Config.in b/toolchain/Config.in index d2c81217c84a..b572a89f2f85 100644 --- a/toolchain/Config.in +++ b/toolchain/Config.in @@ -117,7 +117,8 @@ config BR2_TOOLCHAIN_HAS_GCC_BUG_43744 depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_8 || \ BR2_TOOLCHAIN_GCC_AT_LEAST_9 || \ BR2_TOOLCHAIN_GCC_AT_LEAST_10 || \ - BR2_TOOLCHAIN_GCC_AT_LEAST_11 + BR2_TOOLCHAIN_GCC_AT_LEAST_11 || \ + BR2_TOOLCHAIN_GCC_AT_LEAST_12 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63261. This bug no # longer exists in gcc 8.x. @@ -150,7 +151,8 @@ config BR2_TOOLCHAIN_HAS_GCC_BUG_68485 config BR2_TOOLCHAIN_HAS_GCC_BUG_83143 bool default y if BR2_sh - depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_10 || BR2_TOOLCHAIN_GCC_AT_LEAST_11 + depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_10 || BR2_TOOLCHAIN_GCC_AT_LEAST_11 || \ + BR2_TOOLCHAIN_GCC_AT_LEAST_12 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85180. This bug no # longer exists in gcc 8.x. @@ -698,10 +700,15 @@ config BR2_TOOLCHAIN_GCC_AT_LEAST_11 bool select BR2_TOOLCHAIN_GCC_AT_LEAST_10 +config BR2_TOOLCHAIN_GCC_AT_LEAST_12 + bool + select BR2_TOOLCHAIN_GCC_AT_LEAST_11 + # This order guarantees that the highest version is set, as kconfig # stops affecting a value on the first matching default. config BR2_TOOLCHAIN_GCC_AT_LEAST string + default "12" if BR2_TOOLCHAIN_GCC_AT_LEAST_12 default "11" if BR2_TOOLCHAIN_GCC_AT_LEAST_11 default "10" if BR2_TOOLCHAIN_GCC_AT_LEAST_10 default "9" if BR2_TOOLCHAIN_GCC_AT_LEAST_9 From patchwork Tue Mar 22 22:21:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 1608377 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=B5oKOqZN; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=140.211.166.136; helo=smtp3.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=) Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4KNQvG2pwVz9s0B for ; Wed, 23 Mar 2022 09:21:46 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 6364860B26; Tue, 22 Mar 2022 22:21:44 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6WUDNc-OyoUk; Tue, 22 Mar 2022 22:21:42 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp3.osuosl.org (Postfix) with ESMTP id 4F3F260AF2; Tue, 22 Mar 2022 22:21:41 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id B09E81BF5B3 for ; Tue, 22 Mar 2022 22:21:16 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id A95DF40B6F for ; Tue, 22 Mar 2022 22:21:16 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp2.osuosl.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1TtymRXK0RQO for ; Tue, 22 Mar 2022 22:21:15 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) by smtp2.osuosl.org (Postfix) with ESMTPS id 913CF4048E for ; Tue, 22 Mar 2022 22:21:15 +0000 (UTC) Received: by mail-pj1-x1033.google.com with SMTP id b8so16800065pjb.4 for ; Tue, 22 Mar 2022 15:21:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=iBn7k58gCgZxZygH1aVWqlLksXIfZfn8+2vFb2GY1Fs=; b=B5oKOqZN7uliDreaf7FZRLGFQe498C/ZdAh9VOyPEeHOkSgdPjOG+hK8s/5mQfDcvm PeLRXVmx1zObTQ78OpcxktHpLOHCrLpKqrlJ41BqmafPiJFIq8mJddrfJmE1TMyCBa87 U7/UdSAaBJpb64KdKb+Lgyud7SrE5AltHyjEWCJDvR9LjuLI+ZBGkAnh+ZmYLIUx0IGp imly+ccKNsV74FBaGtWlrJa6MgX6RKADhU2JRNXC7UNWysOeXJYYYVQYZwd/627ehRsX FyZTcVoqBuiAw8NcRU8blDcvwTd4Yakfo2hWrgGoXE2E6ISWuaV+tZzU7wP/EXi+MOhd l4yg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=iBn7k58gCgZxZygH1aVWqlLksXIfZfn8+2vFb2GY1Fs=; b=rWev5+Z3A0wIZL8WTriLslDYKDMxgJG2wxq56yppOQiNQaMGgV8M4GoMZKujaQbm+F a5PC+f9VBn+lpUQw/K3DZ/UJiLLEnGVT5NS7qtGUJvTwD+aKnkAx6//i+hoepyaQtuXQ J8GgrlhkLC0KxHajRqWc1/kJyEUIpMKg/GNL9jdokBPPhkTtBXsdbpQMhSuQbADi+2gu XgDRJ2SnMg0cc7a7GRQ7UOA23eL8IHQTTX6He8q9+faibJkcTZp8zWkCAINQ3n9kEdXB jEbx6u3zmmm+5bvkmyrIYC/iCwLEu3tp7o/y1ZdUqyr2wjHzanq8/f3MYuzFHP0P/+Ej mjyQ== X-Gm-Message-State: AOAM533qxOg2vxpmLJtu7oWEzNkrd/jBZ6iBLbEYYmR8us6jP9ijhYxE 6hiVVhESCJwDnH2twJ2ycEYUVpivG9g= X-Google-Smtp-Source: ABdhPJxy+pJ3VAlosSbwQIWsFfn5e1EejAlURAoaxyYpFVWe25AoMHmwvQE0gRA3OGrOhH0D8sGp1w== X-Received: by 2002:a17:90b:4c8f:b0:1c7:7bc0:954a with SMTP id my15-20020a17090b4c8f00b001c77bc0954amr2273524pjb.214.1647987674547; Tue, 22 Mar 2022 15:21:14 -0700 (PDT) Received: from localhost.localdomain (ip72-194-116-95.oc.oc.cox.net. [72.194.116.95]) by smtp.gmail.com with ESMTPSA id h14-20020a63384e000000b00366ba5335e7sm18415313pgn.72.2022.03.22.15.21.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Mar 2022 15:21:14 -0700 (PDT) From: Florian Fainelli To: buildroot@buildroot.org Date: Tue, 22 Mar 2022 15:21:06 -0700 Message-Id: <20220322222106.42347-3-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220322222106.42347-1-f.fainelli@gmail.com> References: <20220322222106.42347-1-f.fainelli@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH 2/2] toolchain/toolchain-external/toolchain-external-custom: add gcc 12 version selection X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: opendmb@gmail.com, Florian Fainelli , mmayer@broadcom.com Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" This patch allows to use an external toolchain based on gcc 12. Signed-off-by: Florian Fainelli --- .../toolchain-external-custom/Config.in.options | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/toolchain/toolchain-external/toolchain-external-custom/Config.in.options b/toolchain/toolchain-external/toolchain-external-custom/Config.in.options index 9346fa3feb75..683204e56ebd 100644 --- a/toolchain/toolchain-external/toolchain-external-custom/Config.in.options +++ b/toolchain/toolchain-external/toolchain-external-custom/Config.in.options @@ -31,6 +31,10 @@ choice Set to the gcc version that is used by your external toolchain. +config BR2_TOOLCHAIN_EXTERNAL_GCC_12 + bool "12.x" + select BR2_TOOLCHAIN_GCC_AT_LEAST_12 + config BR2_TOOLCHAIN_EXTERNAL_GCC_11 bool "11.x" select BR2_TOOLCHAIN_GCC_AT_LEAST_11