From patchwork Sun Aug 17 19:29:51 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yann E. MORIN" X-Patchwork-Id: 380629 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id 283A6140114 for ; Mon, 18 Aug 2014 05:30:51 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 68A1E8ABBF; Sun, 17 Aug 2014 19:30:50 +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 8mU3z-ofu6C8; Sun, 17 Aug 2014 19:30:47 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 2EDAC8ABD5; Sun, 17 Aug 2014 19:30:28 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id F32851BFA1D for ; Sun, 17 Aug 2014 19:30:25 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id EF81888ADF for ; Sun, 17 Aug 2014 19:30:25 +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 jUplQdzDZ5ZN for ; Sun, 17 Aug 2014 19:30:25 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-we0-f173.google.com (mail-we0-f173.google.com [74.125.82.173]) by hemlock.osuosl.org (Postfix) with ESMTPS id AFD2488A31 for ; Sun, 17 Aug 2014 19:30:24 +0000 (UTC) Received: by mail-we0-f173.google.com with SMTP id q58so4165906wes.18 for ; Sun, 17 Aug 2014 12:30:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=lt+F1jiKrqm9w8XD7Ab4+z/O707/Z/PucbQzoUaTAoM=; b=Au5ujcFAgHy8qfUgPiXRFaQjwfhNGaUiEDxX8MdhYWis+ljAZeab3MRsyHMud8WgeK +Lsyty0mjgar8AcCV7m9y1+t3UswTZxtkYXd3yNdkV7dx56GQBXp7C0XHen4qDW5EkOA QiTI9PrsTuzS9NGPw2mYm5zTKGaORps/xXCZOQlNfsld8ETQfisFectqQj0dRgCPFUKM C3KNuwulTgxYG86pf9jyT7CRfTaMtHQzHKeSKFNWZmxYlu31nnaSohrhwXRiMizjCNRf wQMXuS4KGBdhowGFlLZVYDvBSchkNgndxjnLw4CVRZVhXsGcS/rbe4uh426oqkXpAVZd XoxA== X-Received: by 10.194.58.83 with SMTP id o19mr13443391wjq.20.1408303823122; Sun, 17 Aug 2014 12:30:23 -0700 (PDT) Received: from gourin.bzh.lan (ks3095497.kimsufi.com. [94.23.60.27]) by mx.google.com with ESMTPSA id ez1sm30072010wib.15.2014.08.17.12.30.21 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 17 Aug 2014 12:30:22 -0700 (PDT) From: "Yann E. MORIN" To: buildroot@buildroot.org Date: Sun, 17 Aug 2014 21:29:51 +0200 Message-Id: X-Mailer: git-send-email 1.9.1 In-Reply-To: References: Cc: Thomas Petazzoni , "Yann E. MORIN" Subject: [Buildroot] [PATCH 12/24 v5] arch/arm: always has atomic ops X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net armv6 and above all have one sort of atomic ops or another. For armv5 and below, they are emulated, either as a kernel trap, a kernel VDSO, or compiler intrinsics. Aarch64 is just armv8, so make it a single commit. ;-) Signed-off-by: "Yann E. MORIN" Cc: Thomas Petazzoni Cc: Anton Kolesov --- arch/Config.in.aarch64 | 3 +++ arch/Config.in.arm | 3 +++ 2 files changed, 6 insertions(+) diff --git a/arch/Config.in.aarch64 b/arch/Config.in.aarch64 index 4c68a37..2e79870 100644 --- a/arch/Config.in.aarch64 +++ b/arch/Config.in.aarch64 @@ -3,3 +3,6 @@ config BR2_ARCH config BR2_ENDIAN default "LITTLE" + +config BR2_ARCH_HAS_ATOMICS + default y diff --git a/arch/Config.in.arm b/arch/Config.in.arm index 4cc41f1..e404a50 100644 --- a/arch/Config.in.arm +++ b/arch/Config.in.arm @@ -340,6 +340,9 @@ config BR2_ENDIAN default "LITTLE" if BR2_arm default "BIG" if BR2_armeb +config BR2_ARCH_HAS_ATOMICS + default y + config BR2_GCC_TARGET_CPU default "arm920" if BR2_arm920 default "arm920t" if BR2_arm920t