From patchwork Mon Nov 18 05:03:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 179577 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp2400699ilf; Sun, 17 Nov 2019 21:04:16 -0800 (PST) X-Google-Smtp-Source: APXvYqyMQjh/0PIQAGER5W98JFl3oWyXGnbgjiCwJVe6cz+OCjmEsJA2peReEmuF1UmYfN6SLvZA X-Received: by 2002:a63:4721:: with SMTP id u33mr16897007pga.159.1574053456373; Sun, 17 Nov 2019 21:04:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574053456; cv=none; d=google.com; s=arc-20160816; b=zZuWkHL2aDl8X3o8Q/GJWTLc0dU/NpRRLCNsm4lTJI/+LMvdYxhOJKUiw7+PZlIBlv /8/35KBDVccEmLGBuL+eg05VDVh9unuU71nUEyH082gEOuIqf+fNJU9vpWQUU0NV2R4z ummiPwQkq6Zk/Dp80rVxB0c154ESBV07skbxF+Gv0UZsatxVMUQeSbZuZ8VKur2oa1/q TgL7wfxZEnwQMXyw3zllXI37VGaOaJU4AGfLgD2NtK/CKueBaI1d+JS38rU51TcUtdI9 +PMKOFk350e5R/p8s0DPtaPEIfxRLczre4Bz/WpzzQq2qf9j1MPSrwWQpnlYUS11i8VW 2OWA== 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:message-id:date:to:from:dkim-signature:delivered-to; bh=/2kNDcWrRQro1oxXhgnA3UdTMtoTw3lLl1juPNxPP6o=; b=ys1GikTqqkhwbNtRwcnN15bdu9kMH8cjSxCjWVXFw2Q57cFxKRaKQEd4K5YYvu3hxE SgKx5a1eGmgFZRbjvmz7QubY+pfMYk7HRzYhzokUbJ3VkbucVF9RwjSrael85lYJR1VJ dYCWIGrZCQTxDRypKEhtlzrIuR9tIlAOvUEzkHC3qUvIyo/G8tbZ5a6lf/OWInyrnHb5 NWbk6i/Pk4qi80n8GacsvMXy3pl2wP7uizs//zVWqodjUj3lEtdKOPQIUD9Idn3zrIBm /W8NJDlDkft1L04MKmKFYiMCBZDSt18ZmHTyTwpEIxsHmYw+0MzUXnuSSPnXetXxWMes LXSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=Mozy1Jvy; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id u9si18806923pgi.516.2019.11.17.21.04.15; Sun, 17 Nov 2019 21:04:16 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=Mozy1Jvy; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 CFC1D7F8BC; Mon, 18 Nov 2019 05:04:08 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pl1-f196.google.com (mail-pl1-f196.google.com [209.85.214.196]) by mail.openembedded.org (Postfix) with ESMTP id 37C627F699 for ; Mon, 18 Nov 2019 05:04:06 +0000 (UTC) Received: by mail-pl1-f196.google.com with SMTP id o9so9046787plk.6 for ; Sun, 17 Nov 2019 21:04:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ltBcumpUpeYJ1Q/XNbw9nG4/NXHrlEDVuqN5OrH0z58=; b=Mozy1JvyolXRp1xL9jG9kbyS2uSbAbjSvrHbbxj0otQ4EOW7tDRqZmZx1RZMTNrWH0 k3+kiHfUQQKP/4Whc4KO7O8bCMfq4sPk3yARG9+QMmPWtzknoZ4pxhdHTkQxWitHLG8N vaa7ZBr/YpliO+g+T6mnzGa+gBuL7RXvYwYC9Qfg4z3TBuA8LD1G6TI8oU7+YZszxxUn c4olSR2Pb16pnfFqL0Ng2u1HUQQ741TdQkFIv5aXdqdD0Y6HGKkmIiAWjkwAsQOc/0wF pe++wZ2wJHxXzacN6u83BW7rzMbz1GlHCyKcmhN/ZOtu6zWpC/K6KSSiDZIhPIYV3lw9 6aFg== 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=ltBcumpUpeYJ1Q/XNbw9nG4/NXHrlEDVuqN5OrH0z58=; b=NVOqUyzQDWGSonpeEd5pV1ryl4vuir7PsCPRSmPODQz1e+nBqiHq0tDaeeonuGmFnc lb4yGgWjiGT7kkQpuj52KazeB+Ztxuhb4+WFO7hhH2651+iD7zO2q1FKzIQu5AVaUJ/l XAPXeCNc/QGKi6lu9AZ62aVir2SL8Gzh09PwmgxFI1IZvflU+d/acNHa6FXNM9664rv6 ajb+t4Mzptt7ZFE4SLM2Y/GcJBmGIzoWXTLzMrTUQl1euXBTQF/BTC4pPkmgN+sq38lg B2n0EbXuKZKLVtOv5bO0xc3971qs7Lp9cNfAMGdzRPQXJ5splpoZI2bMu9nSRF+wMcPN jx5Q== X-Gm-Message-State: APjAAAVeRhOxBpxDSY6gpQx7JvNRU5fGbA+eNrk+P+i6tencyOeZDj77 CtBBIwYpcHOdsfaV4uoIuGSUfUMkS7g= X-Received: by 2002:a17:90a:3264:: with SMTP id k91mr36435909pjb.23.1574053446425; Sun, 17 Nov 2019 21:04:06 -0800 (PST) Received: from apollo.hsd1.ca.comcast.net ([2601:646:8500:1c20::30e8]) by smtp.gmail.com with ESMTPSA id y6sm16881131pfm.12.2019.11.17.21.04.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Nov 2019 21:04:05 -0800 (PST) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Sun, 17 Nov 2019 21:03:48 -0800 Message-Id: <20191118050352.1379153-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.24.0 MIME-Version: 1.0 Subject: [oe] [meta-oe][PATCH 1/5] libmad: Define O2 for all arches as default optimization X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org Extend mips inline asm fix to build on clang ../libmad-0.15.1b/layer12.c:94:10: error: invalid output constraint '=h' in asm return mad_f_mul(sample, linear_table[nb - 2]); ^ Signed-off-by: Khem Raj --- ...ove-clang-unsupported-compiler-flags.patch | 92 +++++++++++++------ .../libmad/fix_for_mips_with_gcc-4.5.0.patch | 8 +- 2 files changed, 69 insertions(+), 31 deletions(-) -- 2.24.0 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-oe/recipes-multimedia/libmad/libmad/0004-Remove-clang-unsupported-compiler-flags.patch b/meta-oe/recipes-multimedia/libmad/libmad/0004-Remove-clang-unsupported-compiler-flags.patch index 5bfce4d908..70723f2d08 100644 --- a/meta-oe/recipes-multimedia/libmad/libmad/0004-Remove-clang-unsupported-compiler-flags.patch +++ b/meta-oe/recipes-multimedia/libmad/libmad/0004-Remove-clang-unsupported-compiler-flags.patch @@ -7,37 +7,77 @@ Subject: [PATCH 4/4] Remove clang unsupported compiler flags configure.ac | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) -diff --git a/configure.ac b/configure.ac -index 4fcd48b..40302db 100644 --- a/configure.ac +++ b/configure.ac -@@ -140,20 +140,20 @@ then - case "$optimize" in - -O|"-O "*) - optimize="-O" +@@ -124,70 +124,7 @@ done + + if test "$GCC" = yes + then +- if test -z "$arch" +- then +- case "$host" in +- i386-*) ;; +- i?86-*) arch="-march=i486" ;; +- arm*-empeg-*) arch="-march=armv4 -mtune=strongarm1100" ;; +- armv4*-*) arch="-march=armv4 -mtune=strongarm" ;; +- powerpc-*) ;; +- mips*-agenda-*) arch="-mcpu=vr4100" ;; +- mips*-luxsonor-*) arch="-mips1 -mcpu=r3000 -Wa,-m4010" ;; +- esac +- fi +- +- case "$optimize" in +- -O|"-O "*) +- optimize="-O" - optimize="$optimize -fforce-addr" -+ : #optimize="$optimize -fforce-addr" - : #x optimize="$optimize -finline-functions" - : #- optimize="$optimize -fstrength-reduce" +- : #x optimize="$optimize -finline-functions" +- : #- optimize="$optimize -fstrength-reduce" - optimize="$optimize -fthread-jumps" - optimize="$optimize -fcse-follow-jumps" - optimize="$optimize -fcse-skip-blocks" -+ : #optimize="$optimize -fthread-jumps" -+ : #optimize="$optimize -fcse-follow-jumps" -+ : #optimize="$optimize -fcse-skip-blocks" - : #x optimize="$optimize -frerun-cse-after-loop" - : #x optimize="$optimize -frerun-loop-opt" - : #x optimize="$optimize -fgcse" - optimize="$optimize -fexpensive-optimizations" +- : #x optimize="$optimize -frerun-cse-after-loop" +- : #x optimize="$optimize -frerun-loop-opt" +- : #x optimize="$optimize -fgcse" +- optimize="$optimize -fexpensive-optimizations" - optimize="$optimize -fregmove" -+ : #optimize="$optimize -fregmove" - : #* optimize="$optimize -fdelayed-branch" - : #x optimize="$optimize -fschedule-insns" +- : #* optimize="$optimize -fdelayed-branch" +- : #x optimize="$optimize -fschedule-insns" - optimize="$optimize -fschedule-insns2" -+ : #optimize="$optimize -fschedule-insns2" - : #? optimize="$optimize -ffunction-sections" - : #? optimize="$optimize -fcaller-saves" - : #> optimize="$optimize -funroll-loops" --- -2.1.0 - +- : #? optimize="$optimize -ffunction-sections" +- : #? optimize="$optimize -fcaller-saves" +- : #> optimize="$optimize -funroll-loops" +- : #> optimize="$optimize -funroll-all-loops" +- : #x optimize="$optimize -fmove-all-movables" +- : #x optimize="$optimize -freduce-all-givs" +- : #? optimize="$optimize -fstrict-aliasing" +- : #* optimize="$optimize -fstructure-noalias" +- +- case "$host" in +- arm*-*) +- optimize="$optimize -fstrength-reduce" +- ;; +- mips*-*) +- optimize="$optimize -fstrength-reduce" +- optimize="$optimize -finline-functions" +- ;; +- i?86-*) +- optimize="$optimize -fstrength-reduce" +- ;; +- powerpc-apple-*) +- # this triggers an internal compiler error with gcc2 +- : #optimize="$optimize -fstrength-reduce" +- +- # this is really only beneficial with gcc3 +- : #optimize="$optimize -finline-functions" +- ;; +- *) +- # this sometimes provokes bugs in gcc 2.95.2 +- : #optimize="$optimize -fstrength-reduce" +- ;; +- esac +- ;; +- esac ++ optimize="-O2" + fi + + case "$host" in diff --git a/meta-oe/recipes-multimedia/libmad/libmad/fix_for_mips_with_gcc-4.5.0.patch b/meta-oe/recipes-multimedia/libmad/libmad/fix_for_mips_with_gcc-4.5.0.patch index 01c7aa3c8c..5bc91f355d 100644 --- a/meta-oe/recipes-multimedia/libmad/libmad/fix_for_mips_with_gcc-4.5.0.patch +++ b/meta-oe/recipes-multimedia/libmad/libmad/fix_for_mips_with_gcc-4.5.0.patch @@ -11,15 +11,13 @@ Upstream-Status: Pending 2010/07/29 Nitin A Kamble -Index: libmad-0.15.1b/fixed.h -=================================================================== ---- libmad-0.15.1b.orig/fixed.h -+++ libmad-0.15.1b/fixed.h +--- a/fixed.h ++++ b/fixed.h @@ -297,6 +297,15 @@ mad_fixed_t mad_f_mul_inline(mad_fixed_t /* --- MIPS ---------------------------------------------------------------- */ -+# elif defined(FPM_MIPS) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4)) ++# elif defined(FPM_MIPS) && (defined(__clang__) || __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4)) + typedef unsigned int u64_di_t __attribute__ ((mode (DI))); +# define MAD_F_MLX(hi, lo, x, y) \ + do { \ From patchwork Mon Nov 18 05:03:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 179578 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp2401324ilf; Sun, 17 Nov 2019 21:04:56 -0800 (PST) X-Google-Smtp-Source: APXvYqxrP0Ee6/NV9iNaK4naN9hzfwq4qtFWXlCkobq8dH4KcSJ7MZn8YZA/70yuWTSE4oJ1VU4K X-Received: by 2002:a62:2cd7:: with SMTP id s206mr31613498pfs.106.1574053495913; Sun, 17 Nov 2019 21:04:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574053495; cv=none; d=google.com; s=arc-20160816; b=iAra30waFOfxSs4TnyxA++mwvBLjLE/KzjXjrGi5bWjwtHyTwoG0iV6VgT07/4Migo OlW4f9lA9n1l/UpAEzAtp/ZfWOpFiqwyTIlvejyq4mowULXRQNZSuvRDpbvMo4Co2WUF W76FfOB5V/glmdj74TqVnXrWP5SkDMrw/GskyBCpQNue+qhmzN6KPEnuueCt1hKq0sfL Ex9RLyaji1dicT1wojSyLE99sxY0wpIILmyL0AhMjgsf/Kr6+z8bAUQf/Ek8I58zWOSQ TX5HX+f2M3yeqd6JuKefZvGujnuK3lE0Xs3uJ65SoSw9dpaxyZsdT+AKXRbNLN49OkKI 7Kkg== 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 :dkim-signature:delivered-to; bh=m6DeXjgH61jEyKcg0Y1qT9s2jkpjy/kDIM1WEqjP2bo=; b=VrVMmxZDLKAKQXvnwgdGDjmMjiGmh/nC+2GIt1TQC/8z2hEQrWuTCUgm7p6XrxbAXP SLTGMn6sza8DwaCcD1a7E6IMGGfAlJgZ/XtSVFgV3JWsxbHXyA/QOykO4udmeUhTDqpm 0tCNt81IkaZMmBSfYSiFJGL6aUKnnnjR24YB042eUCCi+21KFIaF820Mi/8WtmAg0i9O cuTK879vTKQ4hPN9FKyyp8Ud4PjPmbNO75+h3oUKk8jPPp1NofWLaEqxH0Qnr9qIrr+B wWfjs+fnOkvtmvTZMmuMvC8mjPmtCOXJMbZE+0wryKQemfiyQNCG1z9Yh1J+gHHrZnts rmBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=j52i5Q8S; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id 136si6356741pgg.91.2019.11.17.21.04.55; Sun, 17 Nov 2019 21:04:55 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=j52i5Q8S; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 8DC6C7F8C2; Mon, 18 Nov 2019 05:04:52 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pj1-f50.google.com (mail-pj1-f50.google.com [209.85.216.50]) by mail.openembedded.org (Postfix) with ESMTP id 9E7447F699 for ; Mon, 18 Nov 2019 05:04:06 +0000 (UTC) Received: by mail-pj1-f50.google.com with SMTP id f7so1117495pjw.5 for ; Sun, 17 Nov 2019 21:04:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=jS7eOaMY19S2i32JPKviCii1qq3euas8FzD2sxosSFM=; b=j52i5Q8Sfq4pcv6YE7N35vGist/D/S0ZHJ52MB5Myce0IdfO4UgJjHevF0i2NhoJxP 4vbSg3f98+EzyClCBd4y2txso5sihiJOJiAh/p8CELvASq9Hfu6SBTSoWUxRsNi0hp6w bSlorqTIXb6Y/Kn40XCFXcOqUicUwwtrIIT+wzFg+XPwhK2bx+es2sZnCoddhR5Wx2k2 CHVdPW1uyNXDmzOH9AeJbehsH4aXEf6I/jZMOPHxJUuUDvMzKJmIQx+vIVKJ+z7GI0M4 HFoBv81Dna+G9C+GCaRPDe0AzgZj5EjfMe91jsuEU70wcbYhS9585iFQf/0lsqC5G6P7 KuKw== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=jS7eOaMY19S2i32JPKviCii1qq3euas8FzD2sxosSFM=; b=WVJ/oYdySA6k9X5iJUumDYrZYWIK0GwEMF5dCceMWlNAHVSSNCHx8WixHyYEInKPNR 8GFZ1dXHDzqmOkwQGY1nLYmplOswVJ2UaDIS2nDbU6q31/MdauXxgctraiv/SJESmxIb nFfJlAFedjIGfbnGuvSKxALa4nPzXCpeS+rHDDyGZOGO3/1pv5OwiDK6aqaYB+ZUtdtM vrgp2R64RQtUIxb12mE5xnLATvZEXE2fQqjH+tuXmhR+TRLozqN1nUIiA1ktR2Z1e2W5 I7DOfmpD/a7uVw3kX7MOvDVI2wuJa4GtvqTyT3yQtW9RBQddIwqElfPs2OdMhsgLc2bV Nj8Q== X-Gm-Message-State: APjAAAWXMlmTC3wvGLgVduhw/Tch7FwcbqIpcCuyOjLDIo32Zd8owAuF rvfSjKje3jLNcy2z5jwBqktZ2Jnywkc= X-Received: by 2002:a17:90a:ae01:: with SMTP id t1mr37438041pjq.32.1574053447061; Sun, 17 Nov 2019 21:04:07 -0800 (PST) Received: from apollo.hsd1.ca.comcast.net ([2601:646:8500:1c20::30e8]) by smtp.gmail.com with ESMTPSA id y6sm16881131pfm.12.2019.11.17.21.04.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Nov 2019 21:04:06 -0800 (PST) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Sun, 17 Nov 2019 21:03:49 -0800 Message-Id: <20191118050352.1379153-2-raj.khem@gmail.com> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191118050352.1379153-1-raj.khem@gmail.com> References: <20191118050352.1379153-1-raj.khem@gmail.com> MIME-Version: 1.0 Subject: [oe] [meta-oe][PATCH 2/5] libkcapi: Move static inline functions where used X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org Clang warns about unused functions on some arches e.g. mips unused function '_bswap32' [-Werror,-Wunused-function] Signed-off-by: Khem Raj --- .../0001-kcapi-kdf-Move-code-to-fix.patch | 67 +++++++++++++++++++ .../recipes-crypto/libkcapi/libkcapi_git.bb | 1 + 2 files changed, 68 insertions(+) create mode 100644 meta-oe/recipes-crypto/libkcapi/libkcapi/0001-kcapi-kdf-Move-code-to-fix.patch -- 2.24.0 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-oe/recipes-crypto/libkcapi/libkcapi/0001-kcapi-kdf-Move-code-to-fix.patch b/meta-oe/recipes-crypto/libkcapi/libkcapi/0001-kcapi-kdf-Move-code-to-fix.patch new file mode 100644 index 0000000000..3801207ed9 --- /dev/null +++ b/meta-oe/recipes-crypto/libkcapi/libkcapi/0001-kcapi-kdf-Move-code-to-fix.patch @@ -0,0 +1,67 @@ +From bf6c816ef61240a1dbbbf6f2a7b2a5ad5f846461 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Sat, 16 Nov 2019 23:03:51 -0800 +Subject: [PATCH] kcapi-kdf: Move code to fix + +Fixes clang build +unused function '_bswap32' [-Werror,-Wunused-function] + +Upstream-Status: Submitted [https://github.com/smuellerDD/libkcapi/pull/83] +Signed-off-by: Khem Raj +--- + lib/kcapi-kdf.c | 32 +++++++++++++++++--------------- + 1 file changed, 17 insertions(+), 15 deletions(-) + +diff --git a/lib/kcapi-kdf.c b/lib/kcapi-kdf.c +index ea39846..49c2d88 100644 +--- a/lib/kcapi-kdf.c ++++ b/lib/kcapi-kdf.c +@@ -54,21 +54,6 @@ + #include "kcapi.h" + #include "internal.h" + +-static inline uint32_t rol32(uint32_t x, int n) +-{ +- return ( (x << (n&(32-1))) | (x >> ((32-n)&(32-1))) ); +-} +- +-static inline uint32_t ror32(uint32_t x, int n) +-{ +- return ( (x >> (n&(32-1))) | (x << ((32-n)&(32-1))) ); +-} +- +-static inline uint32_t _bswap32(uint32_t x) +-{ +- return ((rol32(x, 8) & 0x00ff00ffL) | (ror32(x, 8) & 0xff00ff00L)); +-} +- + #define GCC_VERSION (__GNUC__ * 10000 \ + + __GNUC_MINOR__ * 100 \ + + __GNUC_PATCHLEVEL__) +@@ -86,6 +71,23 @@ static inline uint32_t _bswap32(uint32_t x) + #if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ + # define be_bswap32(x) ((uint32_t)(x)) + #elif __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ ++ ++static inline uint32_t rol32(uint32_t x, int n) ++{ ++ return ( (x << (n&(32-1))) | (x >> ((32-n)&(32-1))) ); ++} ++ ++static inline uint32_t ror32(uint32_t x, int n) ++{ ++ return ( (x >> (n&(32-1))) | (x << ((32-n)&(32-1))) ); ++} ++ ++ ++static inline uint32_t _bswap32(uint32_t x) ++{ ++ return ((rol32(x, 8) & 0x00ff00ffL) | (ror32(x, 8) & 0xff00ff00L)); ++} ++ + # define be_bswap32(x) _swap32(x) + #else + #error "Endianess not defined" +-- +2.24.0 + diff --git a/meta-oe/recipes-crypto/libkcapi/libkcapi_git.bb b/meta-oe/recipes-crypto/libkcapi/libkcapi_git.bb index 799070972a..aa438e5859 100644 --- a/meta-oe/recipes-crypto/libkcapi/libkcapi_git.bb +++ b/meta-oe/recipes-crypto/libkcapi/libkcapi_git.bb @@ -10,6 +10,7 @@ SRCREV = "5649050d201856bf06c8738b5d2aa1710c86ac2f" PV = "1.1.5" SRC_URI = " \ git://github.com/smuellerDD/libkcapi.git \ + file://0001-kcapi-kdf-Move-code-to-fix.patch \ " inherit autotools From patchwork Mon Nov 18 05:03:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 179579 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp2401420ilf; Sun, 17 Nov 2019 21:05:02 -0800 (PST) X-Google-Smtp-Source: APXvYqyINyzaV0RppufCXoKWlglwYODXGH+FAtqE1JgiXJuVjnwY/AFn4qE+Oj8Mz/NOJvDxeuC9 X-Received: by 2002:a65:424a:: with SMTP id d10mr20756419pgq.122.1574053502190; Sun, 17 Nov 2019 21:05:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574053502; cv=none; d=google.com; s=arc-20160816; b=OGbPNV1g+qfF1eK4ZoWbQi/VoU4OHNjpAQA8VTSuaOYeFHT8e1Kyg7WJqiQ1qnOu7H XMvLt91cBT/Mx4aaJCq2qrv5q7QIVpvmBIoXTaBaoBmVYedFmQjoksS114CgfBdMWGmf iqTp3VL3hzlX0hpM2MH0yLnXGlBMR3EFpiBoXmYn5B59qiMyA5G/j6iPbnuo1Gp/PQ/X q4foUFdjtU3JgNxvWJmWZXrvk32c0CCyQbqYKT4G4zSgw4dreQZbjr98hRXZdIETWGxH aTnCVgsbUCx7wM/nTJfPBsSLRzvUIhnopLDGBOkcJAoQgpTj3nrAMKSzt2UdleDTPxP+ MCXg== 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 :dkim-signature:delivered-to; bh=NRzD5FRTCEL96DbBZ05ekw8IPlTIamO25j/+eWGgPFE=; b=iszzpVZIBQ03/t3YmuuP9cpcqBM8tPECpyz4WgGIoiYlMzYjitqz+wTlEqE4ZE1+oM DpaQrdpWz0zQnRCDVvtPARznA2YN7OnWInCcJE5A2PbvnwsHgkeQT7m8ZSV8WXhEoSaJ 5KofJruVJY06aEHkC0a7byJ04xeIwq+Qa91sVqIbrTJ39YhCcrk10HMXxhuDyllMp9tE pA0sqjOai6op1EO/+y9MCql0HNBIoCgJg886R9wh75tXVS9twBKeIrXsQMK1TZADlfrd qCXTgVRiq6GNnt+PWMcblO6FfPfHRREcV72lkWD5MWY5flo0M1J20vMHS9kektFQTg8e nmAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=iGP5IUjj; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id 72si5962900pla.213.2019.11.17.21.05.01; Sun, 17 Nov 2019 21:05:02 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=iGP5IUjj; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 1DAB17F994; Mon, 18 Nov 2019 05:04:54 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pl1-f177.google.com (mail-pl1-f177.google.com [209.85.214.177]) by mail.openembedded.org (Postfix) with ESMTP id 431CE7F699 for ; Mon, 18 Nov 2019 05:04:07 +0000 (UTC) Received: by mail-pl1-f177.google.com with SMTP id d7so9053543pls.3 for ; Sun, 17 Nov 2019 21:04:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=asYOh2fvQ7fTBPKuXtadHlqcW3oee9k+4v9UxQ7C7A8=; b=iGP5IUjj1fEodkhui5GY7zrB6jnW7hzPA179j7+RJpmBKfqceOEWv3LoAC3C9tOFwM Z+AnMcXUUd4yIWi/MDWO/joQ/ke7l0ju/cIhEi1EnVL9NOw5nesySfGhL/s53bUr6b9n Nztpa4W77VzlaPp78+eCXMLL8mmTGsN2W/fGY2fY7KQhv+eXUClIVOsBIlyMGPhqnFbw qtEZJTa4EvxieYJS2KCRdDxB+8QymckFdQrX7kM2/0FHofDnOZc0mfS51SgzZtJQ+mkF 63lMzJEV9zgiGIlDr0J4JAIvwsJ++V0o91Fl1YWHfD4PIINR3WRq52kFXtgo4M9mwEdn Xk0g== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=asYOh2fvQ7fTBPKuXtadHlqcW3oee9k+4v9UxQ7C7A8=; b=lzr3LorHMMubiAAON5zMjxVwa+wXPraSVtcxkkl6pUk+EzUAAr5O8J4Okayx8ZzlRe 1Z8rEEVa3anj50eHiF0zBJYFbKnNj4/40zpw6UhHDNURzVKCDgNHPncRjTWES6eweldU PllaMzt/+5QORZqCLs4nQHz4ZsU0nuUKRNW6RpByR8bM/a0WJwBpakGpVvVb9sbZTNvE aTlDikFpamod2WMPlPoCibZCBcxZW7YGA4udhrEhrjz9ck6PUM5HjUD1zdLCWuufvspY +SUsWMb3cLiPRObvZUudjWeeucWzsJR2lmUKIzpbOi3TvSWvIMk3kmXaub7FYLUdSu0E gOJA== X-Gm-Message-State: APjAAAXf3WGcUI5aepJasY4uFNbAC/ZU7I8CGzjsEyq/nzGh7K3vQWY0 Ed3PxFH2ME9ftoLRdJ4H38VejfkcVSs= X-Received: by 2002:a17:90a:ff02:: with SMTP id ce2mr37319145pjb.117.1574053447891; Sun, 17 Nov 2019 21:04:07 -0800 (PST) Received: from apollo.hsd1.ca.comcast.net ([2601:646:8500:1c20::30e8]) by smtp.gmail.com with ESMTPSA id y6sm16881131pfm.12.2019.11.17.21.04.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Nov 2019 21:04:07 -0800 (PST) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Sun, 17 Nov 2019 21:03:50 -0800 Message-Id: <20191118050352.1379153-3-raj.khem@gmail.com> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191118050352.1379153-1-raj.khem@gmail.com> References: <20191118050352.1379153-1-raj.khem@gmail.com> MIME-Version: 1.0 Subject: [oe] [meta-oe][PATCH 3/5] rsyslog: Dont force enable atomic builtins on mips X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org This would ensure that checks are performed properly before using them Signed-off-by: Khem Raj --- meta-oe/recipes-extended/rsyslog/rsyslog_8.1910.0.bb | 1 + 1 file changed, 1 insertion(+) -- 2.24.0 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-oe/recipes-extended/rsyslog/rsyslog_8.1910.0.bb b/meta-oe/recipes-extended/rsyslog/rsyslog_8.1910.0.bb index f50f9a34bb..951bf4d5c1 100644 --- a/meta-oe/recipes-extended/rsyslog/rsyslog_8.1910.0.bb +++ b/meta-oe/recipes-extended/rsyslog/rsyslog_8.1910.0.bb @@ -39,6 +39,7 @@ inherit autotools pkgconfig systemd update-rc.d ptest EXTRA_OECONF += "--disable-generate-man-pages ap_cv_atomic_builtins=yes" EXTRA_OECONF += "--enable-imfile-tests" +EXTRA_OECONF_remove_mipsarch_toolchain-clang = "ap_cv_atomic_builtins=yes" # first line is default yes in configure PACKAGECONFIG ??= " \ From patchwork Mon Nov 18 05:03:51 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 179580 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp2401547ilf; Sun, 17 Nov 2019 21:05:10 -0800 (PST) X-Google-Smtp-Source: APXvYqzsxtXx3ySfqQ1M6R3QrgJlGj8DinoTO6LqMmo7z2idmOIeSypuqnZkVHK79ldZK0P5D/Wi X-Received: by 2002:a63:f852:: with SMTP id v18mr29993250pgj.71.1574053510508; Sun, 17 Nov 2019 21:05:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574053510; cv=none; d=google.com; s=arc-20160816; b=fARNCWOqYM7G54owp6DAahOyRdv+8Dgz4uqK258eI6SbVM3hJ1VgcdfcJWy9W4Nbdz IeFi+DNpSOY4hp5K5g8WkPUP50vly3Z9NjoORgPcExnCwRZ5m8Usb9fzSd8cw71XQGv5 qFwqSYcEUvlAFIF7LOukkv9wDNAzpJvAyuXAOKhMX3hA5lCqU87u/TcxKD2glZ7CO04W F8fcdgnTS56GArY0M3rJrIm3uMdPelxm7KgHAXHxUQp/8I3s2pQH32/O9q/9ENXikcCJ T1d7IJGB5PGLFzkJHxlPH/x9yMsPCYuxTULYt/00TULjzU5PCzW+sNhZ+tvfpDUJPBcP T2ZQ== 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 :dkim-signature:delivered-to; bh=Zm5vvLL/xJaMDghuK1vZ0WITKrqQD24K/ZDZU5z7pbc=; b=uBqUJAjA65CM/fFqQObwErhWmQkqXfBvL4ut/6BXNb/PEHOrs8Lwl0MbhfQJRe5NWH BVxx1P98Eb3ryY+f4E0TG3Pdmd5L99vY4Az+zBcI4CTCpy34yWYSRlVrRZnzf96yey5B 9jmZOXIjcjF3HzugPjzvDS9OY1UBIzcUw4+VCAns2NuGqjoD/tJxgKHwyDTcs/pPzjEF 3X2SN1fO5McIr7K4n3/30JolbGM6v75lBl1kdbmLOWFlbSi9WM6ntKx+tjKhyQOwPuhg 2y++E2QRivUuNXf8C9mdQqhJWNM+hn1k1+2C6D4PYwilrtfvIa2ziG9OalQgnzEjNCXE ajpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=uaFHg+3Z; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id o19si18335731pll.54.2019.11.17.21.05.09; Sun, 17 Nov 2019 21:05:10 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=uaFHg+3Z; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 5A2AB7F9A6; Mon, 18 Nov 2019 05:04:55 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pf1-f195.google.com (mail-pf1-f195.google.com [209.85.210.195]) by mail.openembedded.org (Postfix) with ESMTP id 1398A7F8AF for ; Mon, 18 Nov 2019 05:04:07 +0000 (UTC) Received: by mail-pf1-f195.google.com with SMTP id 193so9740368pfc.13 for ; Sun, 17 Nov 2019 21:04:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Q9BEvsVTXu/YFEGYfmnOjvIaF/ws3hihhNeCO2L1Kj0=; b=uaFHg+3ZKV7Lcx2XVRy5x6xhAIhp2bM0fTuAzJu3K+8fC4wotZ+zsbJlxE59exESDv YEIkpObP2KWARTcnQqaWn4PlUpcLvFC6wC4GZnfcXkItmz5pP5VQIyps+MMD46hTa4xX 5Q/gSCrZmiJIbfUNL+5BfyKhZZD098vjdGHMqTf4yu8r0to8b84fqMZ2HT491J9le3YJ xCq8O9rGqtGKeg6h8k4ebzLZlF331UifDfP9x8+KZmApx2+mI2DcDGBftxwhosH9Mys+ Ew6GOIWd4MXOHp2r9rAKv3xqT5YExHQxx2F/st3cN7Lmake7homJQvcKeXC/Zzth0zwN wBmg== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=Q9BEvsVTXu/YFEGYfmnOjvIaF/ws3hihhNeCO2L1Kj0=; b=pQi12ePxvbNwKa6e3Ovf79B93HVvHBpOdh4iMwhk2V2SL6zJbA/sIzkKn8yQy9jA3p fKDR4RoN6whdW8P0/PnxROM5puDTGo4Ef3x5bjeY/8sqEXmF4K3MEATnYskSFzMpmdWH DMPQIXui/DmsM4mPNZGfz6IwAVeAF0x8sqfIe7C5I/6SPnjGScfKykeFGvuYfh/QCGHW NWAwEYjlV4V5gvGQNC0pGv5sY1ylMYCQXc+LsiedkCRd0NLAbqbR9vIVsk028ZpAasbQ 8i6ZCoDRHJrNy2l+ivd/rv1lZenD3Dp0578LifEqfn6bONl6XAwV9wFVjdJWvGtiPomY H48Q== X-Gm-Message-State: APjAAAVOLLEIpAph0R/anYaksnaZz/qBr+d3VgqfbYzwxQ2tKKAc5rA/ qKbWtadX2GKOfVwMeNyC3Y9zWN+Hr7U= X-Received: by 2002:aa7:9592:: with SMTP id z18mr16951714pfj.176.1574053448623; Sun, 17 Nov 2019 21:04:08 -0800 (PST) Received: from apollo.hsd1.ca.comcast.net ([2601:646:8500:1c20::30e8]) by smtp.gmail.com with ESMTPSA id y6sm16881131pfm.12.2019.11.17.21.04.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Nov 2019 21:04:08 -0800 (PST) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Sun, 17 Nov 2019 21:03:51 -0800 Message-Id: <20191118050352.1379153-4-raj.khem@gmail.com> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191118050352.1379153-1-raj.khem@gmail.com> References: <20191118050352.1379153-1-raj.khem@gmail.com> MIME-Version: 1.0 Subject: [oe] [meta-oe][PATCH 4/5] libtorrent: Drop 64bit atomics patch for mips/ppc X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org These patches are no longer needed with latest gcc/clang Signed-off-by: Khem Raj --- ...-64bit-atomic-helpers-for-ppc-32-bit.patch | 30 -- ...0001-implement-64bit-atomic-for-mips.patch | 263 ------------------ .../libtorrent/libtorrent_git.bb | 2 - 3 files changed, 295 deletions(-) delete mode 100644 meta-oe/recipes-connectivity/libtorrent/libtorrent/0001-Define-64bit-atomic-helpers-for-ppc-32-bit.patch delete mode 100644 meta-oe/recipes-connectivity/libtorrent/libtorrent/0001-implement-64bit-atomic-for-mips.patch -- 2.24.0 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-oe/recipes-connectivity/libtorrent/libtorrent/0001-Define-64bit-atomic-helpers-for-ppc-32-bit.patch b/meta-oe/recipes-connectivity/libtorrent/libtorrent/0001-Define-64bit-atomic-helpers-for-ppc-32-bit.patch deleted file mode 100644 index 4d0979710c..0000000000 --- a/meta-oe/recipes-connectivity/libtorrent/libtorrent/0001-Define-64bit-atomic-helpers-for-ppc-32-bit.patch +++ /dev/null @@ -1,30 +0,0 @@ -From c9859a38a58996b8767a30e14febc03845f66f95 Mon Sep 17 00:00:00 2001 -From: Khem Raj -Date: Sat, 1 Jul 2017 13:10:53 -0700 -Subject: [PATCH] Define 64bit atomic helpers for ppc 32-bit - -Signed-off-by: Khem Raj ---- - src/atomic64.c | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/src/atomic64.c b/src/atomic64.c -index f841b39b..35c7c9d8 100644 ---- a/src/atomic64.c -+++ b/src/atomic64.c -@@ -18,10 +18,10 @@ - #include - - /* -- * only need these on MIPS, since it lacks hardware 64-bit atomics, -+ * only need these on MIPS & PPC32, since it lacks hardware 64-bit atomics, - * unlike x86 and ARM. - */ --#if defined(__mips__) || defined(__mipsel__) -+#if defined(__mips__) || defined(__mipsel__) || defined(__powerpc__) - - static void __spin_lock(volatile int *lock) { - while (__sync_lock_test_and_set(lock, 1)) --- -2.13.2 - diff --git a/meta-oe/recipes-connectivity/libtorrent/libtorrent/0001-implement-64bit-atomic-for-mips.patch b/meta-oe/recipes-connectivity/libtorrent/libtorrent/0001-implement-64bit-atomic-for-mips.patch deleted file mode 100644 index 84e0772a79..0000000000 --- a/meta-oe/recipes-connectivity/libtorrent/libtorrent/0001-implement-64bit-atomic-for-mips.patch +++ /dev/null @@ -1,263 +0,0 @@ -From d7b6df5808e7bef5930b61a82e880699a9f9e208 Mon Sep 17 00:00:00 2001 -From: Khem Raj -Date: Thu, 29 Jun 2017 15:39:19 -0700 -Subject: [PATCH] implement 64bit atomic for mips - -GCC does not provide 64bit atomics for mips32 - -Signed-off-by: Khem Raj ---- - src/Makefile.am | 1 + - src/atomic64.c | 228 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - 2 files changed, 229 insertions(+) - create mode 100644 src/atomic64.c - -diff --git a/src/Makefile.am b/src/Makefile.am -index 99aaace0..cbbbbee9 100644 ---- a/src/Makefile.am -+++ b/src/Makefile.am -@@ -27,6 +27,7 @@ libtorrent_la_LIBADD = \ - utils/libsub_utils.la - - libtorrent_la_SOURCES = \ -+ atomic64.c \ - globals.cc \ - globals.h \ - manager.cc \ -diff --git a/src/atomic64.c b/src/atomic64.c -new file mode 100644 -index 00000000..f841b39b ---- /dev/null -+++ b/src/atomic64.c -@@ -0,0 +1,228 @@ -+/*===----- atomic64.c - Support functions for 64-bit atomic operations.-----=== -+ * -+ * The LLVM Compiler Infrastructure -+ * -+ * This file is dual licensed under the MIT and the University of Illinois Open -+ * Source Licenses. See LICENSE.TXT for details. -+ * -+ *===-----------------------------------------------------------------------=== -+ * -+ * atomic64.c defines a set of functions for performing atomic accesses on -+ * 64-bit memory locations. It also implements spinlock synchronization -+ * operations. -+ * -+ *===-----------------------------------------------------------------------=== -+ */ -+ -+#include -+#include -+ -+/* -+ * only need these on MIPS, since it lacks hardware 64-bit atomics, -+ * unlike x86 and ARM. -+ */ -+#if defined(__mips__) || defined(__mipsel__) -+ -+static void __spin_lock(volatile int *lock) { -+ while (__sync_lock_test_and_set(lock, 1)) -+ while (*lock) {} -+} -+ -+static void __spin_unlock(volatile int *lock) { -+ __sync_lock_release(lock); -+} -+ -+/* -+ * Make sure the lock is on its own cache line to prevent false sharing. -+ * Put it inside a struct that is aligned and padded to the typical MIPS -+ * cacheline which is 32 bytes. -+ */ -+static struct { -+ int lock; -+ char pad[32 - sizeof(int)]; -+} __attribute__((aligned (32))) lock = { 0 }; -+ -+ -+uint64_t __sync_fetch_and_add_8(volatile uint64_t *ptr, uint64_t val) { -+ uint64_t ret; -+ -+ __spin_lock(&lock.lock); -+ -+ ret = *ptr; -+ *ptr = ret + val; -+ -+ __spin_unlock(&lock.lock); -+ -+ return ret; -+} -+ -+uint64_t __sync_fetch_and_sub_8(volatile uint64_t *ptr, uint64_t val) { -+ uint64_t ret; -+ -+ __spin_lock(&lock.lock); -+ -+ ret = *ptr; -+ *ptr = ret - val; -+ -+ __spin_unlock(&lock.lock); -+ -+ return ret; -+} -+ -+uint64_t __sync_fetch_and_and_8(volatile uint64_t *ptr, uint64_t val) { -+ uint64_t ret; -+ -+ __spin_lock(&lock.lock); -+ -+ ret = *ptr; -+ *ptr = ret & val; -+ -+ __spin_unlock(&lock.lock); -+ -+ return ret; -+} -+ -+uint64_t __sync_fetch_and_or_8(volatile uint64_t *ptr, uint64_t val) { -+ uint64_t ret; -+ -+ __spin_lock(&lock.lock); -+ -+ ret = *ptr; -+ *ptr = ret | val; -+ -+ __spin_unlock(&lock.lock); -+ -+ return ret; -+} -+ -+uint64_t __sync_fetch_and_xor_8(volatile uint64_t *ptr, uint64_t val) { -+ uint64_t ret; -+ -+ __spin_lock(&lock.lock); -+ -+ ret = *ptr; -+ *ptr = ret ^ val; -+ -+ __spin_unlock(&lock.lock); -+ -+ return ret; -+} -+ -+uint64_t __sync_add_and_fetch_8(volatile uint64_t *ptr, uint64_t val) { -+ uint64_t ret; -+ -+ __spin_lock(&lock.lock); -+ -+ ret = *ptr + val; -+ *ptr = ret; -+ -+ __spin_unlock(&lock.lock); -+ -+ return ret; -+} -+ -+uint64_t __sync_sub_and_fetch_8(volatile uint64_t *ptr, uint64_t val) { -+ uint64_t ret; -+ -+ __spin_lock(&lock.lock); -+ -+ ret = *ptr - val; -+ *ptr = ret; -+ -+ __spin_unlock(&lock.lock); -+ -+ return ret; -+} -+ -+uint64_t __sync_and_and_fetch_8(volatile uint64_t *ptr, uint64_t val) { -+ uint64_t ret; -+ -+ __spin_lock(&lock.lock); -+ -+ ret = *ptr & val; -+ *ptr = ret; -+ -+ __spin_unlock(&lock.lock); -+ -+ return ret; -+} -+ -+uint64_t __sync_or_and_fetch_8(volatile uint64_t *ptr, uint64_t val) { -+ uint64_t ret; -+ -+ __spin_lock(&lock.lock); -+ -+ ret = *ptr | val; -+ *ptr = ret; -+ -+ __spin_unlock(&lock.lock); -+ -+ return ret; -+} -+ -+uint64_t __sync_xor_and_fetch_8(volatile uint64_t *ptr, uint64_t val) { -+ uint64_t ret; -+ -+ __spin_lock(&lock.lock); -+ -+ ret = *ptr ^ val; -+ *ptr = ret; -+ -+ __spin_unlock(&lock.lock); -+ -+ return ret; -+} -+ -+bool __sync_bool_compare_and_swap_8(volatile uint64_t *ptr, -+ uint64_t oldval, uint64_t newval) { -+ bool ret = false; -+ -+ __spin_lock(&lock.lock); -+ -+ if (*ptr == oldval) { -+ *ptr = newval; -+ ret = true; -+ } -+ -+ __spin_unlock(&lock.lock); -+ -+ return ret; -+} -+ -+uint64_t __sync_val_compare_and_swap_8(volatile uint64_t *ptr, -+ uint64_t oldval, uint64_t newval) { -+ uint64_t ret; -+ -+ __spin_lock(&lock.lock); -+ -+ ret = *ptr; -+ if (ret == oldval) -+ *ptr = newval; -+ -+ __spin_unlock(&lock.lock); -+ -+ return ret; -+} -+ -+uint64_t __sync_lock_test_and_set_8(volatile uint64_t *ptr, uint64_t val) { -+ uint64_t ret; -+ -+ __spin_lock(&lock.lock); -+ -+ ret = *ptr; -+ *ptr = val; -+ -+ __spin_unlock(&lock.lock); -+ -+ return ret; -+} -+ -+void __sync_lock_release_8(volatile uint64_t *ptr) { -+ __spin_lock(&lock.lock); -+ -+ *ptr = 0; -+ -+ __spin_unlock(&lock.lock); -+} -+ -+#endif --- -2.13.2 - diff --git a/meta-oe/recipes-connectivity/libtorrent/libtorrent_git.bb b/meta-oe/recipes-connectivity/libtorrent/libtorrent_git.bb index fa106ea41d..a3902b25f6 100644 --- a/meta-oe/recipes-connectivity/libtorrent/libtorrent_git.bb +++ b/meta-oe/recipes-connectivity/libtorrent/libtorrent_git.bb @@ -8,8 +8,6 @@ DEPENDS = "zlib libsigc++-2.0 openssl cppunit" SRC_URI = "git://github.com/rakshasa/libtorrent \ file://don-t-run-code-while-configuring-package.patch \ - file://0001-implement-64bit-atomic-for-mips.patch \ - file://0001-Define-64bit-atomic-helpers-for-ppc-32-bit.patch \ " SRCREV = "756f70010779927dc0691e1e722ed433d5d295e1" From patchwork Mon Nov 18 05:03:52 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 179581 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp2401649ilf; Sun, 17 Nov 2019 21:05:18 -0800 (PST) X-Google-Smtp-Source: APXvYqwith8OwLAy9jEOdxlKlZOyhNOB2yFn23TBLl86J/DnKnHzC72sWdJPZ8S3cNiPfDwGhrkE X-Received: by 2002:a63:d501:: with SMTP id c1mr28417098pgg.356.1574053517969; Sun, 17 Nov 2019 21:05:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574053517; cv=none; d=google.com; s=arc-20160816; b=Dvp60Ma6XTn8ftwtZvVwCtTRM/q4DOC+d6AZNpXnk03IuGR2gm8g8Q4xrqhlnTTHBD KP2v4QzmwWDkBOMqjrCFmKyyH4mvGlYj03HvZgoHqB4vqGGiWwg97SepeI95UUkdi8al FhdHl++xOGpE5VBvZ2rrQOjdaot8Ilkh0f95iAlg/d93mJd65XfBYf92xRrOa2bYARD2 Qhao9bknHQRHvbhfL8THvlZyNol48GZWbrg927rEchE6on/rNyUea0f+IeQ5+6+IrvFl RLzw3xjLKDFQmtUkNK6wCljI0osZ4TNRguyxh7PAmpWKyTxXncsIBDX0E4Fy/lvJLY/k 3BQQ== 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 :dkim-signature:delivered-to; bh=uCM/fXXPyPfBtB8keKkdTcHRXDDBITj+b1ALch8iUX4=; b=GsUii98szTw6eDMyRQcpyXqnuYT1B+Y38VzlnrsaLlNom32PpoNMz0mc/w+YU/wvxf Q6lK4BOMYYtyndJ4GwVK51BEt9jzCun0EWnPCfpVErHv5qobt25kLzUKzBqmwqABsVnS cmtptTUym0yVjdCHDHyaJgae7k3TWT5LNlEV2zOFKS17dSBRbgGvck0UgxDmIO/FhxDv kPWajbNVFMspHcusNSkpy+KN7GAo/wdn+fvF0Fozoxc/C89TzeubSqv2xy8j3/HRW3XM yZ88K11ZNx1bNbJkTQ32NTYzmgiVw7RK7UcpdIBLTRqdr0f+iasAfQ4mjBgpOK3qsokI YjnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=uoRoLtvh; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id h21si17426630pjq.74.2019.11.17.21.05.17; Sun, 17 Nov 2019 21:05:17 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=uoRoLtvh; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 AE58E7F8AC; Mon, 18 Nov 2019 05:05:00 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pf1-f182.google.com (mail-pf1-f182.google.com [209.85.210.182]) by mail.openembedded.org (Postfix) with ESMTP id E44337F8AC for ; Mon, 18 Nov 2019 05:04:09 +0000 (UTC) Received: by mail-pf1-f182.google.com with SMTP id r4so9759151pfl.7 for ; Sun, 17 Nov 2019 21:04:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=dVN0ANCj9wPzXDb0J0jKNQAFKWXg+qMbocpb113YD3I=; b=uoRoLtvhq4R3bdM1ulveIRD+OaPdTENfmqZAtjJHXNe3E73qVHrXaDyKbwGbJgjLM4 lPG4tsIlMp6qMjOkNY4e4khlFNwl4zMAB1nSZjxSC88OPKIFcMYbC9AXHVvTChKQDCdG 1dZjO02j2dEdtyKhDBcOjKn2G5QHxHyraDk3J/Rj5RjwfndvNQarTS+A8XmMcEOXHNa3 Td/7EarSQlLSYeyttzDVlBk8wWF4SfS9j6fjENf3lugW3tv1Hgz51nF3YT7Oj7JQhES+ IS/1qB+ONhy41TiLPqNDxC6ge8wQ11QmyPzuVoRb42IHVqeoJugn/7c1JJ0YESDfcyzy PtOA== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=dVN0ANCj9wPzXDb0J0jKNQAFKWXg+qMbocpb113YD3I=; b=C6KbS4QU8q6hWl0ebvr3oKScC2vvIVv5y1hvOiPs2HaP0jHani0/nkC7mCnCGUf2Fi xj9D8pJnk2MD6chbhURX+VYJnfh4vHu0WIvMiGliHXM2DonqPMwovus6Nzhf/hmYtsSC K1nVpSUSqvcMejDGFtIDnuYC234/T3ke3K4dxOzcTcAwgAVU1wQjaouHww1/fWw02LTg ct+MuXUUIzrp/bSVJnO1u41dARXma8hqkENE9sI3EDNQV11N147wPLw1/FpfeE4BjdPV S5uVUdA9LPS5XKQNZPvu+nNs+sfCrczEmzc9vOTbQqcTr8NLWYcCVlYpt2uZn4T2rayA Hrng== X-Gm-Message-State: APjAAAUWmeRwOCAQc2t8rBfcZOgFDAtmXIGNGD+zFV51FUA35xBcRI9/ EQEcfOt3vsm9Bg3qYBs70Th7+W1AcXU= X-Received: by 2002:aa7:85d7:: with SMTP id z23mr31977498pfn.24.1574053449680; Sun, 17 Nov 2019 21:04:09 -0800 (PST) Received: from apollo.hsd1.ca.comcast.net ([2601:646:8500:1c20::30e8]) by smtp.gmail.com with ESMTPSA id y6sm16881131pfm.12.2019.11.17.21.04.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Nov 2019 21:04:09 -0800 (PST) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Sun, 17 Nov 2019 21:03:52 -0800 Message-Id: <20191118050352.1379153-5-raj.khem@gmail.com> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191118050352.1379153-1-raj.khem@gmail.com> References: <20191118050352.1379153-1-raj.khem@gmail.com> MIME-Version: 1.0 Subject: [oe] [meta-oe][PATCH 5/5] libtorrent: Disable instrumentation on ppc/mips X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org >From https://github.com/rakshasa/rtorrent/issues/156 all atomics (__sync_fetch_and_and_8) are not avaliable on mips/ppc, this patch helps workaround the build error Fixes ld: libtorrent.so: undefined reference to `__sync_add_and_fetch_8' Signed-off-by: Khem Raj --- meta-oe/recipes-connectivity/libtorrent/libtorrent_git.bb | 7 +++++++ 1 file changed, 7 insertions(+) -- 2.24.0 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-oe/recipes-connectivity/libtorrent/libtorrent_git.bb b/meta-oe/recipes-connectivity/libtorrent/libtorrent_git.bb index a3902b25f6..3ee69554b6 100644 --- a/meta-oe/recipes-connectivity/libtorrent/libtorrent_git.bb +++ b/meta-oe/recipes-connectivity/libtorrent/libtorrent_git.bb @@ -15,6 +15,13 @@ PV = "0.13.8" S = "${WORKDIR}/git" +PACKAGECONFIG ??= "instrumentation" + +PACKAGECONFIG_remove_mipsarch = "instrumentation" +PACKAGECONFIG_remove_powerpc = "instrumentation" + +PACKAGECONFIG[instrumentation] = "--enable-instrumentation,--disable-instrumentation," + inherit autotools pkgconfig EXTRA_OECONF = "--with-zlib=${STAGING_EXECPREFIXDIR}"