From patchwork Fri Dec 27 14:43:22 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Giulio Benetti X-Patchwork-Id: 1215739 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.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=benettiengineering.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=aruba.it header.i=@aruba.it header.b="hl9BYu0k"; 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 47kqMC2f0bz9sPJ for ; Sat, 28 Dec 2019 01:43:35 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id DC220203D9; Fri, 27 Dec 2019 14:43:33 +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 VrfnPclsRDGZ; Fri, 27 Dec 2019 14:43:32 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id CA7DD204E7; Fri, 27 Dec 2019 14:43:32 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 1952A1BF999 for ; Fri, 27 Dec 2019 14:43:30 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 1321C204E7 for ; Fri, 27 Dec 2019 14:43:30 +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 M5iQlAVNgfon for ; Fri, 27 Dec 2019 14:43:28 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from smtpcmd03116.aruba.it (smtpcmd03116.aruba.it [62.149.158.116]) by silver.osuosl.org (Postfix) with ESMTP id 09AAB203D9 for ; Fri, 27 Dec 2019 14:43:27 +0000 (UTC) Received: from ubuntu.localdomain ([146.241.70.59]) by smtpcmd03.ad.aruba.it with bizsmtp id j2jR2100S1GkBR6012jSZL; Fri, 27 Dec 2019 15:43:26 +0100 From: Giulio Benetti To: buildroot@buildroot.org Date: Fri, 27 Dec 2019 15:43:22 +0100 Message-Id: <20191227144324.84759-2-giulio.benetti@benettiengineering.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191227144324.84759-1-giulio.benetti@benettiengineering.com> References: <20191227144324.84759-1-giulio.benetti@benettiengineering.com> MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aruba.it; s=a1; t=1577457806; bh=m1HSohoTFDzKACK7HVsHnH2VySLUSUVxoLHUuwP51TA=; h=From:To:Subject:Date:MIME-Version; b=hl9BYu0kH1BVOn33pgE6QrIFYL88uHaalO+P06gli+rIEWB+KGIOChKYdwH2PiTWD byfSFNGSpINSkgohLvRfi+v7sO/lG+1xd6igVSiLN5Yxm1VnJYuPwskKv1pgW+rkUm yVbqnGehsUwUp2zXva8NKYROdTQ5ubqKM0Bpa7DgTOXZQX5KvxxDfAlWhSvMwkDtOT JzLxFBzuXQ5MiYEcDA5N5e8wDT7XjWukAnLjj85BY+Q5pE49OQOv2/JqGf8qfUjzlj 1zEfQ3OLBRWdbvx3g68bCRMIhb7YuJjJfYhVgNpyKTwhaWThCt6xHOe04l5R4zQ1fx 5uzHpSArFzT+g== Subject: [Buildroot] [PATCH 1/3] package/libnspr: allow building for Arc Architecture 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: Joseph Kogut , Giulio Benetti , Adam Duskett , Marcin Bis Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Arc architecture is now supported by NSPR so let's allow to build for it. Signed-off-by: Giulio Benetti --- package/libnspr/Config.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/libnspr/Config.in b/package/libnspr/Config.in index 1d95155248..57fcbdf6be 100644 --- a/package/libnspr/Config.in +++ b/package/libnspr/Config.in @@ -1,6 +1,6 @@ config BR2_PACKAGE_LIBNSPR_ARCH_SUPPORT def_bool y - depends on !BR2_arc && !BR2_xtensa + depends on !BR2_xtensa if BR2_PACKAGE_LIBNSPR_ARCH_SUPPORT From patchwork Fri Dec 27 14:43:23 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Giulio Benetti X-Patchwork-Id: 1215740 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=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=benettiengineering.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=aruba.it header.i=@aruba.it header.b="Y1SyPLdj"; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47kqMF2f2zz9sPJ for ; Sat, 28 Dec 2019 01:43:36 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id BE54F85700; Fri, 27 Dec 2019 14:43:34 +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 aD4HgnR34EUo; Fri, 27 Dec 2019 14:43:33 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id C6346857D8; Fri, 27 Dec 2019 14:43:33 +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 B9E141BF20F for ; Fri, 27 Dec 2019 14:43:30 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id B72CB857EB for ; Fri, 27 Dec 2019 14:43: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 YAJQK9KxWLFm for ; Fri, 27 Dec 2019 14:43:28 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from smtpcmd03116.aruba.it (smtpcmd03116.aruba.it [62.149.158.116]) by whitealder.osuosl.org (Postfix) with ESMTP id EEEED85700 for ; Fri, 27 Dec 2019 14:43:27 +0000 (UTC) Received: from ubuntu.localdomain ([146.241.70.59]) by smtpcmd03.ad.aruba.it with bizsmtp id j2jR2100S1GkBR6012jSZZ; Fri, 27 Dec 2019 15:43:27 +0100 From: Giulio Benetti To: buildroot@buildroot.org Date: Fri, 27 Dec 2019 15:43:23 +0100 Message-Id: <20191227144324.84759-3-giulio.benetti@benettiengineering.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191227144324.84759-1-giulio.benetti@benettiengineering.com> References: <20191227144324.84759-1-giulio.benetti@benettiengineering.com> MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aruba.it; s=a1; t=1577457807; bh=EqhwggGUFSEDRjyDdUhtzzf17pqtZr9P96KbaEU0BPc=; h=From:To:Subject:Date:MIME-Version; b=Y1SyPLdjH/HtyLMTV0Por3tTQsAa24kcxFJg7r9KZgFuDsrrvILSnbAgMAumcklYW 3bWx1PuDH5rZs0MprSQTu7uPxr4LN6vw8C9VMuuh4ibljBD8o1+iVUZTDjL/E2jenD HVYxe3cdF90BSSXIoCqZrXxyX74PUmdzqI+MeKe70KtkASYPG00kDoKM+tOK+oFsP3 punViYXzs4b9cki9iR+8paViQMKFk9CtOGoSLiDaJCMcUdws71+jgnw3PpMbOWuNSR 19+5xFtC17fEkZU5hVTvl4O1bW0DXjYi/sMQS8bO2KfqgUvBSOvC8I2I1cv3KqE1Ik E7v9cX1RheN7g== Subject: [Buildroot] [PATCH 2/3] package/libnspr: enable building with xtensa 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: Joseph Kogut , Giulio Benetti , Adam Duskett , Marcin Bis Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Add patch to support Xtensa architecture building. Signed-off-by: Giulio Benetti --- Patch pending upstream: https://bugzilla.mozilla.org/show_bug.cgi?id=1606092 --- ...6092_Add_support_for_building_xtensa.patch | 33 +++++++++++++++++++ package/libnspr/Config.in | 1 - 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 package/libnspr/0001-Bug_1606092_Add_support_for_building_xtensa.patch diff --git a/package/libnspr/0001-Bug_1606092_Add_support_for_building_xtensa.patch b/package/libnspr/0001-Bug_1606092_Add_support_for_building_xtensa.patch new file mode 100644 index 0000000000..73a70277b6 --- /dev/null +++ b/package/libnspr/0001-Bug_1606092_Add_support_for_building_xtensa.patch @@ -0,0 +1,33 @@ +# HG changeset patch +# User Giulio Benetti +# Date 1577456724 -3600 +# Fri Dec 27 15:25:24 2019 +0100 +# Node ID 1a3d96917971ea13432116f41ace8a9e19ef7f97 +# Parent b9c2a7602ab0a1c0c890db6cf4c3b1f1e6e243c1 +Bug 1606092 - Add support for building Xtensa + +diff -r b9c2a7602ab0 -r 1a3d96917971 nspr/pr/include/md/_linux.cfg +--- a/nspr/pr/include/md/_linux.cfg Mon Dec 02 19:24:25 2019 +0100 ++++ b/nspr/pr/include/md/_linux.cfg Fri Dec 27 15:25:24 2019 +0100 +@@ -1157,7 +1157,8 @@ + #define PR_BYTES_PER_WORD_LOG2 2 + #define PR_BYTES_PER_DWORD_LOG2 3 + +-#elif defined(__nios2__) || defined(__microblaze__) || defined(__nds32__) ++#elif defined(__nios2__) || defined(__microblaze__) || defined(__nds32__) || \ ++ defined(__xtensa__) + + #if defined(__microblaze__) && defined(__BIG_ENDIAN__) + #define IS_BIG_ENDIAN 1 +diff -r b9c2a7602ab0 -r 1a3d96917971 nspr/pr/include/md/_linux.h +--- a/nspr/pr/include/md/_linux.h Mon Dec 02 19:24:25 2019 +0100 ++++ b/nspr/pr/include/md/_linux.h Fri Dec 27 15:25:24 2019 +0100 +@@ -69,6 +69,8 @@ + #define _PR_SI_ARCHITECTURE "microblaze" + #elif defined(__nds32__) + #define _PR_SI_ARCHITECTURE "nds32" ++#elif defined(__xtensa__) ++#define _PR_SI_ARCHITECTURE "xtensa" + #else + #error "Unknown CPU architecture" + #endif diff --git a/package/libnspr/Config.in b/package/libnspr/Config.in index 57fcbdf6be..c1be7151e0 100644 --- a/package/libnspr/Config.in +++ b/package/libnspr/Config.in @@ -1,6 +1,5 @@ config BR2_PACKAGE_LIBNSPR_ARCH_SUPPORT def_bool y - depends on !BR2_xtensa if BR2_PACKAGE_LIBNSPR_ARCH_SUPPORT From patchwork Fri Dec 27 14:43:24 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Giulio Benetti X-Patchwork-Id: 1215742 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.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=benettiengineering.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=aruba.it header.i=@aruba.it header.b="Qv2wCIc1"; 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 47kqMH5G5Sz9sPJ for ; Sat, 28 Dec 2019 01:43:39 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 27D67204EA; Fri, 27 Dec 2019 14:43:37 +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 FPkmLWG8pT78; Fri, 27 Dec 2019 14:43:34 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 8B32F21515; Fri, 27 Dec 2019 14:43:34 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id D8F301BF999 for ; Fri, 27 Dec 2019 14:43:30 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id D64A085143 for ; Fri, 27 Dec 2019 14:43:30 +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 wmfmNNRne3tD for ; Fri, 27 Dec 2019 14:43:29 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from smtpcmd03116.aruba.it (smtpcmd03116.aruba.it [62.149.158.116]) by fraxinus.osuosl.org (Postfix) with ESMTP id B514085142 for ; Fri, 27 Dec 2019 14:43:28 +0000 (UTC) Received: from ubuntu.localdomain ([146.241.70.59]) by smtpcmd03.ad.aruba.it with bizsmtp id j2jR2100S1GkBR6012jTZl; Fri, 27 Dec 2019 15:43:27 +0100 From: Giulio Benetti To: buildroot@buildroot.org Date: Fri, 27 Dec 2019 15:43:24 +0100 Message-Id: <20191227144324.84759-4-giulio.benetti@benettiengineering.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191227144324.84759-1-giulio.benetti@benettiengineering.com> References: <20191227144324.84759-1-giulio.benetti@benettiengineering.com> MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aruba.it; s=a1; t=1577457807; bh=aHOckeF4pLS2tPqwWZSBVlb0jccUAjfYvbET2fifFNg=; h=From:To:Subject:Date:MIME-Version; b=Qv2wCIc1Hfmrsv1zqmIWK1IOZXLGX2vPvHlZA5nzJlDnKjULMdxLayRFSDFOi4jMz HjWmVhTaF3w4wqXZR+FEVEV6zjibaE4D74hkxH3yfqOqZIn6mR0ifMu/Y/XfLSJqOQ r8R7JuAmc3yWo5Jg/dqUl4+iUD4YIeBDSkO42OGk49kMHl+zh2UhxE1Wj1eiXJAzuR M93/F8iq2kX4Ac8JQ/BOM1ZrhE1R9JxAcDWhQWeHHsV+KfQexR6hlWtNdxqOYK+cLK fJgGZeFHtkSGWSFuYRl04iCMGrFmF1w5G5u2MAC7DjT74hwrB2vYlvQRgNd2xvrpUG 7IryyTF1wZzWw== Subject: [Buildroot] [PATCH 3/3] package/libnspr: remove BR2_PACKAGE_LIBNSPR_ARCH_SUPPORT 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: Joseph Kogut , Giulio Benetti , Adam Duskett , Marcin Bis Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Since all architectures supported by Buildroot are supported by libnspr BR2_PACKAGE_LIBNSPR_ARCH_SUPPORT makes no sense anymore, so let's remove it all around. Signed-off-by: Giulio Benetti --- package/ecryptfs-utils/Config.in | 2 -- package/libnspr/Config.in | 7 ------- package/libnss/Config.in | 2 -- package/spidermonkey/Config.in | 1 - 4 files changed, 12 deletions(-) diff --git a/package/ecryptfs-utils/Config.in b/package/ecryptfs-utils/Config.in index 0c39f48d08..08210f05eb 100644 --- a/package/ecryptfs-utils/Config.in +++ b/package/ecryptfs-utils/Config.in @@ -3,7 +3,6 @@ config BR2_PACKAGE_ECRYPTFS_UTILS depends on BR2_USE_WCHAR # gettext depends on BR2_USE_MMU # keyutils depends on BR2_TOOLCHAIN_HAS_THREADS # libnss -> libnspr - depends on BR2_PACKAGE_LIBNSPR_ARCH_SUPPORT # libnss -> libnspr depends on !BR2_MIPS_NABI32 # libnss depends on !BR2_STATIC_LIBS # libnss, keyutils select BR2_PACKAGE_KEYUTILS @@ -29,7 +28,6 @@ config BR2_PACKAGE_ECRYPTFS_UTILS http://ecryptfs.org comment "ecryptfs-utils needs a toolchain w/ threads, wchar, dynamic library" - depends on BR2_PACKAGE_LIBNSPR_ARCH_SUPPORT depends on BR2_USE_MMU depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_USE_WCHAR || \ BR2_STATIC_LIBS diff --git a/package/libnspr/Config.in b/package/libnspr/Config.in index c1be7151e0..de8dd0a06b 100644 --- a/package/libnspr/Config.in +++ b/package/libnspr/Config.in @@ -1,8 +1,3 @@ -config BR2_PACKAGE_LIBNSPR_ARCH_SUPPORT - def_bool y - -if BR2_PACKAGE_LIBNSPR_ARCH_SUPPORT - config BR2_PACKAGE_LIBNSPR bool "libnspr" depends on BR2_TOOLCHAIN_HAS_THREADS @@ -17,5 +12,3 @@ config BR2_PACKAGE_LIBNSPR comment "libnspr needs a toolchain w/ threads, dynamic library" depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS - -endif diff --git a/package/libnss/Config.in b/package/libnss/Config.in index 599c9a6536..90bf75f476 100644 --- a/package/libnss/Config.in +++ b/package/libnss/Config.in @@ -1,7 +1,6 @@ config BR2_PACKAGE_LIBNSS bool "libnss" depends on BR2_TOOLCHAIN_HAS_THREADS # libnspr - depends on BR2_PACKAGE_LIBNSPR_ARCH_SUPPORT # libnspr depends on !BR2_STATIC_LIBS select BR2_PACKAGE_LIBNSPR select BR2_PACKAGE_SQLITE @@ -16,5 +15,4 @@ config BR2_PACKAGE_LIBNSS http://www.mozilla.org/projects/security/pki/nss/ comment "libnss needs a toolchain w/ threads, dynamic library" - depends on BR2_PACKAGE_LIBNSPR_ARCH_SUPPORT depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS diff --git a/package/spidermonkey/Config.in b/package/spidermonkey/Config.in index 5f12110626..150b941c94 100644 --- a/package/spidermonkey/Config.in +++ b/package/spidermonkey/Config.in @@ -8,7 +8,6 @@ config BR2_PACKAGE_SPIDERMONKEY_ARCH_SUPPORTS default y if BR2_riscv default y if BR2_sh4 || BR2_sh4a default y if BR2_sparc || BR2_sparc64 - depends on BR2_PACKAGE_LIBNSPR_ARCH_SUPPORT # libnspr config BR2_PACKAGE_SPIDERMONKEY_JIT_ARCH_SUPPORTS bool