From patchwork Sat May 8 22:24:19 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Hunleth X-Patchwork-Id: 1475939 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.138; helo=smtp1.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=troodon-software-com.20150623.gappssmtp.com header.i=@troodon-software-com.20150623.gappssmtp.com header.a=rsa-sha256 header.s=20150623 header.b=HrBAd+xs; dkim-atps=neutral Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Fd21g3XY5z9tld for ; Sun, 9 May 2021 08:24:55 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 07F6D83B0D; Sat, 8 May 2021 22:24:54 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1PqA89wFNUCB; Sat, 8 May 2021 22:24:53 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id 6453883A8E; Sat, 8 May 2021 22:24:52 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 227DA1BF681 for ; Sat, 8 May 2021 22:24:51 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 0D73B4043D for ; Sat, 8 May 2021 22:24:51 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp2.osuosl.org (amavisd-new); dkim=pass (2048-bit key) header.d=troodon-software-com.20150623.gappssmtp.com Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aOL0V3aR2p5l for ; Sat, 8 May 2021 22:24:50 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 Received: from mail-qv1-xf30.google.com (mail-qv1-xf30.google.com [IPv6:2607:f8b0:4864:20::f30]) by smtp2.osuosl.org (Postfix) with ESMTPS id E9BCC400E9 for ; Sat, 8 May 2021 22:24:49 +0000 (UTC) Received: by mail-qv1-xf30.google.com with SMTP id w9so6616416qvi.13 for ; Sat, 08 May 2021 15:24:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=troodon-software-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=trjptoQIUgEwhYq1dAZG8c3Pe/9ngTHvNPCk7bLRhSM=; b=HrBAd+xsteEJ29szbky371SXZjS0GRQnmiZa221oDybgIVQ5ASbRoAgabsQVwpXXoe NH6TfUm+00+WUQhLuC4zI8kEqYrdwVFclnYi7kMxjeu2tcpCbGEW1PDSwZzabDbcZ95R hHOyXntFIM3uEKCrnb55xGvZB5/suGf+RvhAft1gxLjdBRILn9uRTqJaM4ya9DZCFmX+ oEmPd1mNifG9LTnIFWg00pKENSKefX7ioaBaj7oi/3auJsB/+L0LO/vjn0sqT/nZlf8p 7ifDGqdtD0LDULrQFVXmKzGGiDnoywwHDTxGp9VU6SbjPFfVbDfUIYwtCUAw5dCeIu9g morg== 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:mime-version :content-transfer-encoding; bh=trjptoQIUgEwhYq1dAZG8c3Pe/9ngTHvNPCk7bLRhSM=; b=FHAZkm3rMF5fH3HKjapyBvnK64CZUsonZ+RHSj4vzoreHEIy9CofUOLxPyAbS1wpuE h2dGbD6is5BdDHt/rhLFwxYisCqy3PIRYgVdDXg2kiABdgb7rHw1nTrBgncD07R14EOO HfWep0KvZs3PgnPAx+oN9TnZGI1pY9Vw+BBjiF/uoMsGyjD7ouJypUnRdpj49haj0Iiv 6rKZQ7YXZDnsbYLloYvb9emIFMaqhLB1YeXRRflLMOgIA+160XgTQlOpkvJ36xIpWvCW 8WUX1hJIcHcljFuk6YuV/bEdr24lWULQ1EYorqjvRVzvywlKJFV+n0UMLogo3yCW1fMS L7QA== X-Gm-Message-State: AOAM531CwdqljRB2QUJIOevhLTLHnfzeIKs8o33If9r/AOF2zuPPaPlY BObt9jLQON7lVNbGo3f4WCz3oIKDUz6ceaOAR/w= X-Google-Smtp-Source: ABdhPJzkVwEXubfH5I2P2vYRdJ1QZCv1hBOebNpNl/kLy1bltc0a9fp7yZZ5zUPLqYvVCDk8E1hJRQ== X-Received: by 2002:a05:6214:21a7:: with SMTP id t7mr3867739qvc.4.1620512688342; Sat, 08 May 2021 15:24:48 -0700 (PDT) Received: from sprint.hunleth.lan ([2001:470:8:3e7::48d]) by smtp.gmail.com with ESMTPSA id 75sm7788169qkl.119.2021.05.08.15.24.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 08 May 2021 15:24:47 -0700 (PDT) From: Frank Hunleth To: buildroot@buildroot.org Date: Sat, 8 May 2021 18:24:19 -0400 Message-Id: <20210508222419.586915-1-fhunleth@troodon-software.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/1] erlang: support builds when gcc __atomic_* exist 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: Will Newton Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" While Erlang will use it's own atomic operations, it can also use gcc __atomic_* builtins. This is now listed in Erlang's HOWTO/INSTALL.md. This change was necessary on RISC-V, since Erlang didn't have a built-in implementation, but it was able to use gcc's __atomic_* functions. Signed-off-by: Frank Hunleth --- package/erlang/Config.in | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/package/erlang/Config.in b/package/erlang/Config.in index ab87eab6ff..b6b100f38b 100644 --- a/package/erlang/Config.in +++ b/package/erlang/Config.in @@ -6,9 +6,11 @@ config BR2_PACKAGE_HOST_ERLANG_ARCH_SUPPORTS config BR2_PACKAGE_ERLANG_ARCH_SUPPORTS bool # see HOWTO/INSTALL.md for Erlang's supported platforms - # when using its native atomic ops implementation + # when using its native atomic ops implementation or gcc's + # __atomic_* builtins default y if BR2_i386 || BR2_x86_64 || BR2_powerpc || \ - BR2_sparc_v9 || BR2_arm || BR2_aarch64 || BR2_mipsel + BR2_sparc_v9 || BR2_arm || BR2_aarch64 || BR2_mipsel || \ + BR2_TOOLCHAIN_HAS_ATOMIC # erlang needs host-erlang depends on BR2_PACKAGE_HOST_ERLANG_ARCH_SUPPORTS