From patchwork Sun Jul 14 14:29:43 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yann E. MORIN" X-Patchwork-Id: 1131736 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=none (p=none dis=none) header.from=free.fr Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="h0kJgCaq"; 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 45mpw431Vnz9s7T for ; Mon, 15 Jul 2019 00:29:56 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 3337787985; Sun, 14 Jul 2019 14:29:52 +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 AIE4gD+-SPbB; Sun, 14 Jul 2019 14:29:51 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id E630B82124; Sun, 14 Jul 2019 14:29:50 +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 427FD1BF319 for ; Sun, 14 Jul 2019 14:29:48 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 3FAC382140 for ; Sun, 14 Jul 2019 14:29:48 +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 aE52NZgqn-3C for ; Sun, 14 Jul 2019 14:29:47 +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 hemlock.osuosl.org (Postfix) with ESMTPS id 6A0E6820E8 for ; Sun, 14 Jul 2019 14:29:47 +0000 (UTC) Received: by mail-wm1-f65.google.com with SMTP id v19so12748204wmj.5 for ; Sun, 14 Jul 2019 07:29:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=tA/8V9vvLZ08GBKPG2RK7EJIh8kO0NSJESWDc98kH8k=; b=h0kJgCaqgtF8RDB9cqFLlfkRJY2RYNF7vrz/CLzxb1SH8jgkxtbO3U6jRigs9dYRUU T+DN92rlsu3FIVV3jjWcj3u0jkOt02flM+ULfmBUdqiAqw+u90n6AWpKH3fCG1CZc9yv m5Mf7oWdrbF3jQ7wGn8zR9j50DGWZ8d1VQUa4QdSIRXDxKix1VPsvASSqi+fkkbxhwJP B0cWRZ+uPcQiaRTZPRZLBi5qGJE99/y6FV/HqeR8GnIcYx476YmkeCY3pbNt6hGx54FU 4eDhSkwiQNbqTcv0ueO8k+hctqh9bL8/ZVyR8oPOzBmtS25k+fDSDtkrTcayHZg7G/DM 9hfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=tA/8V9vvLZ08GBKPG2RK7EJIh8kO0NSJESWDc98kH8k=; b=uFeHvBcafl+7fB0odQ13M1dv0cQRJ7lC5wUq24gXmMGGLmtu52tky97YMqmfHnVvOT iLdVas+C5iGmrhyTIDu4RNEbOgzP6NE4rthypxIrJ/dBq8X9dFvH1mnSydAYm6k5/yAd 34ymYj9zAJ8m6MhwykK1UWt3VBeXC+jpIEfCL0PXKUhGnWIq/lB0AcUj9n7gVOuyYNNe 7H7CHGfVRS2+mTiXmnknfiUliCk5Bp2rLRllaA6QTRjRN43CDpO08TOSXhNes9h1nxkP hAp343Z0S1mAxWK8ay+NO76q0Nk2cJ5OX1fJwDh/mbIz/6zrawbzjVgRB8L8OOWpq50S zkdA== X-Gm-Message-State: APjAAAUHT7PgVjkpb/pXKT12B4RAd8DfwkeiMit70Z97826VWzJKYxg5 omaeZl86SxbuGzV99Up8glMWhqkR X-Google-Smtp-Source: APXvYqxL66Ht30AG1dSNrbyQS66LKa4QLdK2JmONDQukxZ0NqBmkYFNWNRa0XJVOSQCanJk4Q4XeHw== X-Received: by 2002:a7b:c4c1:: with SMTP id g1mr20236259wmk.14.1563114585769; Sun, 14 Jul 2019 07:29:45 -0700 (PDT) Received: from localhost.localdomain ([2a01:cb19:829a:2800:789d:89a5:336:5ca6]) by smtp.gmail.com with ESMTPSA id z1sm15752250wrp.51.2019.07.14.07.29.44 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sun, 14 Jul 2019 07:29:45 -0700 (PDT) From: "Yann E. MORIN" To: buildroot@buildroot.org Date: Sun, 14 Jul 2019 16:29:43 +0200 Message-Id: <8d0887d8b7c56dd2b92314886f35bdaa7d57894d.1563114574.git.yann.morin.1998@free.fr> X-Mailer: git-send-email 2.20.1 In-Reply-To: References: MIME-Version: 1.0 Subject: [Buildroot] [PATCH 2/2 v2] arch/arc: always needs -matomic with atomix extensions 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: Alexey Brodkin , "Yann E. MORIN" , Thomas Petazzoni Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" As reported by Alexey: https://patchwork.ozlabs.org/patch/1087480/ https://patchwork.ozlabs.org/patch/1087471/ Reported-by: Alexey Brodkin Signed-off-by: Yann E. MORIN Cc: Alexey Brodkin Cc: Thomas Petazzoni Cc: Arnout Vandecappelle --- Changes v1 -> v2: - move the condition out of package/Makefile.in (Alexey) --- arch/arch.mk.arc | 4 ++++ package/Makefile.in | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) create mode 100644 arch/arch.mk.arc diff --git a/arch/arch.mk.arc b/arch/arch.mk.arc new file mode 100644 index 0000000000..559216a733 --- /dev/null +++ b/arch/arch.mk.arc @@ -0,0 +1,4 @@ +# -matomic is always required when the ARC core has the atomic extensions +ifeq ($(BR2_arc)$(BR2_ARC_ATOMIC_EXT),y) +ARCH_TOOLCHAIN_WRAPPER_OPTS = -matomic +endif diff --git a/package/Makefile.in b/package/Makefile.in index f05b9cc3aa..0a7899c852 100644 --- a/package/Makefile.in +++ b/package/Makefile.in @@ -112,10 +112,6 @@ ifeq ($(BR2_xtensa),y) TARGET_ABI += -mlongcalls -mauto-litpools endif -ifeq ($(BR2_arc)$(BR2_ARC_ATOMIC_EXT),yy) -TARGET_ABI += -matomic -endif - STAGING_SUBDIR = $(GNU_TARGET_NAME)/sysroot STAGING_DIR = $(HOST_DIR)/$(STAGING_SUBDIR)