From patchwork Wed May 8 15:07:06 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Naour X-Patchwork-Id: 1097083 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="FX5xooCX"; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 44zfwT224Wz9s4Y for ; Thu, 9 May 2019 01:07:37 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 9953730D67; Wed, 8 May 2019 15:07:34 +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 AA9dqdX7Ec7k; Wed, 8 May 2019 15:07:29 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 8FA4D227F8; Wed, 8 May 2019 15:07:29 +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 1FC681BF25F for ; Wed, 8 May 2019 15:07:29 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 1A8681FE0A for ; Wed, 8 May 2019 15:07:29 +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 GFuc5klIQ5qi for ; Wed, 8 May 2019 15:07:27 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f68.google.com (mail-wr1-f68.google.com [209.85.221.68]) by silver.osuosl.org (Postfix) with ESMTPS id A06A122650 for ; Wed, 8 May 2019 15:07:26 +0000 (UTC) Received: by mail-wr1-f68.google.com with SMTP id l2so27689847wrb.9 for ; Wed, 08 May 2019 08:07:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=fQEt5zDPxSTSu6b3F0vgj452jx3C82A6cvMYQg6xkJE=; b=FX5xooCX3D+1RSV27egO2MYkaACD/43imaHVaROUiHo0xnADBWkRHC+OA6tXZSKeBM xpbHu6lq5f0mP0JUNS795tsAZGziTbob5HJQll1CQYD19zbTLnOlaHNo+mc2WeDFCsYq qd7SxMlcP9PBvghaHAwZRdcgbLcfN/VtyZLEWqQZ+nex8drjBmUmI7wDyu2KTRj/6m0M 9V1qJiuBePBFB+c5bH7hca1pyC/IeWLxYZtxraq9YqTYS63PekE/S4dXa40oFDQJuxnB wQsJpqP2PCbjdolWwk5Vuk4Yn6l1Ekk8sqZ1EShyYZwQigQuK84XuxKSLtV5S9bYX52o muBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=fQEt5zDPxSTSu6b3F0vgj452jx3C82A6cvMYQg6xkJE=; b=WWKZw+gW04McFcfxTcsgFr5uDeFusO2jIqv6hbiHiDpwWPIyDl38xJmhwq3N9dGClB gXdQmUMXrgPGPNwMPUCXVZzZXVZL0NbwVMvjyVubsRp6WW5YqQ7zRvP3jaObcVAViLC4 eWqT6uQ7AAzThsOV+JtUj42ZeZ/Occ6zOPhOAPRpdtfhWpxvlgGLaSqnOwOYWeGv3Ylv M/JCAo70vNtYPIsqLIdWcTrdgEVyXBa36LI4FxYc6Y7G1bLaJfMLDJJQML2NoOw1eVIp yJfT7JX7Ta+GaTGbWubhcXoyLu+v7w6IDKL5X3eUZ/V0G42ESVCrb8Vcg+c1W6a3EpiD 7Yuw== X-Gm-Message-State: APjAAAVe34+1b9OrynwAj75nk5bJJObEsgKeQ9YqjUbrlaNciyzZOo8c JHBd+6SLAOfffaeeNlI1a7N5/R0x X-Google-Smtp-Source: APXvYqzHxu+EvE5gdoiluyWRMVVgeB8Qqlnm8xIFmwfa3KAZ4rkbP/UrdSLIYvspesRW7bPDARmzcw== X-Received: by 2002:adf:bac9:: with SMTP id w9mr27500673wrg.256.1557328044783; Wed, 08 May 2019 08:07:24 -0700 (PDT) Received: from localhost.localdomain (2a01cb0589880c008a3268f7cbc0fc5c.ipv6.abo.wanadoo.fr. [2a01:cb05:8988:c00:8a32:68f7:cbc0:fc5c]) by smtp.gmail.com with ESMTPSA id o6sm36315359wrh.55.2019.05.08.08.07.23 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 08 May 2019 08:07:23 -0700 (PDT) From: Romain Naour To: buildroot@buildroot.org Date: Wed, 8 May 2019 17:07:06 +0200 Message-Id: <20190508150720.27946-2-romain.naour@gmail.com> X-Mailer: git-send-email 2.14.5 In-Reply-To: <20190508150720.27946-1-romain.naour@gmail.com> References: <20190508150720.27946-1-romain.naour@gmail.com> Subject: [Buildroot] [PATCH v2 01/15] package/glibc/arc: fix build issue with gcc-9.1 X-BeenThere: buildroot@busybox.net 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: Evgeniy Didin , Romain Naour , Alexey Brodkin , Eugeniy Paltsev MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Backport from upstream [1] to fix build issue with glibc arc-2018.09-release (based on glibc 2.28) and gcc 9.1 [2]] Using glibc arc-2.29-2019.02.08 or the upcoming arc-2019.03 release include this patch. The upstream patch [1] modify mostly x86_64 files, but also two generic headers where the new __attribute_copy__() macro is defined *and* used to complement existing attribute-related macros. So, it is not much the x86_64 part we're interested in, but the generic two headers, which changes percolate to the various functions via the various attribute macros... [1] https://sourceware.org/git/?p=glibc.git;a=commit;h=1626a1cfcd6ba1cc64721be1036c2873211d499b [2] https://gitlab.com/kubu93/toolchains-builder/-/jobs/205435682 Signed-off-by: Romain Naour Cc: Alexey Brodkin Cc: Evgeniy Didin Cc: Eugeniy Paltsev --- v2: remove x86_64 part of the backported patch (Yann). commit log (Yann) --- ...0001-Add-support-for-GCC-9-attribute-copy.patch | 160 +++++++++++++++++++++ 1 file changed, 160 insertions(+) create mode 100644 package/glibc/arc-2018.09-release/0001-Add-support-for-GCC-9-attribute-copy.patch diff --git a/package/glibc/arc-2018.09-release/0001-Add-support-for-GCC-9-attribute-copy.patch b/package/glibc/arc-2018.09-release/0001-Add-support-for-GCC-9-attribute-copy.patch new file mode 100644 index 0000000000..0c0a8a9337 --- /dev/null +++ b/package/glibc/arc-2018.09-release/0001-Add-support-for-GCC-9-attribute-copy.patch @@ -0,0 +1,160 @@ +From 3e0c7985c9535304d87af3ad728f5f6d34557f0d Mon Sep 17 00:00:00 2001 +From: Martin Sebor +Date: Fri, 9 Nov 2018 17:24:12 -0700 +Subject: [PATCH] Add support for GCC 9 attribute copy. + +GCC 9 has gained an enhancement to help detect attribute mismatches +between alias declarations and their targets. It consists of a new +warning, -Wattribute-alias, an enhancement to an existing warning, +-Wmissing-attributes, and a new attribute called copy. + +The purpose of the warnings is to help identify either possible bugs +(an alias declared with more restrictive attributes than its target +promises) or optimization or diagnostic opportunities (an alias target +missing some attributes that it could be declared with that might +benefit analysis and code generation). The purpose of the new +attribute is to easily apply (almost) the same set of attributes +to one declaration as those already present on another. + +As expected (and intended) the enhancement triggers warnings for +many alias declarations in Glibc code. This change, tested on +x86_64-linux, avoids all instances of the new warnings by making +use of the attribute where appropriate. To fully benefit from +the enhancement Glibc will need to be compiled with + -Wattribute-alias=2 and remaining warnings reviewed and dealt with +(there are a couple of thousand but most should be straightforward +to deal with). + +ChangeLog: + + * include/libc-symbols.h (__attribute_copy__): Define macro unless + it's already defined. + (_strong_alias): Use __attribute_copy__. + (_weak_alias, __hidden_ver1, __hidden_nolink2): Same. + * misc/sys/cdefs.h (__attribute_copy__): New macro. + * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__. + * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same. + * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same. + * sysdeps/x86_64/multiarch/memset.c (memset): Same. + * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same. + * sysdeps/x86_64/multiarch/strcat.c (strcat): Same. + * sysdeps/x86_64/multiarch/strchr.c (strchr): Same. + * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same. + * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same. + * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same. + * sysdeps/x86_64/multiarch/strlen.c (strlen): Same. + * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same. + * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same. + * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same. + * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same. + * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same. + * sysdeps/x86_64/multiarch/strspn.c (strspn): Same. + +Using glibc arc-2.29-2019.02.08 or the upcoming arc-2019.03 release include this patch. + +[1] https://sourceware.org/git/?p=glibc.git;a=commit;h=1626a1cfcd6ba1cc64721be1036c2873211d499b +[2] https://gitlab.com/kubu93/toolchains-builder/-/jobs/205435682 + +Signed-off-by: Romain Naour +[Romain: + - Backport from upstream [1] to fix build issue with glibc arc-2018.09-release + (based on glibc 2.28) and gcc 9.1 [2] + - Also drop the x86-64 related hunks to avoid confusion. +] +Cc: Alexey Brodkin +Cc: Evgeniy Didin +Cc: Eugeniy Paltsev +--- + include/libc-symbols.h | 20 +++++++++++++++----- + misc/sys/cdefs.h | 10 ++++++++++ + 2 files changed, 25 insertions(+), 5 deletions(-) + +diff --git a/include/libc-symbols.h b/include/libc-symbols.h +index 8b9273c13a..e71a479e84 100644 +--- a/include/libc-symbols.h ++++ b/include/libc-symbols.h +@@ -125,6 +125,11 @@ + # define ASM_LINE_SEP ; + #endif + ++#ifndef __attribute_copy__ ++/* Provide an empty definition when cdefs.h is not included. */ ++# define __attribute_copy__(arg) ++#endif ++ + #ifndef __ASSEMBLER__ + /* GCC understands weak symbols and aliases; use its interface where + possible, instead of embedded assembly language. */ +@@ -132,7 +137,8 @@ + /* Define ALIASNAME as a strong alias for NAME. */ + # define strong_alias(name, aliasname) _strong_alias(name, aliasname) + # define _strong_alias(name, aliasname) \ +- extern __typeof (name) aliasname __attribute__ ((alias (#name))); ++ extern __typeof (name) aliasname __attribute__ ((alias (#name))) \ ++ __attribute_copy__ (name); + + /* This comes between the return type and function name in + a function definition to make that definition weak. */ +@@ -143,14 +149,16 @@ + If weak aliases are not available, this defines a strong alias. */ + # define weak_alias(name, aliasname) _weak_alias (name, aliasname) + # define _weak_alias(name, aliasname) \ +- extern __typeof (name) aliasname __attribute__ ((weak, alias (#name))); ++ extern __typeof (name) aliasname __attribute__ ((weak, alias (#name))) \ ++ __attribute_copy__ (name); + + /* Same as WEAK_ALIAS, but mark symbol as hidden. */ + # define weak_hidden_alias(name, aliasname) \ + _weak_hidden_alias (name, aliasname) + # define _weak_hidden_alias(name, aliasname) \ + extern __typeof (name) aliasname \ +- __attribute__ ((weak, alias (#name), __visibility__ ("hidden"))); ++ __attribute__ ((weak, alias (#name), __visibility__ ("hidden"))) \ ++ __attribute_copy__ (name); + + /* Declare SYMBOL as weak undefined symbol (resolved to 0 if not defined). */ + # define weak_extern(symbol) _weak_extern (weak symbol) +@@ -532,7 +540,8 @@ for linking") + # define __hidden_ver1(local, internal, name) \ + extern __typeof (name) __EI_##name __asm__(__hidden_asmname (#internal)); \ + extern __typeof (name) __EI_##name \ +- __attribute__((alias (__hidden_asmname (#local)))) ++ __attribute__((alias (__hidden_asmname (#local)))) \ ++ __attribute_copy__ (name) + # define hidden_ver(local, name) __hidden_ver1(local, __GI_##name, name); + # define hidden_data_ver(local, name) hidden_ver(local, name) + # define hidden_def(name) __hidden_ver1(__GI_##name, name, name); +@@ -545,7 +554,8 @@ for linking") + # define __hidden_nolink1(local, internal, name, version) \ + __hidden_nolink2 (local, internal, name, version) + # define __hidden_nolink2(local, internal, name, version) \ +- extern __typeof (name) internal __attribute__ ((alias (#local))); \ ++ extern __typeof (name) internal __attribute__ ((alias (#local))) \ ++ __attribute_copy__ (name); \ + __hidden_nolink3 (local, internal, #name "@" #version) + # define __hidden_nolink3(local, internal, vername) \ + __asm__ (".symver " #internal ", " vername); +diff --git a/misc/sys/cdefs.h b/misc/sys/cdefs.h +index 3f6fe3cc85..8d585680a6 100644 +--- a/misc/sys/cdefs.h ++++ b/misc/sys/cdefs.h +@@ -431,6 +431,16 @@ + # define __attribute_nonstring__ + #endif + ++/* Undefine (also defined in libc-symbols.h). */ ++#undef __attribute_copy__ ++#if __GNUC_PREREQ (9, 0) ++/* Copies attributes from the declaration or type referenced by ++ the argument. */ ++# define __attribute_copy__(arg) __attribute__ ((__copy__ (arg))) ++#else ++# define __attribute_copy__(arg) ++#endif ++ + #if (!defined _Static_assert && !defined __cplusplus \ + && (defined __STDC_VERSION__ ? __STDC_VERSION__ : 0) < 201112 \ + && (!__GNUC_PREREQ (4, 6) || defined __STRICT_ANSI__)) +-- +2.14.5 + From patchwork Wed May 8 15:07:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Naour X-Patchwork-Id: 1097090 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="u3AUuzvi"; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 44zfwk4bnSz9s7h for ; Thu, 9 May 2019 01:07:50 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 05AA130E40; Wed, 8 May 2019 15:07:46 +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 bi8t1eO++9n0; Wed, 8 May 2019 15:07:35 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 51E9D30CC6; Wed, 8 May 2019 15:07:32 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id A4D901BF25F for ; Wed, 8 May 2019 15:07:29 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 6577886502 for ; Wed, 8 May 2019 15:07:29 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mvHuFG6t5p0I for ; Wed, 8 May 2019 15:07:28 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f68.google.com (mail-wr1-f68.google.com [209.85.221.68]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 0542E864C4 for ; Wed, 8 May 2019 15:07:28 +0000 (UTC) Received: by mail-wr1-f68.google.com with SMTP id a12so17565952wrn.4 for ; Wed, 08 May 2019 08:07:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=OUYhHy0P0xAB9cE6wLr5XU7e0I1plJ4Nmb9sQybVVbs=; b=u3AUuzviv1WlSHi4+OFWUru+Q92i38hD9qGA6UkYvWLMikkFvYipkFzybzomhjvEKQ zFCugqr6rc+E5I78xu6iFRlRMPuVJkwHgfvrfQ9GYPGIoDfLS9dBDT9+srkqfaTvkXs5 1eMgzSwee0FQXIUedMxYxvhoYM7bHoeOL1vQDsEeOr2f4pxoZLEhRpACRlF9v6dXKv8M iA69uJ5VUT2Ozs5kcBAdTbpRZvjP4+GsM7QeEk9Zu3Sbu9njzUyGqULlpxRE2OwSaOd+ 2/uMxX9V9Gl7H8WRujfkNrtpixJzswo1p9+uNicu6gsLyj5SvKXeHnOLRuYh6zRUa9cl 2/xg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=OUYhHy0P0xAB9cE6wLr5XU7e0I1plJ4Nmb9sQybVVbs=; b=ULa+IIS19ZdI2epEKwD3DH/ubVqXMVr2KzJMURXcTRAsvKDptQQzKJsFad0rKDWSYt WPhDrapaCv67YGNGGKoB4gnkb4da3fwpkCbBxboYk4Jcy7SOjhsNWHmw5uN2htNafI8C d0QJrML+LpnsMis0dEbWjHygvCmzT7VbZnY1TTf0QYNnQi1MIiU9mG3xTqaX6tEbOcym RoPJKuLrmaOu6DWo9AHi8Tdbm/nbsy3F/okyzz+FpynmMC+FtZApeXXlDx/0tW1Ga4oy 8R0epDV+IuOOIihmvKRh+qyaKgUqxG+Q1eJ6hb7KcoF9slNhxeKq46NGXWWC7SwB3YU3 qgRg== X-Gm-Message-State: APjAAAVvaRsezuHgT+XKXTBW8iDAxV1/4/xpMSvB71dk0EDfC9MN/LKW sH1gUPOaZT7XbAWUK+BaNqh2uYK4 X-Google-Smtp-Source: APXvYqyTlSvLy/duwgNqpMxN5mZSmzVYclMJw6xc+fsrpfFdPrLzPzLHtoI7u4G5sDIhdS+xqCY3hQ== X-Received: by 2002:adf:b3d1:: with SMTP id x17mr12253372wrd.31.1557328046131; Wed, 08 May 2019 08:07:26 -0700 (PDT) Received: from localhost.localdomain (2a01cb0589880c008a3268f7cbc0fc5c.ipv6.abo.wanadoo.fr. [2a01:cb05:8988:c00:8a32:68f7:cbc0:fc5c]) by smtp.gmail.com with ESMTPSA id o6sm36315359wrh.55.2019.05.08.08.07.24 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 08 May 2019 08:07:25 -0700 (PDT) From: Romain Naour To: buildroot@buildroot.org Date: Wed, 8 May 2019 17:07:07 +0200 Message-Id: <20190508150720.27946-3-romain.naour@gmail.com> X-Mailer: git-send-email 2.14.5 In-Reply-To: <20190508150720.27946-1-romain.naour@gmail.com> References: <20190508150720.27946-1-romain.naour@gmail.com> Subject: [Buildroot] [PATCH v2 02/15] linux: disable Werror for powerpc kernels X-BeenThere: buildroot@busybox.net 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: Romain Naour MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From patch [1] included in kernel >= 5.0: "The upcoming GCC 9 release extends the -Wmissing-attributes warnings (enabled by -Wall) to C and aliases: it warns when particular function attributes are missing in the aliases but not in their target. In particular, it triggers for all the init/cleanup_module aliases in the kernel (defined by the module_init/exit macros), ending up being very noisy. These aliases point to the __init/__exit functions of a module, which are defined as __cold (among other attributes). However, the aliases themselves do not have the __cold attribute. Since the compiler behaves differently when compiling a __cold function as well as when compiling paths leading to calls to __cold functions, the warning is trying to point out the possibly-forgotten attribute in the alias." Werror is set by default while building ppc kernel [2], but some warning can be introduced while building current kernel with newer compiler (for example building kernel 4.19 with gcc 9.1). For the same reason why we remove Werror in packages's compiler flags. Building with Werror is not bulletproof when we start using a newer compiler that introduce new warnings. This is the case here. Also this option is a bit strange since it's specific to ppc kernels: "The intention is to make it harder for people to inadvertantly introduce warnings in the arch/powerpc code." Other kernel developers on other arch may be interested by a similar/more generic option. So, It's clearly intended for kernel developers. Instead of backporting this patch [1] to kernel 4.19, select unconditionally the Kconfig option CONFIG_PPC_DISABLE_WERROR that allow to disable Werror. Fixes: https://gitlab.com/kubu93/toolchains-builder/-/jobs/205435741 [1] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=a6e60d84989fa0e91db7f236eda40453b0e44afa [2] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=ba55bd74360ea4b8b95e73ed79474d37ff482b36 [3] https://gitlab.com/bootlin/toolchains-builder Fix-suggested-by: Yann E. MORIN Signed-off-by: Romain Naour --- v2: add a shared fragment in board/fragments/linux and update qemu ppc* defconfigs. (Arnout) v3: commit log (Yann) enable the option from linux.mk instead of the defconfig. --- linux/linux.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/linux/linux.mk b/linux/linux.mk index 51fd41fa15..85364451a8 100644 --- a/linux/linux.mk +++ b/linux/linux.mk @@ -315,6 +315,8 @@ define LINUX_KCONFIG_FIXUP_CMDS $(LINUX_FIXUP_CONFIG_ENDIANNESS) $(if $(BR2_arm)$(BR2_armeb), $(call KCONFIG_ENABLE_OPT,CONFIG_AEABI,$(@D)/.config)) + $(if $(BR2_powerpc)$(BR2_powerpc64)$(BR2_powerpc64le), + $(call KCONFIG_ENABLE_OPT,CONFIG_PPC_DISABLE_WERROR,$(@D)/.config)) $(if $(BR2_TARGET_ROOTFS_CPIO), $(call KCONFIG_ENABLE_OPT,CONFIG_BLK_DEV_INITRD,$(@D)/.config)) # As the kernel gets compiled before root filesystems are From patchwork Wed May 8 15:07:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Naour X-Patchwork-Id: 1097085 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@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; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="WAzPscm0"; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 44zfwV3Xw7z9s9T for ; Thu, 9 May 2019 01:07:37 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id DD80087077; Wed, 8 May 2019 15:07:34 +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 2UXVToBuChoi; Wed, 8 May 2019 15:07:33 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 037DE87043; Wed, 8 May 2019 15:07:33 +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 EBADB1BF25F for ; Wed, 8 May 2019 15:07:31 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id E930730CC6 for ; Wed, 8 May 2019 15:07:31 +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 ChGni4MNr8xg for ; Wed, 8 May 2019 15:07:29 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f65.google.com (mail-wm1-f65.google.com [209.85.128.65]) by silver.osuosl.org (Postfix) with ESMTPS id 42A5A1FE0A for ; Wed, 8 May 2019 15:07:29 +0000 (UTC) Received: by mail-wm1-f65.google.com with SMTP id b203so2561996wmb.4 for ; Wed, 08 May 2019 08:07:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=L9oHiwZWyf3ZgVGgz1jwaqolmrXNG3Pa6U+UjrTBlhw=; b=WAzPscm0rD0r35SCXkgb5Muay5UhE6NYPtwpY5PuVmFnelhOH+iSamO+f87cM11Pvu jtHVDUcM/Y2wCvXqEB6WUXUGCiPmWlbi05QKSxIPMyEv/1vwKTwluW6ncLO81TH3nY1h Q3AL1GXLRTWekVFJvzhmFsytCjRmnwAs7jZwWrqGcgm3kdgjzvde1pgnJNhyAOifnvXZ xQV29WH1tc210pZ5WtIdb+2UhRIAtNWCnXfUowTNb23z2cg28JwVMlMgHgaRFTAZh+rq 9Bj2Wza1LgXGKK+NO4QGEGODwtx8LmHG2aij8imvvndnW7FIQyFCaJt3c05EipxeeBw8 dKYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=L9oHiwZWyf3ZgVGgz1jwaqolmrXNG3Pa6U+UjrTBlhw=; b=XPmY77YdETMRWE/Kz6wXLMUPQpA2Ih9JZtIN5emzebghvlq6aQEYAY+kWD0u4wgMDa oEdaDFGSWUFh3apN8NLh9JSQNBuEV0tjTCp9f+NwnnO78xTCJ9E/o+J4jAjMBHQmbQnS FN/xJpmejAmwbYH0D02FhPCk9ms8h5iWnnqpFrM0PT8s4e7P48H6lpxcIzSlklJ+9gmx jDQXpchYkHtAQ/bjJsx9BwvyEcQgR14bSSai+mZ58XYP/7VMAu0BqdifTnfKHyOmt10P 77s7XxYT+ZFmeWDtsnBHcZyYhjqCdWzC66wqqUvyksj2I8ca4hGRI0S/SBc0Zr2VBIUt K7eg== X-Gm-Message-State: APjAAAXa8E3neunjDbPTEwUIV0Xp3HkenatTkbT7Bj7k78FafCUTKVaF BCRyNVgof8QfjEHGSWI0LrutbJXb X-Google-Smtp-Source: APXvYqxB6U9LeT5fo6ny+yfcIFWlGcb/pmrY/9Z6dccayFJfVvveb2033Viy7nGIv/KpAqqLBNfgaQ== X-Received: by 2002:a1c:e90f:: with SMTP id q15mr3622141wmc.1.1557328047399; Wed, 08 May 2019 08:07:27 -0700 (PDT) Received: from localhost.localdomain (2a01cb0589880c008a3268f7cbc0fc5c.ipv6.abo.wanadoo.fr. [2a01:cb05:8988:c00:8a32:68f7:cbc0:fc5c]) by smtp.gmail.com with ESMTPSA id o6sm36315359wrh.55.2019.05.08.08.07.26 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 08 May 2019 08:07:26 -0700 (PDT) From: Romain Naour To: buildroot@buildroot.org Date: Wed, 8 May 2019 17:07:08 +0200 Message-Id: <20190508150720.27946-4-romain.naour@gmail.com> X-Mailer: git-send-email 2.14.5 In-Reply-To: <20190508150720.27946-1-romain.naour@gmail.com> References: <20190508150720.27946-1-romain.naour@gmail.com> Subject: [Buildroot] [PATCH v2 03/15] [RFC] package/uclibc: remove asm constraint X-BeenThere: buildroot@busybox.net 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: Romain Naour MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" uClibc-ng don't build with gcc 9.1 [1] due to a new check that "catch illegal asm constraint usage" [2]. gcc 9.1 print this error: "invalid hard register usage between earlyclobber operand and input operand" The asm constraint is present in uClibc since it support sparc (back in 2002)[3]. Note: There is no such constraint is Glibc counterpart code [4]. [1] https://gitlab.com/kubu93/toolchains-builder/-/jobs/205435757 [2] https://github.com/gcc-mirror/gcc/commit/b782636f28f5c378897c238081d28d7a4a6ca578 [3] https://cgit.uclibc-ng.org/cgi/cgit/uclibc-ng.git/commit/?id=3b6d086531102b6d09ce852feb1e370d5dca3ce9 [4] https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/unix/sysv/linux/sparc/sysdep.h;h=981b2a26b7a91093f821c97876e55bc4be2d9f8a;hb=HEAD Signed-off-by: Romain Naour Cc: Waldemar Brodkorb --- I did not fully analyze the asm code to understand why the constraint is present. I lightly tested using qemu_sparc_ss10_defconfig. Any help is welcome :) --- ...FC-sparc-syscalls.h-remove-asm-constraint.patch | 46 ++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 package/uclibc/0003-RFC-sparc-syscalls.h-remove-asm-constraint.patch diff --git a/package/uclibc/0003-RFC-sparc-syscalls.h-remove-asm-constraint.patch b/package/uclibc/0003-RFC-sparc-syscalls.h-remove-asm-constraint.patch new file mode 100644 index 0000000000..050dc573b0 --- /dev/null +++ b/package/uclibc/0003-RFC-sparc-syscalls.h-remove-asm-constraint.patch @@ -0,0 +1,46 @@ +From 1854c332efa0ed5b9140d8df2a983625a1e2d9ef Mon Sep 17 00:00:00 2001 +From: Romain Naour +Date: Sun, 5 May 2019 10:56:30 +0200 +Subject: [PATCH] [RFC] sparc: syscalls.h: remove asm constraint + +uClibc-ng don't build with gcc 9.1 [1] due to a new check that +"catch illegal asm constraint usage" [2]. + +gcc 9.1 print this error: +"invalid hard register usage between earlyclobber operand and input operand" + +The asm constraint is present in uClibc since it support sparc (back in 2002)[3]. + +Note: There is no such constraint is Glibc counterpart code [4]. + +[1] https://gitlab.com/kubu93/toolchains-builder/-/jobs/205435757 +[2] https://github.com/gcc-mirror/gcc/commit/b782636f28f5c378897c238081d28d7a4a6ca578 +[3] https://cgit.uclibc-ng.org/cgi/cgit/uclibc-ng.git/commit/?id=3b6d086531102b6d09ce852feb1e370d5dca3ce9 +[4] https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/unix/sysv/linux/sparc/sysdep.h;h=981b2a26b7a91093f821c97876e55bc4be2d9f8a;hb=HEAD + +Signed-off-by: Romain Naour +Cc: Waldemar Brodkorb +--- +I did not fully analyze the asm code to understand why the constraint is present. +I lightly tested using qemu_sparc_ss10_defconfig. +Any help is welcome :) +--- + libc/sysdeps/linux/sparc/bits/syscalls.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/libc/sysdeps/linux/sparc/bits/syscalls.h b/libc/sysdeps/linux/sparc/bits/syscalls.h +index 75af7a1573..e52ab98466 100644 +--- a/libc/sysdeps/linux/sparc/bits/syscalls.h ++++ b/libc/sysdeps/linux/sparc/bits/syscalls.h +@@ -33,7 +33,7 @@ + register long __g1 __asm__("g1") = sys_num; \ + LOAD_ARGS_##nr(args) \ + __asm__ __volatile__( __SYSCALL_STRING \ +- : "=r" (__res), "=&r" (__o0) \ ++ : "=r" (__res), "=r" (__o0) \ + : "1" (__o0) ASM_ARGS_##nr, "r" (__g1) \ + : __SYSCALL_CLOBBERS ); \ + } \ +-- +2.14.5 + From patchwork Wed May 8 15:07:09 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Naour X-Patchwork-Id: 1097086 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="bLMK4PzC"; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 44zfwb1PLWz9s4Y for ; Thu, 9 May 2019 01:07:43 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 2C11E87F9F; Wed, 8 May 2019 15:07:38 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EtfKVewX3s9A; Wed, 8 May 2019 15:07:33 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id B78D387F45; Wed, 8 May 2019 15:07:33 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 0B69F1BF983 for ; Wed, 8 May 2019 15:07:32 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 0913587043 for ; Wed, 8 May 2019 15:07:32 +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 1Qg--t9gRWUA for ; Wed, 8 May 2019 15:07:30 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f67.google.com (mail-wm1-f67.google.com [209.85.128.67]) by whitealder.osuosl.org (Postfix) with ESMTPS id A863B87042 for ; Wed, 8 May 2019 15:07:30 +0000 (UTC) Received: by mail-wm1-f67.google.com with SMTP id p21so3730942wmc.0 for ; Wed, 08 May 2019 08:07:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=w5SPOuFO2WZrStgS19qD66u7600L/WxlV8k7Fqt5Uts=; b=bLMK4PzCrYdVH8CEmxKDrx/GpVhiQaDWVHRJUdMtPMcR/edHmUYJCL1C29DgttnA88 GnGUj0bKygHfn9Tc+5doEXrA3lDkENEalWQuJJm6i/POIfZ7fUKSiWXrBuPyisEU3hWB mZHjB22B0QxDmv55boANt6Bw6bCLrMBPKuL9I1LpgLpgOJfvaDCdGNaXnGx9JtNv1OM4 RKcPXxMIacHZvw6XVTi2ibfPzwsc9E1xackSVJkfCSLurgi9GNjY2bqfLqm8skqfYItR uDyYlV3X6HxW4LC3nkWDAaWVqebRd1tqb7SEkipaC0rofBm8DbYaQa7h8EHxkI9XufK6 Nwbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=w5SPOuFO2WZrStgS19qD66u7600L/WxlV8k7Fqt5Uts=; b=SeEuL+1a3uT4Y9z8TD7X+K6f5TiFtbTmmY9ZLmJGNOWNorOSFVkjinTs8BocQhWv3C ilt4KryQ3KeocXTTNej/b3qIv+F/kZH+ipC9cMOiswIXOtzMYC3g2t3VcbiPsUM16uUY ly1cb7W7KGfK+eqenL24zFYCBfh6LXv9SXKxvkDIfeAhU14tIuh+ofe6ZItZtoz/qO9d dDNtCYMY69BDfk3M/zbcNUHlI+N70e3MZvwHpILPfgdCK46iF4Nh39U0m/N62PXvsf8V A/2b3W75Q/wS+pCg48bm6PK6rkc5JH+j+czVaEwaoJAKpGUcdQSYs2B2fkwWOWe5E6cF 7B6g== X-Gm-Message-State: APjAAAXCRNSFAYUuhGv78mj8muXCsQ/Ruzeo5tENmSyUyUcserlrQlVQ gqBcn4sjPNtEjkqUJsGICDuMFOZF X-Google-Smtp-Source: APXvYqx0NLJTO5rWnYrt/9iDITBvbvUQcEP7VgnBzu6PFl1GCErR9OeqWqRt+h5glDVbjZiUBOGNOA== X-Received: by 2002:a1c:9e04:: with SMTP id h4mr3675398wme.135.1557328048732; Wed, 08 May 2019 08:07:28 -0700 (PDT) Received: from localhost.localdomain (2a01cb0589880c008a3268f7cbc0fc5c.ipv6.abo.wanadoo.fr. [2a01:cb05:8988:c00:8a32:68f7:cbc0:fc5c]) by smtp.gmail.com with ESMTPSA id o6sm36315359wrh.55.2019.05.08.08.07.27 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 08 May 2019 08:07:27 -0700 (PDT) From: Romain Naour To: buildroot@buildroot.org Date: Wed, 8 May 2019 17:07:09 +0200 Message-Id: <20190508150720.27946-5-romain.naour@gmail.com> X-Mailer: git-send-email 2.14.5 In-Reply-To: <20190508150720.27946-1-romain.naour@gmail.com> References: <20190508150720.27946-1-romain.naour@gmail.com> Subject: [Buildroot] [PATCH v2 04/15] toolchain: add gcc 9 entry X-BeenThere: buildroot@busybox.net 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: Romain Naour MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" In order to add gcc 9 support for internal and external toolchain in follow-up commits, introduce BR2_TOOLCHAIN_GCC_AT_LEAST_9 symbol. Signed-off-by: Romain Naour --- toolchain/Config.in | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/toolchain/Config.in b/toolchain/Config.in index 8c5a4fb88e..467d6bd84f 100644 --- a/toolchain/Config.in +++ b/toolchain/Config.in @@ -500,10 +500,15 @@ config BR2_TOOLCHAIN_GCC_AT_LEAST_8 bool select BR2_TOOLCHAIN_GCC_AT_LEAST_7 +config BR2_TOOLCHAIN_GCC_AT_LEAST_9 + bool + select BR2_TOOLCHAIN_GCC_AT_LEAST_8 + # 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 "9" if BR2_TOOLCHAIN_GCC_AT_LEAST_9 default "8" if BR2_TOOLCHAIN_GCC_AT_LEAST_8 default "7" if BR2_TOOLCHAIN_GCC_AT_LEAST_7 default "6" if BR2_TOOLCHAIN_GCC_AT_LEAST_6 From patchwork Wed May 8 15:07:10 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Naour X-Patchwork-Id: 1097092 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="vEmW3fd4"; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 44zfwp2bRKz9s4Y for ; Thu, 9 May 2019 01:07:53 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 7E4FE1FE0A; Wed, 8 May 2019 15:07:52 +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 FNHdHTK4v4FX; Wed, 8 May 2019 15:07:45 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 6FD9030DD3; Wed, 8 May 2019 15:07:38 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 06FD51BF25F for ; Wed, 8 May 2019 15:07:36 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 0415D87F84 for ; Wed, 8 May 2019 15:07:36 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8Hj2eEBChm4t for ; Wed, 8 May 2019 15:07:32 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) by hemlock.osuosl.org (Postfix) with ESMTPS id C79058657C for ; Wed, 8 May 2019 15:07:31 +0000 (UTC) Received: by mail-wm1-f41.google.com with SMTP id p21so3731024wmc.0 for ; Wed, 08 May 2019 08:07:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=6lVj/bwOyEqiT4H7w56BklRdVT25VzmycC+jQlRMPB8=; b=vEmW3fd4c4Johk72aCZmK334BrVED8wxv9x3fSXzcDXAG+95txMXV6yyAawkl8/H6M H1O3Gjg9Ur0BYQL4itksujaIgXqd8dtTCQQzZkFamJP3rSSphD2CDntWJcfb3TPw8iVb DTeR2j3CqAzZuhbmN0D7xS2Uv2U7OkKuSehw/Hs3wUmWnFLgpNrW5iZr9rr3y0yl5Yv7 +rmjJ343azhawQS4ZJRsmVPQlZERuvJf1T+2ptul22lufg7ONlliKk+DmOzJaeW+K54V L50FAv9nyoC23g1UVrZdzAbdlPiyt+R+DEaecOBTVq2zISqRToNWWiJwvCp2jcyrIGux zG8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=6lVj/bwOyEqiT4H7w56BklRdVT25VzmycC+jQlRMPB8=; b=c2lIB/hPFO3YrMcK+SVRm7v9jyakWV8hRBKaGmxwSxvrpQsJTeEbdOEguQ10Zxzxob tNJ/c8mDUVkzFgHR4K7dKx58050tZyVOuWa7VaJqTVyQMzXad60pIw8wz4GunnCJVGnW lUBwW2ceB2UbvGdJ4wpowD5flAl/cCAtMJb1wImYxF68N3vjpsE79GMa8SBsYGX3XMAV JNz2xssFmXxqeQ+0GrYDzzoN2v3pXfX7ixaZR0DpvaczWzS+wEtLCJFwN6HxuUxYYSyL 8nwXkP/BSUofXEzJJU8KqBGBsYHB7uFFad7VMb6ozJwIzbvCxDuCPzshoiQqFaA/BKJP krlQ== X-Gm-Message-State: APjAAAXNjx/a60nkB2ZT/iphLY89tb3ZCsv2qL8fU9x3ODqqXlFOZiZh Ezlip5839VLwR4ybJtazSC5P4Ftr X-Google-Smtp-Source: APXvYqyyyea1DmYEuCq2rntTroA7WLCqwNrKnHyGwzNa+yDLvhqdzyMkLYiwSVXad2pNXOa5vOH/2w== X-Received: by 2002:a1c:3cc2:: with SMTP id j185mr3562973wma.26.1557328050018; Wed, 08 May 2019 08:07:30 -0700 (PDT) Received: from localhost.localdomain (2a01cb0589880c008a3268f7cbc0fc5c.ipv6.abo.wanadoo.fr. [2a01:cb05:8988:c00:8a32:68f7:cbc0:fc5c]) by smtp.gmail.com with ESMTPSA id o6sm36315359wrh.55.2019.05.08.08.07.28 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 08 May 2019 08:07:29 -0700 (PDT) From: Romain Naour To: buildroot@buildroot.org Date: Wed, 8 May 2019 17:07:10 +0200 Message-Id: <20190508150720.27946-6-romain.naour@gmail.com> X-Mailer: git-send-email 2.14.5 In-Reply-To: <20190508150720.27946-1-romain.naour@gmail.com> References: <20190508150720.27946-1-romain.naour@gmail.com> Subject: [Buildroot] [PATCH v2 05/15] package/gcc: add support for gcc 9.1 X-BeenThere: buildroot@busybox.net 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: Romain Naour MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Signed-off-by: Romain Naour --- v2: remove !BR2_ARCH_NEEDS_GCC_AT_LEAST_9 from gcc 8.x This symbol will be introduced by the next patch (Yann) --- package/gcc/Config.in.host | 7 +++++++ package/gcc/gcc.hash | 2 ++ 2 files changed, 9 insertions(+) diff --git a/package/gcc/Config.in.host b/package/gcc/Config.in.host index 8e22a4c155..760225f7d9 100644 --- a/package/gcc/Config.in.host +++ b/package/gcc/Config.in.host @@ -68,6 +68,12 @@ config BR2_GCC_VERSION_8_X depends on !BR2_or1k select BR2_TOOLCHAIN_GCC_AT_LEAST_8 +config BR2_GCC_VERSION_9_X + bool "gcc 9.x" + # Broken or unsupported architectures + depends on !BR2_or1k + select BR2_TOOLCHAIN_GCC_AT_LEAST_9 + endchoice # libcilkrts was introduced in gcc 4.9 (oldest gcc version we @@ -83,6 +89,7 @@ config BR2_GCC_VERSION default "6.5.0" if BR2_GCC_VERSION_6_X default "7.4.0" if BR2_GCC_VERSION_7_X default "8.3.0" if BR2_GCC_VERSION_8_X + default "9.1.0" if BR2_GCC_VERSION_9_X default "arc-2018.09-release" if BR2_GCC_VERSION_ARC default "or1k-musl-5.4.0-20170218" if BR2_GCC_VERSION_OR1K diff --git a/package/gcc/gcc.hash b/package/gcc/gcc.hash index 4f1e7f932f..f2702c4ba6 100644 --- a/package/gcc/gcc.hash +++ b/package/gcc/gcc.hash @@ -8,6 +8,8 @@ sha512 ce046f9a50050fd54b870aab764f7db187fe7ea92eb4aaffb7c3689ca623755604e231f2 sha512 8864d8e4b97c2e1a4f17422f6e68120172ebefeab97b1757734f7185ca68a6b9a89011c6833c03fa454c17b0ac35b15e1d284881e6971035948ac6100f3aa45e gcc-7.4.0.tar.xz # From ftp://gcc.gnu.org/pub/gcc/releases/gcc-8.3.0/sha512.sum sha512 1811337ae3add9680cec64968a2509d085b6dc5b6783fc1e8c295e3e47416196fd1a3ad8dfe7e10be2276b4f62c357659ce2902f239f60a8648548231b4b5802 gcc-8.3.0.tar.xz +# From ftp://gcc.gnu.org/pub/gcc/releases/gcc-9.1.0/sha512.sum +sha512 b6134df027e734cee5395afd739fcfa4ea319a6017d662e54e89df927dea19d3fff7a6e35d676685383034e3db01c9d0b653f63574c274eeb15a2cb0bc7a1f28 gcc-9.1.0.tar.xz # Locally calculated (fetched from Github) sha512 4d12c3ac27b9de9c533be3b8964cf23d21bf6933b5073183e1affe714b0ff33f9d6169e3b55a5c505d7dae33c9bb4f8b0d110461e3a124182d8c8d51b66b8e45 gcc-arc-2018.09-release.tar.gz From patchwork Wed May 8 15:07:11 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Naour X-Patchwork-Id: 1097084 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="UGSivZTW"; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 44zfwV1G41z9s7h for ; Thu, 9 May 2019 01:07:37 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 6A10386502; Wed, 8 May 2019 15:07:36 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Rt-P64oiS4x5; Wed, 8 May 2019 15:07:35 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 93B51864DA; Wed, 8 May 2019 15:07:35 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id E27341BF25F for ; Wed, 8 May 2019 15:07:33 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id DF777864F8 for ; Wed, 8 May 2019 15:07:33 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PJ9XUWQXt5b2 for ; Wed, 8 May 2019 15:07:33 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f66.google.com (mail-wr1-f66.google.com [209.85.221.66]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 3C799864DA for ; Wed, 8 May 2019 15:07:33 +0000 (UTC) Received: by mail-wr1-f66.google.com with SMTP id s15so27641825wra.12 for ; Wed, 08 May 2019 08:07:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=5PYMkt8xRshTi5FBZdWYAxnC6U2Xk8NcP44z0QRZEl0=; b=UGSivZTWGfNpY6kA4U30pHcBx6VX3FFm+MZMoCKdl9821JJgBWSNyrAjjQm+9MY8LH aMGyMpPlo8mmANns0Bpd3K98MJ+L7noSzEutN4XW9zXzoklfzZIdie8qNyNVz0eQE4Tu 2gY/v1ggyj3t8RIgWL91czi1EQZ3YQhlB9c4VMp8DntPe2jRT7kn7wFBs4GrSDrGEpL3 l3fOzLwRDmOaAQ0aDh0otmk08r7G3cQueaDM1laraQm/o3qQM6PPghaiAm32smhfDRta 2XcOmQZO2K2opbVP3zxoX8hcRTLVnc0S92lm7ozrp6m9YMOv9f6Q54D9U9zre85BTvn2 wE4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=5PYMkt8xRshTi5FBZdWYAxnC6U2Xk8NcP44z0QRZEl0=; b=dkwaUmOY5SeZmkH44jXATrBMfOe8a2JWoMBL5b4aljvHWG2CUOt5CDRvCK6bFgO1Zi BC2q5cic1jnpia8C2JuPUyGUqLVcYTQb0KEBEfvLgg3x7u9yGf4nxqYK9akNS1HZ6ddX dXk8lM7foD7wujj0gGAwy0GsXeRPLhyd8/clnWi6yEeuDul+7QjrTO2onfkzj60xEhco 11ynDUSDalYQvp9DSmy/vtIq86c04hOQztlkPQx+okd5p52guzQuqPqv2Oq0eq7kh8rS Wdjb7gnzZv2u+C5k6X/07oDgg+f7m+BUARLsZxxoeSu9V59bFd4RmefAykiIq2rCXxmy XBhQ== X-Gm-Message-State: APjAAAV4P9dDvf0BECTchCuS1+snnUzPTEGxmh/n1p84FUqvt+pRh/BQ vQzIMqnwQUsnliRsREVLWD9CmXR3 X-Google-Smtp-Source: APXvYqwlZJKO7qtycqbczPvh6DQD3S8gQvoYH6YBnkWtCdD36gF2nbM0tMWLxbuycnIpcDiC7DM9iA== X-Received: by 2002:adf:b243:: with SMTP id y3mr12220153wra.21.1557328051410; Wed, 08 May 2019 08:07:31 -0700 (PDT) Received: from localhost.localdomain (2a01cb0589880c008a3268f7cbc0fc5c.ipv6.abo.wanadoo.fr. [2a01:cb05:8988:c00:8a32:68f7:cbc0:fc5c]) by smtp.gmail.com with ESMTPSA id o6sm36315359wrh.55.2019.05.08.08.07.30 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 08 May 2019 08:07:30 -0700 (PDT) From: Romain Naour To: buildroot@buildroot.org Date: Wed, 8 May 2019 17:07:11 +0200 Message-Id: <20190508150720.27946-7-romain.naour@gmail.com> X-Mailer: git-send-email 2.14.5 In-Reply-To: <20190508150720.27946-1-romain.naour@gmail.com> References: <20190508150720.27946-1-romain.naour@gmail.com> Subject: [Buildroot] [PATCH v2 06/15] arch: add BR2_ARCH_NEEDS_GCC_AT_LEAST_9 X-BeenThere: buildroot@busybox.net 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: Romain Naour MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" This new symbol will be used by architectures introduced with gcc 9 and by external toolchains based on gcc 9. [1] https://gcc.gnu.org/gcc-9/changes.html Signed-off-by: Romain Naour --- arch/Config.in | 4 ++++ package/gcc/Config.in.host | 1 + 2 files changed, 5 insertions(+) diff --git a/arch/Config.in b/arch/Config.in index d82803c828..051d4cdab7 100644 --- a/arch/Config.in +++ b/arch/Config.in @@ -302,6 +302,10 @@ config BR2_ARCH_NEEDS_GCC_AT_LEAST_8 bool select BR2_ARCH_NEEDS_GCC_AT_LEAST_7 +config BR2_ARCH_NEEDS_GCC_AT_LEAST_9 + bool + select BR2_ARCH_NEEDS_GCC_AT_LEAST_8 + # The following string values are defined by the individual # Config.in.$ARCH files config BR2_ARCH diff --git a/package/gcc/Config.in.host b/package/gcc/Config.in.host index 760225f7d9..a9f8492399 100644 --- a/package/gcc/Config.in.host +++ b/package/gcc/Config.in.host @@ -64,6 +64,7 @@ config BR2_GCC_VERSION_7_X config BR2_GCC_VERSION_8_X bool "gcc 8.x" + depends on !BR2_ARCH_NEEDS_GCC_AT_LEAST_9 # Broken or unsupported architectures depends on !BR2_or1k select BR2_TOOLCHAIN_GCC_AT_LEAST_8 From patchwork Wed May 8 15:07:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Naour X-Patchwork-Id: 1097089 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="doy4s2vf"; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 44zfwj5jXMz9s9T for ; Thu, 9 May 2019 01:07:49 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id C88DE8488A; Wed, 8 May 2019 15:07:46 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dfroZZderE1D; Wed, 8 May 2019 15:07:44 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id D77E385055; Wed, 8 May 2019 15:07:44 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 15A621BF25F for ; Wed, 8 May 2019 15:07:42 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 8EB0E8168A for ; Wed, 8 May 2019 15:07:39 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yzpAWwL+9IWO for ; Wed, 8 May 2019 15:07:37 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f66.google.com (mail-wm1-f66.google.com [209.85.128.66]) by hemlock.osuosl.org (Postfix) with ESMTPS id D41EB87FA4 for ; Wed, 8 May 2019 15:07:34 +0000 (UTC) Received: by mail-wm1-f66.google.com with SMTP id y2so3703908wmi.5 for ; Wed, 08 May 2019 08:07:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=IwoAV5WnPypcf2wc1AtJMYDKXyHa2a2xoQMV9nzu5B8=; b=doy4s2vfgkBRH0NFvWvFeHK6+v7SdGgVe+org3kZm3ZLSZWT42X+/VY4fY/jYvno+E ofx+MPmWQ/4zXAU4ezfdlXaRQk/lsYrHeF4aZdJR/ieBhlV9ImL7obeW+Kt0dZVUQ8pf Eqw5rbKarkgD9zm1+kS9/LCBebNBQy7oZsAcyH/WayJCK8w2wYGH/RaJYqSuaJ1YZrGe my9tZt5jdTzQyKEYo7VgM4lUnq0l/BfCDbAe91DpOUoAKjpQV0vpWFq5s4lH+niCP7S0 vn07GIXd9DmPm9PDNaK/B0cvf6hO14V3lnjUeOO7BP3rbo+punnL79BMNThjqC9Lmy7P bDHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=IwoAV5WnPypcf2wc1AtJMYDKXyHa2a2xoQMV9nzu5B8=; b=iP+42PBKJHZwKF17zPrN6tm04PXa0L/dvYeNj2Tf55oQEzYPbSB6tPYHBlpzKV/Atg zHHgUkIwT9XdISC6nnJ2x/sPGxBGlXoGmXA2A92h0RT+X09AFHI5O0NKB4SgkYQ4CmpW oAeSo2mMf74g+xnWfrPyO2rnxv9RjVH3WKPzPljpI4jXRf1VFng4TXMZoJdluRYNGePv pwkIGqB7dHJSTALgVOg7spK3mkAZvpAycuVZ+s+TbIfCXSxv6+MDzFyAMt7hC0Z5m7v2 50fU0xw3fTfz6iNyK11Wi0fqa4qmTEf0pfscXYNL8LNQ6BG/UzfDgHhUNdR/XgDZeW5H LBcw== X-Gm-Message-State: APjAAAW0lkiuocAXZ4NMcv/qIFFsAnX3U91VBvtdlw8iZdxe+wmCH/qk GrThA4vurOfDXZG9xntKdGL0oKrF X-Google-Smtp-Source: APXvYqwKEEKVGCo6e0KF2ua0/K/ItdXz5Ml2Ply8fcZFZTo/0/+eGsF2tJ8jaFJc6Agu4d1rKJA+ng== X-Received: by 2002:a1c:cb8f:: with SMTP id b137mr3169183wmg.64.1557328053076; Wed, 08 May 2019 08:07:33 -0700 (PDT) Received: from localhost.localdomain (2a01cb0589880c008a3268f7cbc0fc5c.ipv6.abo.wanadoo.fr. [2a01:cb05:8988:c00:8a32:68f7:cbc0:fc5c]) by smtp.gmail.com with ESMTPSA id o6sm36315359wrh.55.2019.05.08.08.07.31 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 08 May 2019 08:07:31 -0700 (PDT) From: Romain Naour To: buildroot@buildroot.org Date: Wed, 8 May 2019 17:07:12 +0200 Message-Id: <20190508150720.27946-8-romain.naour@gmail.com> X-Mailer: git-send-email 2.14.5 In-Reply-To: <20190508150720.27946-1-romain.naour@gmail.com> References: <20190508150720.27946-1-romain.naour@gmail.com> Subject: [Buildroot] [PATCH v2 07/15] toolchain-external: add gcc 9 entry X-BeenThere: buildroot@busybox.net 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: Romain Naour MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" This patch allows to use an external toolchain based on gcc 9. Signed-off-by: Romain Naour --- .../toolchain-external/toolchain-external-custom/Config.in.options | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/toolchain/toolchain-external/toolchain-external-custom/Config.in.options b/toolchain/toolchain-external/toolchain-external-custom/Config.in.options index cb7095632f..a2cc97f936 100644 --- a/toolchain/toolchain-external/toolchain-external-custom/Config.in.options +++ b/toolchain/toolchain-external/toolchain-external-custom/Config.in.options @@ -27,6 +27,7 @@ config BR2_TOOLCHAIN_EXTERNAL_CUSTOM_PREFIX choice bool "External toolchain gcc version" + default BR2_TOOLCHAIN_EXTERNAL_GCC_9 if BR2_ARCH_NEEDS_GCC_AT_LEAST_9 default BR2_TOOLCHAIN_EXTERNAL_GCC_8 if BR2_ARCH_NEEDS_GCC_AT_LEAST_8 default BR2_TOOLCHAIN_EXTERNAL_GCC_7 if BR2_ARCH_NEEDS_GCC_AT_LEAST_7 default BR2_TOOLCHAIN_EXTERNAL_GCC_6 if BR2_ARCH_NEEDS_GCC_AT_LEAST_6 @@ -38,8 +39,13 @@ choice Set to the gcc version that is used by your external toolchain. +config BR2_TOOLCHAIN_EXTERNAL_GCC_9 + bool "9.x" + select BR2_TOOLCHAIN_GCC_AT_LEAST_9 + config BR2_TOOLCHAIN_EXTERNAL_GCC_8 bool "8.x" + depends on !BR2_ARCH_NEEDS_GCC_AT_LEAST_9 select BR2_TOOLCHAIN_GCC_AT_LEAST_8 config BR2_TOOLCHAIN_EXTERNAL_GCC_7 From patchwork Wed May 8 15:07:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Naour X-Patchwork-Id: 1097096 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="ANfLfL5I"; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 44zfwx5ctdz9s4Y for ; Thu, 9 May 2019 01:08:01 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 4656622650; Wed, 8 May 2019 15:08:00 +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 cs5NoPedQ3x9; Wed, 8 May 2019 15:07:54 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id B5B8130E31; Wed, 8 May 2019 15:07:45 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 164941BF983 for ; Wed, 8 May 2019 15:07:42 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id B8E3E81ACA for ; Wed, 8 May 2019 15:07:39 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CqSvLCxDwILx for ; Wed, 8 May 2019 15:07:37 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f68.google.com (mail-wr1-f68.google.com [209.85.221.68]) by hemlock.osuosl.org (Postfix) with ESMTPS id 8AABE8657C for ; Wed, 8 May 2019 15:07:36 +0000 (UTC) Received: by mail-wr1-f68.google.com with SMTP id v10so2435688wrt.6 for ; Wed, 08 May 2019 08:07:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=TNk+AlXm/L4hBEJGVG2toS7AN4gwYvdbjoWD/hUzpj4=; b=ANfLfL5IraHJ5nIYqBCefuoHqWg4Gxpy+ju1W5u9UDZqtT42XMuGVJq6PkQ7cotBml YQs7nq4Hb+r1NsXHk9Cf3Mtcjicwiu/exYwP2wXYpjlYQvHIi+euCmuqUYAV5ed2iv/M rF5hsJpOzTPt7/EKEljv0I17ZvLXkoo8ZRHNU9jjnX3wh0Uxwr5w6rXZQaydLde0PQNf mTnuH6XaG0sL+1UxZHmDZdkVlGAyIEi+Zech439JADVchhizPzG+fBdPbbjcNnm8QFS3 NMOtdwKG1l2b0ZV3ZKRby6xMIvkpYZtWia+PQUMwdSu3AwJC22xNFaYFx+l0N0VDLjwi vRYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=TNk+AlXm/L4hBEJGVG2toS7AN4gwYvdbjoWD/hUzpj4=; b=oF3jPHmeKXqokRrr38NIvAYffyV9n9+tniLFVSB7X17ZZ/p76shCRBF/P0Yrm/Omk4 YuoSAxexoGK4WrB4z+W/PQVpkWgeCFPp/c7uRIUNjH8tbcE9v0W0AGkbd1k4PjDk15mf /wjfy6p80q/l7tZ8EURDtq/Ay5BsDdEE241wKm0G4sd6fVLao987fVJyAyWyZleeGOqD cH0WG1BVeWgAcGNJ6AnJPvo+aFxGwaGzewCn7/qFgLcXLS1/92kOTCZ30fjzvJw3UuiJ hV32lVkiqZgsxtpOgelbp9WR8bB6zYIoc4ZcupQhrW/ck7YFisk9QJQHr3+RAZmikziw xdFg== X-Gm-Message-State: APjAAAWbt8XHnxpJfIV9JHm5arO5zYMLhKZNEE013MQ8eYQKJ4qEOMpZ AYsEbZV59L9+aPrhEbPJCTG7ykQN X-Google-Smtp-Source: APXvYqzAuAduRKyHiSbp6Rpw7kTvIqnCeUc2bQH7tvQ7vtyDFbXEZq2/3lSjrkPteb5Zl/1XpagOYA== X-Received: by 2002:adf:ea8e:: with SMTP id s14mr25829762wrm.4.1557328054412; Wed, 08 May 2019 08:07:34 -0700 (PDT) Received: from localhost.localdomain (2a01cb0589880c008a3268f7cbc0fc5c.ipv6.abo.wanadoo.fr. [2a01:cb05:8988:c00:8a32:68f7:cbc0:fc5c]) by smtp.gmail.com with ESMTPSA id o6sm36315359wrh.55.2019.05.08.08.07.33 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 08 May 2019 08:07:33 -0700 (PDT) From: Romain Naour To: buildroot@buildroot.org Date: Wed, 8 May 2019 17:07:13 +0200 Message-Id: <20190508150720.27946-9-romain.naour@gmail.com> X-Mailer: git-send-email 2.14.5 In-Reply-To: <20190508150720.27946-1-romain.naour@gmail.com> References: <20190508150720.27946-1-romain.naour@gmail.com> Subject: [Buildroot] [PATCH v2 08/15] package/gcc: switch to gcc 8.x as the default X-BeenThere: buildroot@busybox.net 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: Romain Naour MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Even if gcc 7 is still maintained for some time (gcc 7.5 is pending), switch to gcc 8.x since it has been released since 2018-05-02 and gcc 9.x is available since 2019-05-03. We have been having toolchains in the autobuilders with gcc 8.x for a while, so the vast majority of the problems should have already been solved. Signed-off-by: Romain Naour --- package/gcc/Config.in.host | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/gcc/Config.in.host b/package/gcc/Config.in.host index a9f8492399..1d3af73e69 100644 --- a/package/gcc/Config.in.host +++ b/package/gcc/Config.in.host @@ -4,7 +4,7 @@ choice prompt "GCC compiler Version" default BR2_GCC_VERSION_ARC if BR2_arc default BR2_GCC_VERSION_OR1K if BR2_or1k - default BR2_GCC_VERSION_7_X + default BR2_GCC_VERSION_8_X help Select the version of gcc you wish to use. From patchwork Wed May 8 15:07:14 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Naour X-Patchwork-Id: 1097097 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="r1qF3Jg8"; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 44zfx52Fpyz9s4Y for ; Thu, 9 May 2019 01:08:09 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id B0C6430CEC; Wed, 8 May 2019 15:08:07 +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 jvUvdJS6bKSn; Wed, 8 May 2019 15:07:59 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 2CFB930CED; Wed, 8 May 2019 15:07:48 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 17EE71BF995 for ; Wed, 8 May 2019 15:07:42 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 054B281B10 for ; Wed, 8 May 2019 15:07:40 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aCbLYKR05lBz for ; Wed, 8 May 2019 15:07:38 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f67.google.com (mail-wm1-f67.google.com [209.85.128.67]) by hemlock.osuosl.org (Postfix) with ESMTPS id B98FA87FBF for ; Wed, 8 May 2019 15:07:37 +0000 (UTC) Received: by mail-wm1-f67.google.com with SMTP id y2so3704145wmi.5 for ; Wed, 08 May 2019 08:07:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ktzMLyNdTjYZgdW7VJu5yn9GSBIEmL7ngtQGl/+SJkQ=; b=r1qF3Jg8vL2QVDMD6O8OOCxSFMB1cOQc5plzXbXOBaezp83vJlxg4LuYcimHclu0Ca nyzgVU6pjgCtdKjAGKNZLvNcWMWR9X4pKJwcBkP+uX5bonY6GLGTfwCJaj9y3o6BSOVr wakLW4h/bq+8HGcagWesPjkBBX+LTf5ktHLRFqKT8EwhEIWKyN9xw7SogAJZcnPvopg0 oEwFAWYYH+ep0vo5rgLHZIhi5VfI/HImFom4hRDtJHx21IngGLCiKtUu5sVxLQhYnfpb vL58sAOLZKYNDypiowWD2aftyZbeaPONlDLBqNInVDmmY/442nC/4Rytekui2BAoFKuw uS5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ktzMLyNdTjYZgdW7VJu5yn9GSBIEmL7ngtQGl/+SJkQ=; b=H2yhyXmIPrTwEumkFD/O0hpOUt4N56Ft9axb+fLP3CFsWI9RRWuz49o/gpm/mMZ1kA KSzKsEV/P5iLzUQwQ8PmBm90nUAlqf50pgV5AOMlI4+n+LEJ12x7WCai7C4C/sRBGGmp hRRDbJyOQw58sD4JGXj0oc5KTUt8FTittJwx2rp2Gi4+BpC5wRvCY/+octDIFwG2qauN nnjx/xYVP2XErJxdiWfsWOWV0sXMTQGq6cPWpR88fsBAROyxoYnfVlRqp++gXZIrtjvJ ESVc3FHDGXNTADhdBpsXpsBtQC/SsFd9T+buhwZq9vtg/ce/sU08fP7s+HOU/sxZ3/Mo qECg== X-Gm-Message-State: APjAAAWwWUaWcfVJC3QXbbK4NXwS07hwVBYQH9JcFi8GkVg4dpFqtZRh fIYkK0CP0Rh5aUVafsUwsxVxrd6r X-Google-Smtp-Source: APXvYqx2EOYrHGuJC4naxUJMpr86A++LUk3ocdPUVWdPYw4IAxmNaWX0yLhyDhSt6lh57HGdV0SkDw== X-Received: by 2002:a1c:6783:: with SMTP id b125mr3391226wmc.79.1557328055894; Wed, 08 May 2019 08:07:35 -0700 (PDT) Received: from localhost.localdomain (2a01cb0589880c008a3268f7cbc0fc5c.ipv6.abo.wanadoo.fr. [2a01:cb05:8988:c00:8a32:68f7:cbc0:fc5c]) by smtp.gmail.com with ESMTPSA id o6sm36315359wrh.55.2019.05.08.08.07.34 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 08 May 2019 08:07:34 -0700 (PDT) From: Romain Naour To: buildroot@buildroot.org Date: Wed, 8 May 2019 17:07:14 +0200 Message-Id: <20190508150720.27946-10-romain.naour@gmail.com> X-Mailer: git-send-email 2.14.5 In-Reply-To: <20190508150720.27946-1-romain.naour@gmail.com> References: <20190508150720.27946-1-romain.naour@gmail.com> Subject: [Buildroot] [PATCH v2 09/15] arch/arm: move dependency on 64-bit down to individual cores X-BeenThere: buildroot@busybox.net 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: Romain Naour , "Yann E. MORIN" , Thomas Petazzoni MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: "Yann E. MORIN" It will make it easier to introduce new variants anywhere in the list, when those variants have different bitness requirements. Signed-off-by: "Yann E. MORIN" Cc: Thomas Petazzoni Signed-off-by: Romain Naour --- arch/Config.in.arm | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/arch/Config.in.arm b/arch/Config.in.arm index a9972978d4..71a148ad98 100644 --- a/arch/Config.in.arm +++ b/arch/Config.in.arm @@ -376,50 +376,55 @@ config BR2_exynos_m1 select BR2_ARM_CPU_ARMV8A select BR2_ARCH_HAS_MMU_OPTIONAL select BR2_ARCH_NEEDS_GCC_AT_LEAST_5 -if BR2_ARCH_IS_64 config BR2_falkor bool "falkor" + depends on BR2_ARCH_IS_64 select BR2_ARM_CPU_HAS_FP_ARMV8 select BR2_ARM_CPU_ARMV8A select BR2_ARCH_HAS_MMU_OPTIONAL select BR2_ARCH_NEEDS_GCC_AT_LEAST_7 config BR2_qdf24xx bool "qdf24xx" + depends on BR2_ARCH_IS_64 select BR2_ARM_CPU_HAS_FP_ARMV8 select BR2_ARM_CPU_ARMV8A select BR2_ARCH_HAS_MMU_OPTIONAL select BR2_ARCH_NEEDS_GCC_AT_LEAST_6 config BR2_thunderx bool "thunderx" + depends on BR2_ARCH_IS_64 select BR2_ARM_CPU_HAS_FP_ARMV8 select BR2_ARM_CPU_ARMV8A select BR2_ARCH_HAS_MMU_OPTIONAL select BR2_ARCH_NEEDS_GCC_AT_LEAST_5 config BR2_thunderxt81 bool "thunderxt81" + depends on BR2_ARCH_IS_64 select BR2_ARM_CPU_HAS_FP_ARMV8 select BR2_ARM_CPU_ARMV8A select BR2_ARCH_HAS_MMU_OPTIONAL select BR2_ARCH_NEEDS_GCC_AT_LEAST_7 config BR2_thunderxt83 bool "thunderxt83" + depends on BR2_ARCH_IS_64 select BR2_ARM_CPU_HAS_FP_ARMV8 select BR2_ARM_CPU_ARMV8A select BR2_ARCH_HAS_MMU_OPTIONAL select BR2_ARCH_NEEDS_GCC_AT_LEAST_7 config BR2_thunderxt88 bool "thunderxt88" + depends on BR2_ARCH_IS_64 select BR2_ARM_CPU_HAS_FP_ARMV8 select BR2_ARM_CPU_ARMV8A select BR2_ARCH_HAS_MMU_OPTIONAL select BR2_ARCH_NEEDS_GCC_AT_LEAST_7 config BR2_thunderxt88p1 bool "thunderxt88p1" + depends on BR2_ARCH_IS_64 select BR2_ARM_CPU_HAS_FP_ARMV8 select BR2_ARM_CPU_ARMV8A select BR2_ARCH_HAS_MMU_OPTIONAL select BR2_ARCH_NEEDS_GCC_AT_LEAST_7 -endif # BR2_ARCH_IS_64 config BR2_xgene1 bool "xgene1" select BR2_ARM_CPU_HAS_ARM if !BR2_ARCH_IS_64 @@ -430,59 +435,60 @@ config BR2_xgene1 select BR2_ARCH_HAS_MMU_OPTIONAL select BR2_ARCH_NEEDS_GCC_AT_LEAST_5 -if BR2_ARCH_IS_64 comment "armv8.1a cores" config BR2_thunderx2t99 bool "thunderx2t99" + depends on BR2_ARCH_IS_64 select BR2_ARM_CPU_HAS_FP_ARMV8 select BR2_ARM_CPU_ARMV8A select BR2_ARCH_HAS_MMU_OPTIONAL select BR2_ARCH_NEEDS_GCC_AT_LEAST_7 config BR2_thunderx2t99p1 bool "thunderx2t99p1" + depends on BR2_ARCH_IS_64 select BR2_ARM_CPU_HAS_FP_ARMV8 select BR2_ARM_CPU_ARMV8A select BR2_ARCH_HAS_MMU_OPTIONAL select BR2_ARCH_NEEDS_GCC_AT_LEAST_7 config BR2_vulcan bool "vulcan" + depends on BR2_ARCH_IS_64 select BR2_ARM_CPU_HAS_FP_ARMV8 select BR2_ARM_CPU_ARMV8A select BR2_ARCH_HAS_MMU_OPTIONAL select BR2_ARCH_NEEDS_GCC_AT_LEAST_7 -endif # BR2_ARCH_IS_64 -if BR2_ARCH_IS_64 comment "armv8.2a cores" config BR2_cortex_a55 bool "cortex-A55" + depends on BR2_ARCH_IS_64 select BR2_ARM_CPU_HAS_FP_ARMV8 select BR2_ARM_CPU_ARMV8A select BR2_ARCH_HAS_MMU_OPTIONAL select BR2_ARCH_NEEDS_GCC_AT_LEAST_8 config BR2_cortex_a75 bool "cortex-A75" + depends on BR2_ARCH_IS_64 select BR2_ARM_CPU_HAS_FP_ARMV8 select BR2_ARM_CPU_ARMV8A select BR2_ARCH_HAS_MMU_OPTIONAL select BR2_ARCH_NEEDS_GCC_AT_LEAST_8 config BR2_cortex_a75_a55 bool "cortex-A75/A55 big.LITTLE" + depends on BR2_ARCH_IS_64 select BR2_ARM_CPU_HAS_FP_ARMV8 select BR2_ARM_CPU_ARMV8A select BR2_ARCH_HAS_MMU_OPTIONAL select BR2_ARCH_NEEDS_GCC_AT_LEAST_8 -endif # BR2_ARCH_IS_64 -if BR2_ARCH_IS_64 comment "armv8.3a cores" config BR2_saphira bool "saphira" + depends on BR2_ARCH_IS_64 select BR2_ARM_CPU_HAS_FP_ARMV8 select BR2_ARM_CPU_ARMV8A select BR2_ARCH_HAS_MMU_OPTIONAL select BR2_ARCH_NEEDS_GCC_AT_LEAST_8 -endif # BR2_ARCH_IS_64 endchoice config BR2_ARM_ENABLE_NEON From patchwork Wed May 8 15:07:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Naour X-Patchwork-Id: 1097087 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@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; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="gh7O/897"; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 44zfwc1wVdz9s7h for ; Thu, 9 May 2019 01:07:44 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id BE06487082; Wed, 8 May 2019 15:07:42 +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 wzYCimxaK7Yw; Wed, 8 May 2019 15:07:42 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id F1CF987057; Wed, 8 May 2019 15:07:41 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id BC0491BF25F for ; Wed, 8 May 2019 15:07:40 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id B565687057 for ; Wed, 8 May 2019 15:07:40 +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 Ld0P2-KEJeVJ for ; Wed, 8 May 2019 15:07:39 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f67.google.com (mail-wm1-f67.google.com [209.85.128.67]) by whitealder.osuosl.org (Postfix) with ESMTPS id 1B35887095 for ; Wed, 8 May 2019 15:07:39 +0000 (UTC) Received: by mail-wm1-f67.google.com with SMTP id f2so3708107wmj.3 for ; Wed, 08 May 2019 08:07:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=md8Zgqo4ZMb2J+dT/JvzdQbeaMZ1aE0UXlf8oHItPkk=; b=gh7O/8976mYAUKEbyhsAqeB9swfNQ5NquCnvwEjuyUZz0jHIW7Mx7gOZl3vZeXC9cy 66HgRBL0Xswsd+VGqCX9ceT4Uhjp2N64A7iN3vFY53CTYOvusyI1D7tn4H7kBc7FgkuG IUuVCc0VBYM8SV48qfck60d2W3gXvfn4Dr4EM98HvQtT9nEizbLNP1wdXTIvXM+83ytf jjfCUlrQr8OWk1uyM+nhYxbzmT67+UO3I0Oe3r476QocfXUXQhLyLjJkWcv/k3qqCE4P lon7j7k39/EQiAYTYRY087kxosKR/WAIOQ1nWwADsMeMkSROForXWE6ka74M0UBeJJnS ONTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=md8Zgqo4ZMb2J+dT/JvzdQbeaMZ1aE0UXlf8oHItPkk=; b=QPxHpz4uH3yrzRL0whHOnQb0nbeSpRPoA4KTMBVqT5LrtcgLnlYFk6ZuTOY1xipE8G Be0zqNMDrHkMQW15Q5tJM6LaSclRKxkerwdZYzzhDFoDF0pGeGfyyjEUPVaqMeWGueXD hWfULjYc21E3nD3J/TtkIFvEDFhhAjDEreercJNl1lKhVYHjtUi3cIM5RFRRtSGaOxvU w6sFH8IoRHIv+x2Ox5Zyez2EiPe3cgwyn7UlP6IZZ/JGxo+huSL+b3Uswnih0wK4ROp5 +GzZiaImn4ubCCzO8X/5QzWu2klODPKBlCm3Wny/8CxhODoNgiA9EKZ3ewYkKKn803c9 5Nmg== X-Gm-Message-State: APjAAAUKnVRflalXJzzIqN9DPkD7DKkrPTmVVc2GQZaxXcpPh5zXZWCp 53goKOz+Xjgf/kS/vKZ3NQ3edA+0 X-Google-Smtp-Source: APXvYqwtDRZ+50D9Fh4r+SasAhfVoil4QigbqQWxehGVtK0jnqptHSfqtUj9xFSgu6CQH0bTQBc6Iw== X-Received: by 2002:a1c:9e04:: with SMTP id h4mr3676179wme.135.1557328057247; Wed, 08 May 2019 08:07:37 -0700 (PDT) Received: from localhost.localdomain (2a01cb0589880c008a3268f7cbc0fc5c.ipv6.abo.wanadoo.fr. [2a01:cb05:8988:c00:8a32:68f7:cbc0:fc5c]) by smtp.gmail.com with ESMTPSA id o6sm36315359wrh.55.2019.05.08.08.07.35 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 08 May 2019 08:07:36 -0700 (PDT) From: Romain Naour To: buildroot@buildroot.org Date: Wed, 8 May 2019 17:07:15 +0200 Message-Id: <20190508150720.27946-11-romain.naour@gmail.com> X-Mailer: git-send-email 2.14.5 In-Reply-To: <20190508150720.27946-1-romain.naour@gmail.com> References: <20190508150720.27946-1-romain.naour@gmail.com> Subject: [Buildroot] [PATCH v2 10/15] arch/arm: some cores have a different name with gcc-9 X-BeenThere: buildroot@busybox.net 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: Romain Naour , "Yann E. MORIN" , Thomas Petazzoni MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: "Yann E. MORIN" In gcc-9, some cores from the ThunderX familly have been renamed to their marketting names, i.e. OcteonTX. Subsequently, new core names have been added to gcc, with the old names still being around. Update the prompts with the new names as alternative to the existing names. We still keep the kconfig options as-is, so that we do not need to add legacy handling. However, since there is no guarantee for how long gcc will retain compatibility for the older names, we readily switch over to using the new names when using a gcc 9-or-later, but keep using the older names with gcc older than 9. The ordering of the 'default' clauses in kconfig is important, with the first default which conditions is satisfied, to be used, so we just add the new core names under a more liberal condition than the older names. Signed-off-by: "Yann E. MORIN" Cc: Thomas Petazzoni Signed-off-by: Romain Naour --- arch/Config.in.arm | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/arch/Config.in.arm b/arch/Config.in.arm index 71a148ad98..ee6ab875a3 100644 --- a/arch/Config.in.arm +++ b/arch/Config.in.arm @@ -391,21 +391,21 @@ config BR2_qdf24xx select BR2_ARCH_HAS_MMU_OPTIONAL select BR2_ARCH_NEEDS_GCC_AT_LEAST_6 config BR2_thunderx - bool "thunderx" + bool "thunderx (aka octeontx)" depends on BR2_ARCH_IS_64 select BR2_ARM_CPU_HAS_FP_ARMV8 select BR2_ARM_CPU_ARMV8A select BR2_ARCH_HAS_MMU_OPTIONAL select BR2_ARCH_NEEDS_GCC_AT_LEAST_5 config BR2_thunderxt81 - bool "thunderxt81" + bool "thunderxt81 (aka octeontx81)" depends on BR2_ARCH_IS_64 select BR2_ARM_CPU_HAS_FP_ARMV8 select BR2_ARM_CPU_ARMV8A select BR2_ARCH_HAS_MMU_OPTIONAL select BR2_ARCH_NEEDS_GCC_AT_LEAST_7 config BR2_thunderxt83 - bool "thunderxt83" + bool "thunderxt83 (aka octeontx83)" depends on BR2_ARCH_IS_64 select BR2_ARM_CPU_HAS_FP_ARMV8 select BR2_ARM_CPU_ARMV8A @@ -824,9 +824,12 @@ config BR2_GCC_TARGET_CPU default "exynos-m1" if BR2_exynos_m1 default "falkor" if BR2_falkor default "qdf24xx" if BR2_qdf24xx - default "thunderx" if BR2_thunderx - default "thunderxt81" if BR2_thunderxt81 - default "thunderxt83" if BR2_thunderxt83 + default "thunderx" if BR2_thunderx && !BR2_TOOLCHAIN_GCC_AT_LEAST_9 + default "octeontx" if BR2_thunderx + default "thunderxt81" if BR2_thunderxt81 && !BR2_TOOLCHAIN_GCC_AT_LEAST_9 + default "octeontx81" if BR2_thunderxt81 + default "thunderxt83" if BR2_thunderxt83 && !BR2_TOOLCHAIN_GCC_AT_LEAST_9 + default "octeontx83" if BR2_thunderxt83 default "thunderxt88" if BR2_thunderxt88 default "thunderxt88p1" if BR2_thunderxt88p1 default "xgene1" if BR2_xgene1 From patchwork Wed May 8 15:07:16 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Naour X-Patchwork-Id: 1097088 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="lwFqz6rv"; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 44zfwh5k3Gz9s7h for ; Thu, 9 May 2019 01:07:48 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 0788A8651C; Wed, 8 May 2019 15:07:46 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oqVbXK9iO-V7; Wed, 8 May 2019 15:07:44 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 05829864EE; Wed, 8 May 2019 15:07:44 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 585D91BF25F for ; Wed, 8 May 2019 15:07:41 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 508A587057 for ; Wed, 8 May 2019 15:07:41 +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 w3jXQjhv+MwU for ; Wed, 8 May 2019 15:07:40 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f67.google.com (mail-wm1-f67.google.com [209.85.128.67]) by whitealder.osuosl.org (Postfix) with ESMTPS id 8057987042 for ; Wed, 8 May 2019 15:07:40 +0000 (UTC) Received: by mail-wm1-f67.google.com with SMTP id h11so3678013wmb.5 for ; Wed, 08 May 2019 08:07:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=g4afV8n3+UmTg+iPQ/Wvh76bNCKJVGf+2ddzi1Qxq9c=; b=lwFqz6rvWnLNWxykP+jumWHJ/7VmgctggjWMPNIfbGgKqi4NVKrjxsz3aXnPUHG5Zk proMiDfDS23JQKU5bFwNVAUPdbZw2eMfIr5i0s1GDyg6/xi0/eDh/13BWTca1KWLIKHR Tu2StW5YcPDxVxE+xMJLR4+IBnh3GBIwBnAmh/XW8ve+aBXr6JNeE3BTk0GvKzttlrqF eQIRjCTYhDS5H6MGoWiSK8KSXNY61zdHI9gjgR2R/rvda7L5dgb4K98E8oUKbOZb1lit wfQ6LQaM+lrzWfdXQ81NKTYsM+3ys/FE/RL2gRU3aDRXHtxXeOrczzs2MpyGSS0sMfp2 HgIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=g4afV8n3+UmTg+iPQ/Wvh76bNCKJVGf+2ddzi1Qxq9c=; b=DeKUTCkNWgZIhci1UUVL56Ta+635fTM5A3nYUOikzbNtiG5/dWY7OXX6YbRMRzm8zk n60/9JrhW4DCDl5Q5I0GtHDfKPQYrySPW2qVdvATr/4UGXV2kpqu12jZISUeg9ZcivFY J9Knxdxc3mR8vkDLG5O1cYA0X+bpsKYwzvmIyFGIib6GEdfLXk6fi8uI3COwemWGRrqL 4Wb+w/y5Qx9PzxYKcUefZgm1zYSiAjeOaRW/F1/ku1tQBo0SRUL8hKEsIVBFCWOHxzjI QxeuspZOzAr/WZpizoiOjP+cDogT8SzoY6LFpEAZ6XiDMunw715PTOf3P035joFwcbKW VfxQ== X-Gm-Message-State: APjAAAUZ/jCI9mk+sSB6Zb5m0/Uza0gpL/4/IqeNyU4rATKM7iWT13Ku gAJCZNhhRAI4gRmJ1SDkLiN4NtM9 X-Google-Smtp-Source: APXvYqxDuIKwn1fhCskCtaNHO9ApjR1/eikFPj69fFU6/8wXzR+7I4fnci+N6lXLwUXLX135HYbd9A== X-Received: by 2002:a05:600c:2206:: with SMTP id z6mr3727818wml.80.1557328058635; Wed, 08 May 2019 08:07:38 -0700 (PDT) Received: from localhost.localdomain (2a01cb0589880c008a3268f7cbc0fc5c.ipv6.abo.wanadoo.fr. [2a01:cb05:8988:c00:8a32:68f7:cbc0:fc5c]) by smtp.gmail.com with ESMTPSA id o6sm36315359wrh.55.2019.05.08.08.07.37 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 08 May 2019 08:07:37 -0700 (PDT) From: Romain Naour To: buildroot@buildroot.org Date: Wed, 8 May 2019 17:07:16 +0200 Message-Id: <20190508150720.27946-12-romain.naour@gmail.com> X-Mailer: git-send-email 2.14.5 In-Reply-To: <20190508150720.27946-1-romain.naour@gmail.com> References: <20190508150720.27946-1-romain.naour@gmail.com> Subject: [Buildroot] [PATCH v2 11/15] arch/arm: saphira is in fact an armv8.4a X-BeenThere: buildroot@busybox.net 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: Romain Naour , "Yann E. MORIN" MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: "Yann E. MORIN" ... and not an armv8.3a like previously supposed: https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=886d991373e4dc5a746d0a33de64f1b36e61eed9 So, change the correspoding labels and comments. Signed-off-by: "Yann E. MORIN" Signed-off-by: Romain Naour --- arch/Config.in.arm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/Config.in.arm b/arch/Config.in.arm index ee6ab875a3..b46c1c5cd1 100644 --- a/arch/Config.in.arm +++ b/arch/Config.in.arm @@ -481,7 +481,7 @@ config BR2_cortex_a75_a55 select BR2_ARCH_HAS_MMU_OPTIONAL select BR2_ARCH_NEEDS_GCC_AT_LEAST_8 -comment "armv8.3a cores" +comment "armv8.4a cores" config BR2_saphira bool "saphira" depends on BR2_ARCH_IS_64 @@ -841,7 +841,7 @@ config BR2_GCC_TARGET_CPU default "cortex-a55" if BR2_cortex_a55 default "cortex-a75" if BR2_cortex_a75 default "cortex-a75.cortex-a55" if BR2_cortex_a75_a55 - # armv8.3a + # armv8.4a default "saphira" if BR2_saphira config BR2_GCC_TARGET_ABI From patchwork Wed May 8 15:07:17 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Naour X-Patchwork-Id: 1097091 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="axsREv6c"; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 44zfwl4n0Fz9s4Y for ; Thu, 9 May 2019 01:07:51 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 35A538657A; Wed, 8 May 2019 15:07:50 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id F12Vl4av2cZf; Wed, 8 May 2019 15:07:49 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 8876E86500; Wed, 8 May 2019 15:07:49 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id E9CCB1BF25F for ; Wed, 8 May 2019 15:07:42 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id E6993864E6 for ; Wed, 8 May 2019 15:07:42 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FujnLeNCDMCI for ; Wed, 8 May 2019 15:07:42 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f67.google.com (mail-wr1-f67.google.com [209.85.221.67]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 0EF9D864EE for ; Wed, 8 May 2019 15:07:42 +0000 (UTC) Received: by mail-wr1-f67.google.com with SMTP id r7so27635169wrr.13 for ; Wed, 08 May 2019 08:07:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=KcfQJKH+Z0Yq4mMB/SWWOScfHdVegGSxoa0UYRPDBYE=; b=axsREv6cb45er1iivl0H8qFDalz1zGyfj1TffUdZcpIjshGzHcNrXhuChD2yHKXU5e xPRxumLpE2FfDDeOnh6fSvd6h1J2LBdWXAEMbIxEr52YmXjYJCXdYW8VPhUfVC+zxyCZ e/1nZG7VLt4r8ASmYnkq+zYsQz1Olzr079+sa+vcuv2oKIZLu5VL9gOJUvWCTDD0wpXq sgCHSL2s5MPZFc1GYZQNEU5aq0PyaqPCm+1W+1MjYJnES6y5BIZgh75c/8EdwBDP5SJZ VKhrLqIVvwZRtXTzgBj6kfc3l5NVwheOwud9ifESLaVFQTOccvrnQAljPN+2aF/8f9Ls TOhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=KcfQJKH+Z0Yq4mMB/SWWOScfHdVegGSxoa0UYRPDBYE=; b=HvAwE/0sFEHBMZW0UtwnSZsSd7G32qMVGCUeXKyTQlXwrGLFsyTfwhc/2L1h+8osVH qhLsm7CPaZ/TeY0EW8kMPYHIB0fYhGXJmvpgctm4+I2RyrDtVrH3RgslupTbSmXMwvsO EaXjzLoT9hqweeyqR+rBpjP5SKGB+AxzeucKGRHY8mTsVxfmpmJgfUGniamqtnoSgdpr fdyAYb/29spStEQch3I2mhMVRmTljuBrJZPFlY8a6ADTv6DSE0W65aC2+xib2zp45Bro kNmOHJnvsSKhtmjxWIa4EzEe4US44PayEV6QbGrDaVFuZNRQtpz2amz71CYlHCLBKrbv LBcg== X-Gm-Message-State: APjAAAVYm0k42cMzvyIbG+b7+9PK7uavej6AFSFXMcJLljy2toeJqK/M /HB06mSnzmUaFFWu6Pb2behSQup5 X-Google-Smtp-Source: APXvYqw8U8JV+C3BJY1Y3Ij/ARh2/NZC2VDDdiNCsHcImpAiNwiEi+dORDzUAuaqZBLIPTdWnAxWCw== X-Received: by 2002:adf:f7d0:: with SMTP id a16mr26670385wrq.211.1557328060243; Wed, 08 May 2019 08:07:40 -0700 (PDT) Received: from localhost.localdomain (2a01cb0589880c008a3268f7cbc0fc5c.ipv6.abo.wanadoo.fr. [2a01:cb05:8988:c00:8a32:68f7:cbc0:fc5c]) by smtp.gmail.com with ESMTPSA id o6sm36315359wrh.55.2019.05.08.08.07.38 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 08 May 2019 08:07:38 -0700 (PDT) From: Romain Naour To: buildroot@buildroot.org Date: Wed, 8 May 2019 17:07:17 +0200 Message-Id: <20190508150720.27946-13-romain.naour@gmail.com> X-Mailer: git-send-email 2.14.5 In-Reply-To: <20190508150720.27946-1-romain.naour@gmail.com> References: <20190508150720.27946-1-romain.naour@gmail.com> Subject: [Buildroot] [PATCH v2 12/15] arch/arm: add two new 64-bit-only armv8a cores X-BeenThere: buildroot@busybox.net 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: Romain Naour , "Yann E. MORIN" , Thomas Petazzoni MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: "Yann E. MORIN" Build tested: https://gitlab.com/kubu93/buildroot/pipelines/60318953 Signed-off-by: "Yann E. MORIN" Cc: Thomas Petazzoni Signed-off-by: Romain Naour --- arch/Config.in.arm | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/arch/Config.in.arm b/arch/Config.in.arm index b46c1c5cd1..d29b6edbc4 100644 --- a/arch/Config.in.arm +++ b/arch/Config.in.arm @@ -367,6 +367,13 @@ config BR2_cortex_a73_a53 select BR2_ARM_CPU_ARMV8A select BR2_ARCH_HAS_MMU_OPTIONAL select BR2_ARCH_NEEDS_GCC_AT_LEAST_7 +config BR2_emag + bool "emag" + depends on BR2_ARCH_IS_64 + select BR2_ARM_CPU_HAS_FP_ARMV8 + select BR2_ARM_CPU_ARMV8A + select BR2_ARCH_HAS_MMU_OPTIONAL + select BR2_ARCH_NEEDS_GCC_AT_LEAST_9 config BR2_exynos_m1 bool "exynos-m1" select BR2_ARM_CPU_HAS_ARM if !BR2_ARCH_IS_64 @@ -383,6 +390,13 @@ config BR2_falkor select BR2_ARM_CPU_ARMV8A select BR2_ARCH_HAS_MMU_OPTIONAL select BR2_ARCH_NEEDS_GCC_AT_LEAST_7 +config BR2_phecda + bool "phecda" + depends on BR2_ARCH_IS_64 + select BR2_ARM_CPU_HAS_FP_ARMV8 + select BR2_ARM_CPU_ARMV8A + select BR2_ARCH_HAS_MMU_OPTIONAL + select BR2_ARCH_NEEDS_GCC_AT_LEAST_9 config BR2_qdf24xx bool "qdf24xx" depends on BR2_ARCH_IS_64 @@ -821,8 +835,10 @@ config BR2_GCC_TARGET_CPU default "cortex-a73" if BR2_cortex_a73 default "cortex-a73.cortex-a35" if BR2_cortex_a73_a35 default "cortex-a73.cortex-a53" if BR2_cortex_a73_a53 + default "emag" if BR2_emag default "exynos-m1" if BR2_exynos_m1 default "falkor" if BR2_falkor + default "phecda" if BR2_phecda default "qdf24xx" if BR2_qdf24xx default "thunderx" if BR2_thunderx && !BR2_TOOLCHAIN_GCC_AT_LEAST_9 default "octeontx" if BR2_thunderx From patchwork Wed May 8 15:07:18 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Naour X-Patchwork-Id: 1097093 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="a8W3F3+G"; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 44zfwq52RWz9s7h for ; Thu, 9 May 2019 01:07:55 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 24AFD86500; Wed, 8 May 2019 15:07:53 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LbEC_TecrwBg; Wed, 8 May 2019 15:07:51 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 834BF86582; Wed, 8 May 2019 15:07:50 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 9083F1BF25F for ; Wed, 8 May 2019 15:07:45 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 8A4EE87043 for ; Wed, 8 May 2019 15:07:45 +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 O7FmW21jYr3v for ; Wed, 8 May 2019 15:07:44 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f68.google.com (mail-wm1-f68.google.com [209.85.128.68]) by whitealder.osuosl.org (Postfix) with ESMTPS id AB3F687042 for ; Wed, 8 May 2019 15:07:43 +0000 (UTC) Received: by mail-wm1-f68.google.com with SMTP id o189so3757057wmb.1 for ; Wed, 08 May 2019 08:07:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=GWWirN34tWbxU009kZCtNkDxYTSo1CSFHgPqFTQVoko=; b=a8W3F3+GLoRK8LIps/Fco1CEqKfwIt9NnmG/JxJqLDicj7tgRhtUIs9gVi1/cOdPkD 7zfTCQAae6ArgvbtuWg6iv7qLrGQxMBH2f0Au/vDqNITmgcNlFN8KwRkD/Cb1yT1lbnq O0k5PnkRv6tRtnogGWxw6yt+BuqwyonsVwKV/SSyh5718P5iZuc1x73zX92L/f4VylAk r11x2md4/0uf5MsdcozG1yo7qCp8QvMBAO/Fp8IR1yuSAUfk7g8V68EEAEs7k9kk7KNC SYXT3eDSuAb3J59P8wIjIqUUM5Q9KlvdGRAcoEWJY9RW47h/GzNYdeiDiKK+Vcsb3kFV ZVmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=GWWirN34tWbxU009kZCtNkDxYTSo1CSFHgPqFTQVoko=; b=QDDgnwXmcyJmNldxKvG+dQ89WXal/PsUEaGBWUwzHWgxHwGhmr1DdNjztjlKD21NVG 27Cwwg2m8C+90Z8oRE9Embxk6uD3lJ0J4o2NNxGboBCzWI8z4Ohtx6PtpDXSh3JI4x0v n6c0csaXUt7+EpKAESrVrlYQcSIqhmP79fV6nAD5bzxvc5vfc1mWWMDHP3ngL6Xt/MFo 0nqSL2WE9PtZRxdu93Fxt7rMppdIGbogiVSBkkkNwxuiALzSOjzQ+k4/vQz47D+rOrnl kZyJetpU2/qEvOUCGzCxLjWwZN6FgXZ2G12ylc+DqkFETznZUHwQvrOQQ7xhkR9ZtKe7 g96w== X-Gm-Message-State: APjAAAUGhZV4M7AmPLB1FyuDarZ1Y35q3S51Z5CH/uS5r5zTQCOFdd56 ZvkBp7r1lxk5Va3eh0RBDMr844Dx X-Google-Smtp-Source: APXvYqyVBVtzsrmLpq8a9oVpko3CR1cPECVbHNZlzheQ9SBcGsmaLkAo91GtEEeQwdqwsgFlAJCxvQ== X-Received: by 2002:a1c:dd44:: with SMTP id u65mr3471090wmg.109.1557328061729; Wed, 08 May 2019 08:07:41 -0700 (PDT) Received: from localhost.localdomain (2a01cb0589880c008a3268f7cbc0fc5c.ipv6.abo.wanadoo.fr. [2a01:cb05:8988:c00:8a32:68f7:cbc0:fc5c]) by smtp.gmail.com with ESMTPSA id o6sm36315359wrh.55.2019.05.08.08.07.40 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 08 May 2019 08:07:40 -0700 (PDT) From: Romain Naour To: buildroot@buildroot.org Date: Wed, 8 May 2019 17:07:18 +0200 Message-Id: <20190508150720.27946-14-romain.naour@gmail.com> X-Mailer: git-send-email 2.14.5 In-Reply-To: <20190508150720.27946-1-romain.naour@gmail.com> References: <20190508150720.27946-1-romain.naour@gmail.com> Subject: [Buildroot] [PATCH v2 13/15] arch/arm: add two new cortex-based armv8.2a cores X-BeenThere: buildroot@busybox.net 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: Romain Naour , "Yann E. MORIN" , Thomas Petazzoni MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: "Yann E. MORIN" The cortex-a76 implements the full amrv8.2a extensions, and some optional extensions from the armv8.3a, armv8.4a, and armv8.5a sets, but none of their mandatory extensions, which means that it does not qualify for better than an armv8.2a: https://developer.arm.com/products/processors/cortex-a/cortex-a76 http://infocenter.arm.com/help/topic/com.arm.doc.100798_0301_00_en/giq1479805174793.html http://infocenter.arm.com/help/topic/com.arm.doc.100798_0301_00_en/fjv1477559794375.html Also, gcc fits it in the armv8.2a category, too: https://gcc.gnu.org/git/?p=gcc.git;a=blob;f=gcc/config/aarch64/aarch64-cores.def;h=67ce42fb8aacd4c246295f32151a03b1f318ae44;hb=HEAD#l97 Build tested: https://gitlab.com/kubu93/buildroot/pipelines/60318953 Signed-off-by: "Yann E. MORIN" Cc: Thomas Petazzoni Signed-off-by: Romain Naour --- arch/Config.in.arm | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/Config.in.arm b/arch/Config.in.arm index d29b6edbc4..100a28e997 100644 --- a/arch/Config.in.arm +++ b/arch/Config.in.arm @@ -494,6 +494,24 @@ config BR2_cortex_a75_a55 select BR2_ARM_CPU_ARMV8A select BR2_ARCH_HAS_MMU_OPTIONAL select BR2_ARCH_NEEDS_GCC_AT_LEAST_8 +config BR2_cortex_a76 + bool "cortex-A76" + select BR2_ARM_CPU_HAS_ARM if !BR2_ARCH_IS_64 + select BR2_ARM_CPU_HAS_NEON if !BR2_ARCH_IS_64 + select BR2_ARM_CPU_HAS_THUMB2 if !BR2_ARCH_IS_64 + select BR2_ARM_CPU_HAS_FP_ARMV8 + select BR2_ARM_CPU_ARMV8A + select BR2_ARCH_HAS_MMU_OPTIONAL + select BR2_ARCH_NEEDS_GCC_AT_LEAST_9 +config BR2_cortex_a76_a55 + bool "cortex-A76/A55 big.LITTLE" + select BR2_ARM_CPU_HAS_ARM if !BR2_ARCH_IS_64 + select BR2_ARM_CPU_HAS_NEON if !BR2_ARCH_IS_64 + select BR2_ARM_CPU_HAS_THUMB2 if !BR2_ARCH_IS_64 + select BR2_ARM_CPU_HAS_FP_ARMV8 + select BR2_ARM_CPU_ARMV8A + select BR2_ARCH_HAS_MMU_OPTIONAL + select BR2_ARCH_NEEDS_GCC_AT_LEAST_9 comment "armv8.4a cores" config BR2_saphira @@ -857,6 +875,8 @@ config BR2_GCC_TARGET_CPU default "cortex-a55" if BR2_cortex_a55 default "cortex-a75" if BR2_cortex_a75 default "cortex-a75.cortex-a55" if BR2_cortex_a75_a55 + default "cortex-a76" if BR2_cortex_a76 + default "cortex-a76.cortex-a55" if BR2_cortex_a76_a55 # armv8.4a default "saphira" if BR2_saphira From patchwork Wed May 8 15:07:19 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Naour X-Patchwork-Id: 1097098 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="g+Op6RQ+"; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 44zfxC3qngz9s4Y for ; Thu, 9 May 2019 01:08:15 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id CD74430CC6; Wed, 8 May 2019 15:08:11 +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 RvdxdTunPVpz; Wed, 8 May 2019 15:08:04 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id D25DE30D43; Wed, 8 May 2019 15:08:01 +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 7A4731BF25F for ; Wed, 8 May 2019 15:08:00 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 6C1AB30AD4 for ; Wed, 8 May 2019 15:08:00 +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 a6pik8JwtElZ for ; Wed, 8 May 2019 15:07:54 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f68.google.com (mail-wm1-f68.google.com [209.85.128.68]) by silver.osuosl.org (Postfix) with ESMTPS id 37CC830D7F for ; Wed, 8 May 2019 15:07:45 +0000 (UTC) Received: by mail-wm1-f68.google.com with SMTP id b203so2563319wmb.4 for ; Wed, 08 May 2019 08:07:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=JOYiwH9QHjnCSU8jcVDhOl96hD4OPnxnsMGC0K/dqQc=; b=g+Op6RQ+GU+JhpXaE5nYt9YSZsXuOaxGhvW+D2kKIDXjET+S1+z3IIhahEAKBsMSU6 H2m9Q9+B7Bz0UklDk2/8ywjWi6fFyOQ8bhXFwqBdZishwBwTe5Ijkkw9GFEUjKAnGkkt vnhH2SiSSdmAFtLRsttKsGYCDmaZhgdyGAaNVY/oo3dEZRtnGbqENfxqs9nUJgl2DkOx KiuvAUhQAZ/LRyGovFUKZJHtoXBruEeXNyfU1iAimacGSzmphfjfepCnYl3x/yMyTHBg Rrk6eExUEtEbn564LUuegoGa055ipaoE4sB/uS36pJl1wkY3yhMovsCP3FyfAY1/JtQs a+Ig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=JOYiwH9QHjnCSU8jcVDhOl96hD4OPnxnsMGC0K/dqQc=; b=ppK3EV0pZWLbNnFZtQW4M/yRfChh/9cp+F0W0LxROrvHXr8tY9KDTLnsm5Gq5m8XAW NAxiZBEZzgiCodyh6lM4PAmRuyfjzWEI3P4fdrFcvh8uXbd6Q/mlSZlwocN7wkK64LIg piv+jHHxaabT7O9r7MwdFU0GaMfbPNxrXqydUq1g4OfH21hZ/T4aF0WUQ2G516NBAHJl sBGDGLFAdoogG08o5dXGcNjb6BbszpQnB0alUg0bhfAh5FW6qc0+PjcXwhJ+QyIJSWbu ax02TXneXkBaMfbiEYg0MyEBnIUGZW9cSqTdVDnhCGyHoPaF0KQqu7Xq5b4S0zdk/PJz kKNA== X-Gm-Message-State: APjAAAUCpgQEcrrnHqH5juoma45LvrrDVB1ABcR4JF6RXuPn21eSVFzc 8cpWUpr8fG4/2XNGAE5mOtMIPpx0 X-Google-Smtp-Source: APXvYqxAcPcMwFdRxEow/Z0j/NDWRbtLwqVHV0kAMIh5x6nC6dcR5rkmer8a24RjiejYQ/tEU6Q3XA== X-Received: by 2002:a1c:2388:: with SMTP id j130mr1548752wmj.133.1557328063365; Wed, 08 May 2019 08:07:43 -0700 (PDT) Received: from localhost.localdomain (2a01cb0589880c008a3268f7cbc0fc5c.ipv6.abo.wanadoo.fr. [2a01:cb05:8988:c00:8a32:68f7:cbc0:fc5c]) by smtp.gmail.com with ESMTPSA id o6sm36315359wrh.55.2019.05.08.08.07.41 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 08 May 2019 08:07:42 -0700 (PDT) From: Romain Naour To: buildroot@buildroot.org Date: Wed, 8 May 2019 17:07:19 +0200 Message-Id: <20190508150720.27946-15-romain.naour@gmail.com> X-Mailer: git-send-email 2.14.5 In-Reply-To: <20190508150720.27946-1-romain.naour@gmail.com> References: <20190508150720.27946-1-romain.naour@gmail.com> Subject: [Buildroot] [PATCH v2 14/15] arch/arm: add two new non-cortex-based armv8.2a cores X-BeenThere: buildroot@busybox.net 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: Romain Naour , "Yann E. MORIN" , Thomas Petazzoni MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: "Yann E. MORIN" The Neoverse N1 CPU was supported in GCC earlier through the codename Ares [1]. [1] https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=37cf0ddecfd1eb5c6852a44135af5a92e5103931 Build tested: https://gitlab.com/kubu93/buildroot/pipelines/60318953 Signed-off-by: "Yann E. MORIN" [Romain: rename BR2_ares to BR2_neoverse_n1] Signed-off-by: Romain Naour Cc: Thomas Petazzoni --- v2: add neoverse-e1 (Yann) reorder alphabetically after renaming ares to neoverse-n1. Note: The Neoverse E1 CPU needs at least binutils 2.32 to support Speculative Store Bypass Safe instruction (SSBS) which is part of ARMv8.5-A architecture extensions. Postpone the support for this new ARM core. See: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=104fefeebb544b7745bb353b63110afa46119647 --- arch/Config.in.arm | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/arch/Config.in.arm b/arch/Config.in.arm index 100a28e997..b1d9173b84 100644 --- a/arch/Config.in.arm +++ b/arch/Config.in.arm @@ -512,6 +512,22 @@ config BR2_cortex_a76_a55 select BR2_ARM_CPU_ARMV8A select BR2_ARCH_HAS_MMU_OPTIONAL select BR2_ARCH_NEEDS_GCC_AT_LEAST_9 +config BR2_neoverse_n1 + bool "neoverse-N1 (alias ares)" + select BR2_ARM_CPU_HAS_ARM if !BR2_ARCH_IS_64 + select BR2_ARM_CPU_HAS_NEON if !BR2_ARCH_IS_64 + select BR2_ARM_CPU_HAS_THUMB2 if !BR2_ARCH_IS_64 + select BR2_ARM_CPU_HAS_FP_ARMV8 + select BR2_ARM_CPU_ARMV8A + select BR2_ARCH_HAS_MMU_OPTIONAL + select BR2_ARCH_NEEDS_GCC_AT_LEAST_9 +config BR2_tsv110 + bool "tsv110" + depends on BR2_ARCH_IS_64 + select BR2_ARM_CPU_HAS_FP_ARMV8 + select BR2_ARM_CPU_ARMV8A + select BR2_ARCH_HAS_MMU_OPTIONAL + select BR2_ARCH_NEEDS_GCC_AT_LEAST_9 comment "armv8.4a cores" config BR2_saphira @@ -877,6 +893,8 @@ config BR2_GCC_TARGET_CPU default "cortex-a75.cortex-a55" if BR2_cortex_a75_a55 default "cortex-a76" if BR2_cortex_a76 default "cortex-a76.cortex-a55" if BR2_cortex_a76_a55 + default "neoverse-n1" if BR2_neoverse_n1 + default "tsv110" if BR2_tsv110 # armv8.4a default "saphira" if BR2_saphira From patchwork Wed May 8 15:07:20 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Naour X-Patchwork-Id: 1097095 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="M9oba295"; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 44zfwr4rRsz9s9T for ; Thu, 9 May 2019 01:07:56 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 21F7084B40; Wed, 8 May 2019 15:07:53 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hhXDjmXUXviJ; Wed, 8 May 2019 15:07:51 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id B799D85055; Wed, 8 May 2019 15:07:51 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 14A8D1BF25F for ; Wed, 8 May 2019 15:07:48 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 0F4AE864F8 for ; Wed, 8 May 2019 15:07:48 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MhK_Nou0RC86 for ; Wed, 8 May 2019 15:07:47 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f68.google.com (mail-wm1-f68.google.com [209.85.128.68]) by fraxinus.osuosl.org (Postfix) with ESMTPS id ADF778657A for ; Wed, 8 May 2019 15:07:46 +0000 (UTC) Received: by mail-wm1-f68.google.com with SMTP id 198so3719322wme.3 for ; Wed, 08 May 2019 08:07:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=aEFQbE8UFlwPIx6ZhccqGacykBEj+HNbPGuJAzuKlMY=; b=M9oba295t32sYwFuSTTizf0qNTCkz+LzFKyxU2irJt1SIwCaBjg2sJg21LZU7OlMFk d7fxDV7PB8bZctgJU4XyCyn5zjm77dYddUv+yBsJBee4wyDtsCHtigo9sGSAcvvhahLb tYIs3Q1c2/x9CgcedsPP2VaiR6kuuVDDgZq3Fz4D1hR/KwiL8Nnex3URELaNYLRzuzGo YQkwZeYbJRA8JpzgEWMQp8cZJAX3qZav9X1vwwyj68xVdr8nxDc1C8EbEsQ4QehTbrSm IrLUVVUXMROL3ae2VA3oCAy39PYg7gr+xHh2fBpF1r3/Xagp7hzBuboSNQKTocU5XDRs iY3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=aEFQbE8UFlwPIx6ZhccqGacykBEj+HNbPGuJAzuKlMY=; b=UiX/C6Yy6sDeWFAKhVbji7dOn7Al8/Ajzkv412rSnWz9SYNpNc9+PCe9kO6URfgvJ0 zbf7EwOqfC7zKHlx1NDjsTYxt3KO2GOiSZcE5z+80NGZ7YkDSjhVFmXlJgme24GGNWvn E64BWXInNcsQDM0gaFUCs1pRTXRCWxjVSbhcNiN75vwvQb1Xcfdb3XqsFUxT7zy9Zx6e vrsIp5c6f4cpEkjou7I9XLzS2Lq7HpB6mhbnITIL8CxJxM+7j/p07psI+OrRFvdhnr5y IOHzTkTnqYfDMPppL8RefiZ22lZu3ekixenfe4WkOSHaj8vPbNPLvUKfJc1V3IzU5+a0 gWiA== X-Gm-Message-State: APjAAAXm7VL74oH91RnVlOZdvUJq8CiAGk6YKiNOEsF8Em7jb4UhxkJ9 kov1yQIG+N3sRsVJLTfK3DBWWlcQ X-Google-Smtp-Source: APXvYqyR2EsdgpYPCIEJ0zAQA7lu7U6GtAJaky10SyrnJ3yQnREur5DxOT+DespfnNHXMpuafC2CPA== X-Received: by 2002:a1c:9e04:: with SMTP id h4mr3676866wme.135.1557328064593; Wed, 08 May 2019 08:07:44 -0700 (PDT) Received: from localhost.localdomain (2a01cb0589880c008a3268f7cbc0fc5c.ipv6.abo.wanadoo.fr. [2a01:cb05:8988:c00:8a32:68f7:cbc0:fc5c]) by smtp.gmail.com with ESMTPSA id o6sm36315359wrh.55.2019.05.08.08.07.43 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 08 May 2019 08:07:43 -0700 (PDT) From: Romain Naour To: buildroot@buildroot.org Date: Wed, 8 May 2019 17:07:20 +0200 Message-Id: <20190508150720.27946-16-romain.naour@gmail.com> X-Mailer: git-send-email 2.14.5 In-Reply-To: <20190508150720.27946-1-romain.naour@gmail.com> References: <20190508150720.27946-1-romain.naour@gmail.com> Subject: [Buildroot] [PATCH v2 15/15] package/gcc: enable gcc 9.1 for ork1 (openrisc) X-BeenThere: buildroot@busybox.net 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: Romain Naour MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" openrisc support has been added with gcc 9.1. Keep for now the old gcc 5 fork for ork1. https://gcc.gnu.org/gcc-9/changes.html Tested using qemu_or1k_defconfig. Signed-off-by: Romain Naour --- package/gcc/Config.in.host | 2 -- package/gcc/gcc.mk | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/package/gcc/Config.in.host b/package/gcc/Config.in.host index 1d3af73e69..beea1f6cdb 100644 --- a/package/gcc/Config.in.host +++ b/package/gcc/Config.in.host @@ -71,8 +71,6 @@ config BR2_GCC_VERSION_8_X config BR2_GCC_VERSION_9_X bool "gcc 9.x" - # Broken or unsupported architectures - depends on !BR2_or1k select BR2_TOOLCHAIN_GCC_AT_LEAST_9 endchoice diff --git a/package/gcc/gcc.mk b/package/gcc/gcc.mk index 5901624ea5..e07a453ecc 100644 --- a/package/gcc/gcc.mk +++ b/package/gcc/gcc.mk @@ -13,7 +13,7 @@ GCC_VERSION = $(call qstrip,$(BR2_GCC_VERSION)) ifeq ($(BR2_GCC_VERSION_ARC),y) GCC_SITE = $(call github,foss-for-synopsys-dwc-arc-processors,gcc,$(GCC_VERSION)) GCC_SOURCE = gcc-$(GCC_VERSION).tar.gz -else ifeq ($(BR2_or1k),y) +else ifeq ($(BR2_GCC_VERSION_OR1K),y) GCC_SITE = $(call github,openrisc,or1k-gcc,$(GCC_VERSION)) GCC_SOURCE = gcc-$(GCC_VERSION).tar.gz else @@ -177,7 +177,7 @@ else HOST_GCC_COMMON_CONF_OPTS += --without-isl --without-cloog endif -ifeq ($(BR2_arc)$(BR2_or1k),y) +ifeq ($(BR2_arc)$(BR2_GCC_VERSION_OR1K),y) HOST_GCC_COMMON_DEPENDENCIES += host-flex host-bison endif