From patchwork Mon Sep 10 06:55:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 146284 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp2154887ljw; Sun, 9 Sep 2018 23:55:52 -0700 (PDT) X-Google-Smtp-Source: ANB0VdarDffyxJ9ITYYFKoLqWyRNJSqk5KEhEdpVCDBDQG+sB42GbALVs1nhLuwiDEiNkwCZVK3Q X-Received: by 2002:a62:b604:: with SMTP id j4-v6mr21954424pff.199.1536562551880; Sun, 09 Sep 2018 23:55:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536562551; cv=none; d=google.com; s=arc-20160816; b=qQEMcKXHxXEaDhUJcSpX2Syy1JN8i9TW1mR9F63l6aUJd+7TCXi6flHu+CrXvxXi/n tdskz6wRtF5nOuzXG09F1vuv93wkvmcevFr1ga7dcsl2MU3tQOGOXmSsM5BfZhU+hQD7 CuO627DW77hw19jDHFvNGk3xPsJdhUSddZ4FtR2GRC2S+knvb1BvVMMsWcLF6M12GGXq xY85KQNERWpzAI4VPMCgCfhZAjrndTeomrBa/5xqGoUJxhPsKW4QDB1mqbp60wlf0G8e hj8af9cA02BnLl+upO7/2WKjyUuiGBxMKQ4EFmO6ZtyNMh1tDKmJMm//F1vGReQA59gg F0Ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:dkim-signature :delivered-to; bh=Em1kaoBjsytFhfCB09qpNivH+27AznDmxCu0wUC0blI=; b=vDkwBMltJpou8K9t6m7xc/O7df6lOp3NqB5BrnE8xgWFvD76/suipyxFroPh/U1Srl M4K8iSndK73Gx8kWa/+FTWHJpN+/8eRC2uLNy5XVidYNTLAI5NcP5xyHl6/sWpPqlMXo gM4IQ2AW7M81GPFFgRsbMk2wmA8RiaTlNSulohyU3+yPDAhbeKzJL9ljO9R35QvKs/cO TcaAzWo5UQuBbEa0H9Hyf7LECc9gprNfwKyZouNMeeI6eZpAPL7XUBSyh1wHIN1F0jEH PczHeMls22qEycBbbkMOol67yM77smIGBaOKh3VDdwt7CtexNZmsMk6YtULKiyPGWoIy dX0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=Q6Uee5vu; 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 x4-v6si14812316plo.459.2018.09.09.23.55.51; Sun, 09 Sep 2018 23:55:51 -0700 (PDT) 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=Q6Uee5vu; 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 layers.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 2D0886011A; Mon, 10 Sep 2018 06:55:49 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pf1-f194.google.com (mail-pf1-f194.google.com [209.85.210.194]) by mail.openembedded.org (Postfix) with ESMTP id A7D966011A for ; Mon, 10 Sep 2018 06:55:47 +0000 (UTC) Received: by mail-pf1-f194.google.com with SMTP id l9-v6so9966539pff.9 for ; Sun, 09 Sep 2018 23:55:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=rHchlrcDAMfaXrTPkFdY7AYPakyK+J4tD3aPbfWd8B4=; b=Q6Uee5vuHA/E4u1xcbtEmMccRV1pXqyhfm3trMs/zKqLFZHu3zBJdZFJX98Xec7YEw tzhl7a4suZgr8/3dQpmciR9qZSbq91QYoFxoHFvVppd6/BWI2gtIFhxfTNHDlHm0OL8Z YnNsjsXSMlv6FLlorA42csMsYVKsZS/QyOrLQYtryY6p6ZuArd5eQOA1heRtoQN3Edbu U6QQoE6biXbdRcgpHOeArXO7alBaCFAKSvV/aPNoFLiwJE6lmATeou1tQsCjhO86ZHrf 4NzlaxGk4jZZR/ZfrotpBDntShSq+g9Nqw/RpMUXMfqhZdMYofZTbp6CCEY5vgnIYnFR eKFQ== 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; bh=rHchlrcDAMfaXrTPkFdY7AYPakyK+J4tD3aPbfWd8B4=; b=Q0yHaBupSAJTNa4D8If6BjTUNE9YiqKAgRFI9DlnwcuexSBdptDpW+UyGumWEEo0Ql dY2n2SZhwKtoX7S5TaxDZtiI7hZOKRFpgV7TkpmpG1WaI1h7geAMcSmeSxHutLis4NAn 6us8jxKo4/GVDv5RKzuvz9KFUdha1rWmONtSSQI7ElcCe6pjsQSA/XIqCJD7hSBiw9q/ XlhcPhLGzDwZ4MiryXDFSDue5Sq+0rKyfneSSbMTjKuNKtQh18/1Rs8hGL63bR3OHVrR KPRSEbdc+RTKosYaETbTcWvqzGdFW8tCET2em2AdCPY3KIfKY+Uso29TQhLrWJC0Nr00 ESdQ== X-Gm-Message-State: APzg51DAqZY9rS4qepN3aSTkZpHwaSCUzNFG53Y/r/VRwstEZvmd4UUZ a+suWU26OWs0SALlOVMwS/ILnwec X-Received: by 2002:a63:6d4f:: with SMTP id i76-v6mr20788671pgc.215.1536562548197; Sun, 09 Sep 2018 23:55:48 -0700 (PDT) Received: from localhost.localdomain ([2601:646:877f:9499::2887]) by smtp.gmail.com with ESMTPSA id b3-v6sm29610816pgm.74.2018.09.09.23.55.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 09 Sep 2018 23:55:47 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Sun, 9 Sep 2018 23:55:36 -0700 Message-Id: <20180910065537.18612-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.18.0 Subject: [oe] [meta-initramfs][PATCH 1/2] klcc-cross: Recognise clang options 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: , MIME-Version: 1.0 Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org Let klcc understand '-no-integrated-as' which is a clang option used by meta-clang for compiler defaults Signed-off-by: Khem Raj Cc: Andrea Adami --- .../klcc-cross-accept-clang-options.patch | 19 +++++++++++++++++++ .../recipes-devtools/klibc/klibc.inc | 1 + 2 files changed, 20 insertions(+) create mode 100644 meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/klcc-cross-accept-clang-options.patch -- 2.18.0 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/klcc-cross-accept-clang-options.patch b/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/klcc-cross-accept-clang-options.patch new file mode 100644 index 0000000000..07703aa536 --- /dev/null +++ b/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/klcc-cross-accept-clang-options.patch @@ -0,0 +1,19 @@ +meta-clang passes this option to compiler defaults + +Upstream-Status: Pending +Signed-off-by: Khem Raj + +Index: git/klcc/klcc.in +=================================================================== +--- git.orig/klcc/klcc.in ++++ git/klcc/klcc.in +@@ -207,6 +207,9 @@ while ( defined($a = shift(@ARGV)) ) { + } elsif ( $a =~ /^--([sysroot=])(.*)$/ ) { + # Override gcc encoded sysroot + push(@ccopt, $a); ++ } elsif ( $a eq '-no-integrated-as' ) { ++ # Allow clang options ++ push(@ccopt, $a); + } else { + die "$0: unknown option: $a\n"; + } diff --git a/meta-initramfs/recipes-devtools/klibc/klibc.inc b/meta-initramfs/recipes-devtools/klibc/klibc.inc index 8616f89f2c..f0b20bc7fd 100644 --- a/meta-initramfs/recipes-devtools/klibc/klibc.inc +++ b/meta-initramfs/recipes-devtools/klibc/klibc.inc @@ -12,6 +12,7 @@ SRC_URI = "git://git.kernel.org/pub/scm/libs/klibc/klibc.git \ file://klibc-linux-libc-dev.patch \ file://staging.patch \ file://klcc-consider-sysroot.patch \ + file://klcc-cross-accept-clang-options.patch \ file://0001-dash-Specify-format-string-in-fmtstr.patch \ file://0001-Define-in_-structs-for-non-glibc-system-libs.patch \ file://0001-include-linux-sysinfo.h-directly.patch \ From patchwork Mon Sep 10 06:55:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 146285 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp2154979ljw; Sun, 9 Sep 2018 23:55:58 -0700 (PDT) X-Google-Smtp-Source: ANB0Vda4EfiivXktu6lzsmE4xAh5ZVivP+nw6lamFuoKbZ0UJvka1Q9CuAThRmqUSHYKyX1+cdLg X-Received: by 2002:a63:2022:: with SMTP id g34-v6mr21456404pgg.235.1536562558276; Sun, 09 Sep 2018 23:55:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536562558; cv=none; d=google.com; s=arc-20160816; b=lsvkhn42YBwMTPHwLoPMd4jn8hVTkzUhufeyEtJRSFnC6jHritM7m1XCDWrHp6zUln DJMhX/Jk1vGPZesHirJaYmt9sRnC3Qe8u5+7ss/yuxVUD3wmXX2sSgc8e5WEdKnY50BH Sxww8Lou2D/iON379UeVRdZUT4YEkYZspKVTFBnGSUM6NhJsv7MjoukSr2glI2hp4nDK KL7ldv7E/OYBso7PEWhydocJnB9GhQw+hNEU50/YAV+wxsQJSahrNR/LFCmimrKrVclD 9nflLEp7UONnUGePQWEqJTJP5+0JDZMOSy6ml5HNFyxGfCG+MnnE3Dbcl+mUSV87ndcN pNRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to; bh=lf80sQRBL0eDsg5BPe1/5sl41kpJG2rBIzmBMFsjesE=; b=XTpSWUxFCVxDjIH4VM/Cv7z7oLj1s2TWoaOqqVzF5mjWC1kUxlnyAd7yf9s0aZJLSH ydxi7nb7qYL3+f8suRb9pWu0PKJ/nlAECctzreJhzR2DkWNcbUMy2tv7RHfvAt+fRvMH oyFFIn3Od7TsqsbyAp8+p85VYc/soEC6Ad+bjavq1dMdyWa/AIxhwGhRtDY3jB6MA7is tcnexKZ/Bhp72aQN+7DxiUN2IpojtvJfPE/j+hwXREn+0R/JpdLmmVHhPWCUpzX0JrtQ 9XggsxMOAQaPeH3UEsgTDh32Gvq06rkI8yYe9RiOH5sa4x2N+JN4ValprDxMGO0SBq5Y uvFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=sRTa92hC; 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 b2-v6si18206487plm.202.2018.09.09.23.55.58; Sun, 09 Sep 2018 23:55:58 -0700 (PDT) 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=sRTa92hC; 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 layers.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id C06376086F; Mon, 10 Sep 2018 06:55:54 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pl1-f171.google.com (mail-pl1-f171.google.com [209.85.214.171]) by mail.openembedded.org (Postfix) with ESMTP id 5FA3279819 for ; Mon, 10 Sep 2018 06:55:48 +0000 (UTC) Received: by mail-pl1-f171.google.com with SMTP id b12-v6so9269471plr.8 for ; Sun, 09 Sep 2018 23:55:49 -0700 (PDT) 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; bh=gC0JsvdMUfHVRLP22Vy+XIv4A+h4HSA8WOieLphQj24=; b=sRTa92hCXfAgWgz0Yg+U5mo34bCDXLJ2m3uyqm0egl1xttN8KatYHmxw2fcs9m2s9t aI/3XlQn/egdggE6+Y86ta01JYbaUB5Nn+TKJWhFMwgViGzqDgxeycYEyE4i/7c7rUcc utvd3kjkV5+H6nToAbDx4N2+jb04wcmLouYLC+gScdVpHiA7PY9cUNe+uB8cW9Dz2jvD rJo+kyMheJmgyN69ztkb+vvJoI0YxD3SDrI4DuncnLPDSrJu6dl8tEHlOXUwTocs1KQh ku80E5t1NEUswlaXm8h9TCjlF0B6hu4IUu7LfVv2z0vTxG2uat6johsQG+x6UIWLS/YU zrpA== 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; bh=gC0JsvdMUfHVRLP22Vy+XIv4A+h4HSA8WOieLphQj24=; b=BIyESz83mZi9L/zbjaSHd/2GaYWsCp+U+rafjKjFIeYUZ1JFJwUxAsfQheV2qZmgcG +BMEd5l5+xgcBp2GnrVdNm0JUvTwzMF0P0bRbYLMpjRNtEE3eiijmOI/LOiWfTvY2vQx fQlSmXp6YXk1ekHFBJNDQVKT//+1HFqQSA6T4+Z+9m/wdoA1zxB/w6OmK9ZpSiuargPQ c02tCTpY8AdHbEYwsrJnYzyZA/QJx/QHsQgot8O5TzS2kbrHGIZ+phUJuyLYGYAW/NBa ZxIfCYovGhYTEmWVABoW+feQPn4i8FNP59MUhAppToLnUZp458w6ihV+qkuaNpmr7+ll V75g== X-Gm-Message-State: APzg51Ax25FD0E7nNtmmWrKQiAFtBH4WhbpGFYbAkk1ciEcX4FH70RdB Fapveh8SaRphydNvp9wHG0i8qA5u X-Received: by 2002:a17:902:9a83:: with SMTP id w3-v6mr20669725plp.75.1536562548919; Sun, 09 Sep 2018 23:55:48 -0700 (PDT) Received: from localhost.localdomain ([2601:646:877f:9499::2887]) by smtp.gmail.com with ESMTPSA id b3-v6sm29610816pgm.74.2018.09.09.23.55.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 09 Sep 2018 23:55:48 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Sun, 9 Sep 2018 23:55:37 -0700 Message-Id: <20180910065537.18612-2-raj.khem@gmail.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180910065537.18612-1-raj.khem@gmail.com> References: <20180910065537.18612-1-raj.khem@gmail.com> Subject: [oe] [meta-oe][PATCH 2/2] opencv: Fix build on big-endian systems 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: , MIME-Version: 1.0 Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org Signed-off-by: Khem Raj --- ...001-Add-missing-multi-line-separator.patch | 36 +++++++++++++++++++ .../recipes-support/opencv/opencv_3.4.3.bb | 1 + 2 files changed, 37 insertions(+) create mode 100644 meta-oe/recipes-support/opencv/opencv/0001-Add-missing-multi-line-separator.patch -- 2.18.0 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-oe/recipes-support/opencv/opencv/0001-Add-missing-multi-line-separator.patch b/meta-oe/recipes-support/opencv/opencv/0001-Add-missing-multi-line-separator.patch new file mode 100644 index 0000000000..513597b8c2 --- /dev/null +++ b/meta-oe/recipes-support/opencv/opencv/0001-Add-missing-multi-line-separator.patch @@ -0,0 +1,36 @@ +From 60857229aab13ccc426572a43ab891409bb76ea4 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Sun, 9 Sep 2018 22:52:55 -0700 +Subject: [PATCH] Add missing multi-line separator + +Otherwise this fails to build ( found on mips ) + +Fixes +contrib/modules/surface_matching/src/hash_murmur86.hpp:97:15: error: +expected constructor, destructor, or type conversion before '(' token + && defined(__GNUC__) && (__GNUC__>4 || (__GNUC__==4 && +__GNUC_MINOR__>=3)) + ^ + +Upstream-Status: Submitted [https://github.com/opencv/opencv_contrib/pull/1764] +Signed-off-by: Khem Raj +--- + modules/surface_matching/src/hash_murmur86.hpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/modules/surface_matching/src/hash_murmur86.hpp b/modules/surface_matching/src/hash_murmur86.hpp +index 1edf6bf4..0477d37e 100644 +--- a/modules/surface_matching/src/hash_murmur86.hpp ++++ b/modules/surface_matching/src/hash_murmur86.hpp +@@ -93,7 +93,7 @@ void hashMurmurx86 ( const void * key, const int len, const uint seed, void * ou + /* Now find best way we can to READ_UINT32 */ + #ifndef WORDS_BIGENDIAN + # define READ_UINT32(ptr) (*((uint32_t*)(ptr))) +-#elif defined(WORDS_BIGENDIAN) ++#elif defined(WORDS_BIGENDIAN) \ + && defined(__GNUC__) && (__GNUC__>4 || (__GNUC__==4 && __GNUC_MINOR__>=3)) + # define READ_UINT32(ptr) (__builtin_bswap32(*((uint32_t*)(ptr)))) + #endif +-- +2.18.0 + diff --git a/meta-oe/recipes-support/opencv/opencv_3.4.3.bb b/meta-oe/recipes-support/opencv/opencv_3.4.3.bb index 5591481b7d..403146e7cd 100644 --- a/meta-oe/recipes-support/opencv/opencv_3.4.3.bb +++ b/meta-oe/recipes-support/opencv/opencv_3.4.3.bb @@ -46,6 +46,7 @@ SRC_URI = "git://github.com/opencv/opencv.git;name=opencv \ https://github.com/tiny-dnn/tiny-dnn/archive/v1.0.0a3.tar.gz;destsuffix=git/3rdparty/tinydnn/tiny-dnn-1.0.0a3;name=tinydnn;unpack=false \ file://0001-3rdparty-ippicv-Use-pre-downloaded-ipp.patch \ file://uselocalxfeatures.patch;patchdir=../contrib/ \ + file://0001-Add-missing-multi-line-separator.patch;patchdir=../contrib/ \ file://0002-Make-opencv-ts-create-share-library-intead-of-static.patch \ file://0003-To-fix-errors-as-following.patch \ file://fixpkgconfig.patch \