From patchwork Wed Dec 18 03:20:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anuj Mittal X-Patchwork-Id: 181963 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp88084ile; Tue, 17 Dec 2019 19:22:02 -0800 (PST) X-Google-Smtp-Source: APXvYqwg7sQZDEYqr9Hgy2c1v7stUnJHddVVJXh/rmYVGAGxbJTQxNIhNe0Us6+duE6aDYdlu15n X-Received: by 2002:a17:90a:bd10:: with SMTP id y16mr44468pjr.108.1576639322758; Tue, 17 Dec 2019 19:22:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576639322; cv=none; d=google.com; s=arc-20160816; b=LSyREGx6BoOWwldEG79mszRpB8RFXMVUDi5KMHArTPvv/OHUTW3hv0+Qv56pK7WDRB o18FvVfCywJCB222EM11rLqMtw6cdBTj9rsqWSJd2CLsMDOiAjx4YDVw9UnK7mwZSxzN kDSl1iDjFifV58immI2H3FjVejVQrvGIX+SXtUNnedIy5Q6ATAcePPHyDGAi7RVj8yjg 4nCOfUd0JCL4novsZoUHc59RS+eXqUg98XINJrSNdPAO5TuCgGwrBtCE3rDjX+jKEekm 8sT+EET/B+8GuotQwPgt7hL8V8eFlLF0rb66wjiFnOtPRAGxAk19Al6m6iHNRQFQM5tf w7Dg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:references:in-reply-to:message-id:date:to:from :delivered-to; bh=q6kDwnfSQk+VXYYChEvkrzoCLdsKX/JaDOfJOOfFPyM=; b=uYj9TKhwZTwimAGipCoOkD1VMRtJFg0FqYjoWW4woziiMfbTJaliCfTBuffgUWLJcL /4lbIULzgu+QwFeqWyh6ZpR7+drv2vX0dCPY+wwIUL+2N3i3vqiVPQdEA5ybTEECn/EL xRiupvc6G0hqrpf5RMEMKnfl7y3Z5wouLRwSE801+C5XEnQlUfW8wFkRznPFjMQVSq3v d4xgpQ9G5reAVolpHizbMvmVhFC2CiYhkMjKRynblhrSR1vPDHCS4I3QyOFQyJiLTyg2 BBKygCAE3AjPYMh7UqOe6F4+XGWplexS2NDDbE5tTqpRPGkh5RF9bZDFpovulZwCQ5we 3aPA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id w8si956702plp.24.2019.12.17.19.22.02; Tue, 17 Dec 2019 19:22:02 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 22EE390AC2; Wed, 18 Dec 2019 03:21:34 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mail.openembedded.org (Postfix) with ESMTP id 1C8307FFF2 for ; Wed, 18 Dec 2019 03:21:09 +0000 (UTC) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 Dec 2019 19:21:10 -0800 X-IronPort-AV: E=Sophos;i="5.69,327,1571727600"; d="scan'208";a="205701758" Received: from anmitta2-mobl1.gar.corp.intel.com ([10.221.17.193]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 Dec 2019 19:21:09 -0800 From: Anuj Mittal To: openembedded-core@lists.openembedded.org Date: Wed, 18 Dec 2019 11:20:54 +0800 Message-Id: <71124dd7258e6cc2d95be6781c9476be27c79264.1576638856.git.anuj.mittal@intel.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: References: MIME-Version: 1.0 Subject: [OE-core] [zeus][PATCH 6/9] nss: Backport clang build fix X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org From: Khem Raj (From OE-Core rev: 35bbb1deb4ddab3861dce7ca2ada778094fb353e) Signed-off-by: Khem Raj Signed-off-by: Richard Purdie Signed-off-by: Anuj Mittal --- ...ppc64-inline-assembler-for-clang-r-j.patch | 35 +++++++++++++++++++ meta/recipes-support/nss/nss_3.45.bb | 1 + 2 files changed, 36 insertions(+) create mode 100644 meta/recipes-support/nss/nss/0001-Bug-1493916-Fix-ppc64-inline-assembler-for-clang-r-j.patch -- 2.21.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/recipes-support/nss/nss/0001-Bug-1493916-Fix-ppc64-inline-assembler-for-clang-r-j.patch b/meta/recipes-support/nss/nss/0001-Bug-1493916-Fix-ppc64-inline-assembler-for-clang-r-j.patch new file mode 100644 index 0000000000..59e44e6841 --- /dev/null +++ b/meta/recipes-support/nss/nss/0001-Bug-1493916-Fix-ppc64-inline-assembler-for-clang-r-j.patch @@ -0,0 +1,35 @@ +From 6b351dbb049b3b3ab6c0d51aa3c1c7fb3c9df80c Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Dan=20Hor=C3=A1k?= +Date: Mon, 22 Jul 2019 11:07:41 -0700 +Subject: [PATCH] Bug 1493916 - Fix ppc64 inline assembler for clang r=jcj + Seems clang's inline assembler doesn't want registers to be prefixed with + "r", while gcc accepts both - r0 and 0 for GPR0. + +tested with clang 6.0 and gcc 8.1 + +--HG-- +extra : amend_source : 87e09bb59c78bdb25b9573b9f29511e10b9db6fa +extra : histedit_source : 9b3fad70ac2851bf7de14d42c34db4a5fba41710 + +Upstream-Status: Backport [https://github.com/nss-dev/nss/commit/671d89b6c4a6f41707bb044534751098e2e3f211] +Signed-off-by: Khem Raj +--- + nss/lib/freebl/mpi/mpcpucache.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/nss/lib/freebl/mpi/mpcpucache.c b/nss/lib/freebl/mpi/mpcpucache.c +index 336b4cc..2ad291f 100644 +--- a/nss/lib/freebl/mpi/mpcpucache.c ++++ b/nss/lib/freebl/mpi/mpcpucache.c +@@ -727,7 +727,7 @@ static inline void + dcbzl(char *array) + { + register char *a asm("r2") = array; +- __asm__ __volatile__("dcbzl %0,r0" ++ __asm__ __volatile__("dcbzl %0,0" + : "=r"(a) + : "0"(a)); + } +-- +2.24.0 + diff --git a/meta/recipes-support/nss/nss_3.45.bb b/meta/recipes-support/nss/nss_3.45.bb index e89e7d69d5..c8005a5b3a 100644 --- a/meta/recipes-support/nss/nss_3.45.bb +++ b/meta/recipes-support/nss/nss_3.45.bb @@ -28,6 +28,7 @@ SRC_URI = "http://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/${VERSIO file://nss-fix-nsinstall-build.patch \ file://disable-Wvarargs-with-clang.patch \ file://pqg.c-ULL_addend.patch \ + file://0001-Bug-1493916-Fix-ppc64-inline-assembler-for-clang-r-j.patch \ file://blank-cert9.db \ file://blank-key4.db \ file://system-pkcs11.txt \