From patchwork Fri Nov 9 20:09:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Brodkin X-Patchwork-Id: 995745 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=synopsys.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=synopsys.com header.i=@synopsys.com header.b="bjrbx7bP"; 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 42sB8g4gtgz9s8J for ; Sat, 10 Nov 2018 07:10:11 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id B34DF22DED; Fri, 9 Nov 2018 20:10:06 +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 NrPbuuMYoVgI; Fri, 9 Nov 2018 20:10:04 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id AE9B9221D5; Fri, 9 Nov 2018 20:10:04 +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 493321BF3AE for ; Fri, 9 Nov 2018 20:10:03 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 45BC8865ED for ; Fri, 9 Nov 2018 20:10:03 +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 zzUnBppApyoU for ; Fri, 9 Nov 2018 20:10:02 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from smtprelay.synopsys.com (smtprelay2.synopsys.com [198.182.60.111]) by whitealder.osuosl.org (Postfix) with ESMTPS id 142428657C for ; Fri, 9 Nov 2018 20:10:02 +0000 (UTC) Received: from mailhost.synopsys.com (mailhost1.synopsys.com [10.12.238.239]) by smtprelay.synopsys.com (Postfix) with ESMTP id 86F4A10C0C47; Fri, 9 Nov 2018 12:10:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1541794201; bh=/2cO/pFmy6grxpKaowxD8eo+axv39tlPreyn4jvmuD0=; h=From:To:Cc:Subject:Date:From; b=bjrbx7bP26KBKIqTCsJvhfOJ9XsVCErYDVO8sE0HYvWBCO0ILvAqjYzJvlsXmj+9N SVGzCYAmRcT8ghXiFQ7xlfmZrAZzKgNeD1BvqL00VwEUDjBSavon+3Z4K5n1RJ4UPN vhCeswIjTP+z7ibueqREE3ypls/IO4K71NA/+21DqsHgspSeG1CNCRvDm8Ld+pBY0A 68eKSjQyjOVPJHec6B3Ba1XbUtLGtYQk0cI1GmJ9nkj8wNLzfL25VbSSfh4W0lyql3 O2RyFu6LFbqp4t2d45pNIprCF+FiXJ0mOpRfcn5lfJ1TjAxl7cubANchhdVNAG56eT HNx7dUI378MOg== Received: from abrodkin-7480l.internal.synopsys.com (unknown [10.225.15.87]) by mailhost.synopsys.com (Postfix) with ESMTP id A6BA558C4; Fri, 9 Nov 2018 12:09:58 -0800 (PST) From: Alexey Brodkin To: buildroot@busybox.net Date: Fri, 9 Nov 2018 23:09:49 +0300 Message-Id: <20181109200949.5170-1-abrodkin@synopsys.com> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Subject: [Buildroot] [PATCH v2] toolchain: Enable Glibc for all little-endian ARCs with atomic ops 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: Peter Korsgaard , Alexey Brodkin , arc-buildroot@synopsys.com, Thomas Petazzoni Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Initially we had a port only for ARCv2 cores but then with a simple change ARCompact cores got supported as well. So we generalize from BR2_archs to BR2_arcle as we haven't tried to get glibc working on big-endian ARCs yet. Also we never bothered to check avaialbility of atomic instructions in the core but in case of Glibc for ARC this is really a must, so we add this check here. Note in case of uClibc we may have system w/o HW atomics but: 1. Only single-core systems are allowed 2. Atomic instructions are emulated via arc_usr_cmpxchg syscall Signed-off-by: Alexey Brodkin Cc: Arnout Vandecappelle (Essensium/Mind) Cc: Thomas Petazzoni Cc: Peter Korsgaard --- Changes v1 -> v2 * Merge both conditions in one place [Thomas] toolchain/toolchain-buildroot/Config.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toolchain/toolchain-buildroot/Config.in b/toolchain/toolchain-buildroot/Config.in index 7d9428c70ed0..beb17a218b57 100644 --- a/toolchain/toolchain-buildroot/Config.in +++ b/toolchain/toolchain-buildroot/Config.in @@ -48,7 +48,7 @@ config BR2_TOOLCHAIN_BUILDROOT_GLIBC BR2_powerpc || BR2_powerpc64 || BR2_powerpc64le || \ BR2_riscv || BR2_sh || BR2_sparc64 || \ BR2_x86_64 || BR2_microblaze || BR2_nios2 || \ - BR2_archs38 + (BR2_arcle && BR2_ARC_ATOMIC_EXT) depends on BR2_USE_MMU depends on !BR2_STATIC_LIBS depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_2