From patchwork Sun Sep 13 11:32:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Egorenkov X-Patchwork-Id: 1363071 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) 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=linux.ibm.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=ibm.com header.i=@ibm.com header.a=rsa-sha256 header.s=pp1 header.b=B5cmnHck; 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 4Bq6p41glgz9sTH for ; Sun, 13 Sep 2020 21:34:03 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id E0BD085F41; Sun, 13 Sep 2020 11:34:01 +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 dyhGjjGUASTF; Sun, 13 Sep 2020 11:34:01 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 35991850E0; Sun, 13 Sep 2020 11:34:01 +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 5C12B1BF3A7 for ; Sun, 13 Sep 2020 11:33:30 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 5959586854 for ; Sun, 13 Sep 2020 11:33:30 +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 x4Gy1Bu2HZji for ; Sun, 13 Sep 2020 11:33:29 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by whitealder.osuosl.org (Postfix) with ESMTPS id CCC3A8684F for ; Sun, 13 Sep 2020 11:33:29 +0000 (UTC) Received: from pps.filterd (m0098393.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 08DBXSKL099474 for ; Sun, 13 Sep 2020 07:33:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding; s=pp1; bh=KvLaoualQLL4bXw4Kvgq6X8YX492aEYkqY3aoz3jL/s=; b=B5cmnHckry6n2MvPrg2d5atPVPRxX8CoZOYwt1DcQgpdiqLlcHa96p8U+XDdiCAXOpk0 LXgA0S8z1s4MQG8wJcQQJKAkmhush2xTb/3cy12BR4PlDFkIhwork7SbLZTNQ5xjHND9 pcMsm1kZ71RFyL5RBxWhlwRjHuz26fRahpSG8W6kp/iWCFDpLv5Q5hh5SOFDMkG64Jwo ytwM62ZyYz5q+BhliGdUNYtJy8sQkyVqbbzAZz5xQk9m68laLn2aO1rAdTcXK0vsabAv kBMsrBtfyYHCCUHJ2HIL7YLVfT0MFvqqNVlpI8LrsW8bmcQ6WREdIGTlDW0UGIpoULHF vw== Received: from ppma06ams.nl.ibm.com (66.31.33a9.ip4.static.sl-reverse.com [169.51.49.102]) by mx0a-001b2d01.pphosted.com with ESMTP id 33hj5a8gng-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Sun, 13 Sep 2020 07:33:29 -0400 Received: from pps.filterd (ppma06ams.nl.ibm.com [127.0.0.1]) by ppma06ams.nl.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 08DBWxfS025383 for ; Sun, 13 Sep 2020 11:33:14 GMT Received: from b06cxnps4074.portsmouth.uk.ibm.com (d06relay11.portsmouth.uk.ibm.com [9.149.109.196]) by ppma06ams.nl.ibm.com with ESMTP id 33hb1j0aa6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Sun, 13 Sep 2020 11:33:14 +0000 Received: from d06av25.portsmouth.uk.ibm.com (d06av25.portsmouth.uk.ibm.com [9.149.105.61]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 08DBXB7j17301922 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 13 Sep 2020 11:33:11 GMT Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 55AD911C04C; Sun, 13 Sep 2020 11:33:11 +0000 (GMT) Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id EDD0C11C050; Sun, 13 Sep 2020 11:33:10 +0000 (GMT) Received: from oc8242746057.ibm.com.com (unknown [9.171.61.140]) by d06av25.portsmouth.uk.ibm.com (Postfix) with ESMTP; Sun, 13 Sep 2020 11:33:10 +0000 (GMT) From: Alexander Egorenkov To: buildroot@buildroot.org Date: Sun, 13 Sep 2020 13:32:45 +0200 Message-Id: <20200913113254.1955447-4-egorenar@linux.ibm.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200913113254.1955447-1-egorenar@linux.ibm.com> References: <20200913113254.1955447-1-egorenar@linux.ibm.com> MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235, 18.0.687 definitions=2020-09-13_03:2020-09-10, 2020-09-13 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 spamscore=0 priorityscore=1501 impostorscore=0 mlxscore=0 clxscore=1015 lowpriorityscore=0 malwarescore=0 phishscore=0 adultscore=0 mlxlogscore=748 suspectscore=15 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2009130106 Subject: [Buildroot] [PATCH v2 03/12] toolchain: add support for the internal IBM s390x and Z toolchain 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: Alexander Egorenkov Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Signed-off-by: Alexander Egorenkov --- arch/Config.in | 1 - package/gcc/gcc.mk | 5 +++++ toolchain/toolchain-buildroot/Config.in | 6 +++--- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/arch/Config.in b/arch/Config.in index eb9b6007c9..155403c363 100644 --- a/arch/Config.in +++ b/arch/Config.in @@ -223,7 +223,6 @@ config BR2_s390x bool "s390x" select BR2_ARCH_IS_64 select BR2_ARCH_HAS_MMU_MANDATORY - select BR2_ARCH_HAS_NO_TOOLCHAIN_BUILDROOT help s390x is a big-endian architecture made by IBM. http://www.ibm.com/ diff --git a/package/gcc/gcc.mk b/package/gcc/gcc.mk index b834269adc..0912c07a71 100644 --- a/package/gcc/gcc.mk +++ b/package/gcc/gcc.mk @@ -241,6 +241,11 @@ HOST_GCC_COMMON_CONF_OPTS += \ --with-long-double-128 endif +ifeq ($(BR2_s390x),y) +HOST_GCC_COMMON_CONF_OPTS += \ + --with-long-double-128 +endif + HOST_GCC_COMMON_TOOLCHAIN_WRAPPER_ARGS += -DBR_CROSS_PATH_SUFFIX='".br_real"' # For gcc-initial, we need to tell gcc that the C library will be diff --git a/toolchain/toolchain-buildroot/Config.in b/toolchain/toolchain-buildroot/Config.in index 418d5cb387..1c4705600e 100644 --- a/toolchain/toolchain-buildroot/Config.in +++ b/toolchain/toolchain-buildroot/Config.in @@ -46,9 +46,9 @@ config BR2_TOOLCHAIN_BUILDROOT_GLIBC BR2_aarch64_be || BR2_i386 || BR2_mips || \ BR2_mipsel || BR2_mips64 || BR2_mips64el|| \ BR2_powerpc || BR2_powerpc64 || BR2_powerpc64le || \ - BR2_riscv || BR2_sh || BR2_sparc64 || \ - BR2_x86_64 || BR2_microblaze || BR2_nios2 || \ - (BR2_arc && BR2_ARC_ATOMIC_EXT) || BR2_csky + BR2_riscv || BR2_s390x || BR2_sh || \ + BR2_sparc64 || BR2_x86_64 || BR2_microblaze || \ + BR2_nios2 || (BR2_arc && BR2_ARC_ATOMIC_EXT) || BR2_csky depends on BR2_USE_MMU depends on !BR2_STATIC_LIBS depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_2