From patchwork Sun Jun 24 19:18:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 139774 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp3198276lji; Sun, 24 Jun 2018 12:20:00 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIaJ/mnJLYuTLhMA/hIImDd4Tupsg+joEcJYpFLsiO2YnRIlZnLgqIi4H4RukZHIO6RNPIe X-Received: by 2002:a65:4e86:: with SMTP id b6-v6mr8398902pgs.322.1529868000651; Sun, 24 Jun 2018 12:20:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529868000; cv=none; d=google.com; s=arc-20160816; b=FRBiaxK9ucNbVG5lz3oPlCfWH/waz/E+y1Wd85RYU+MSVRU0WCvcEvGTF2pVDDYsMO L3B7PQydWGfbc3kc+G1ms0Cm8EnYTXy3WqFnQ8or7uYQyV433rDea/Wl5UFQlpDsF8X9 gE88yg7uuJLkgwBGNYpqi/B99eiwPkSCcMJ3KUOMQxcnck6BdTc42nyvyeoHJ7rNZdKZ A/4xcLkjTGcQOfHDIPtQ1+XbWP1bJi230ytPG8hO79yRtpK1y+umeunzMAPGq271aUgF aF5m+wxTTIjen6unkp74ujC5XOoyc4PxPTLt/t0UPLOOy7H0uhl2zk79invJv1KT1y9G ExyQ== 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:arc-authentication-results; bh=r3Jf9Yml8JnOK2n3gZtV6qkYdXHnZkasrcqf2XsPZ18=; b=J/jaKH1QE+dm+VXKCJIdWXfHZXhE3qArnRLTLnXL85jBOuqm9BU9H9WJgKrrkCVMXq z0znYceaxYm6KpOU3U5QAsY1b4GbrU2SkXuq4E7X6Yj3SauXzyJY9ZYtYy/49wXoW122 uQ4AiHG9ymUBjgo3c2jEN45bFLS+3uPLZJP7PEg5noJj7yLZEU2XyaeMU4zX3hbefMf6 RSP3f4JbA3qYJRP51uzR2id7IW02a8Ixb4ef6pAabM7zZ86bnlSHvL6SHJTd495W703y tJRB3VMn4lbo/IUIF+4tkquSgrrPcBXye7blS8/h9IgGzlzHeg/03jCXWhh7ZeDYU0xb MJmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=lFRsoa8i; 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 139-v6si7722755pgc.87.2018.06.24.12.20.00; Sun, 24 Jun 2018 12:20:00 -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=lFRsoa8i; 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 6C75F74FC4; Sun, 24 Jun 2018 19:19:52 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pf0-f194.google.com (mail-pf0-f194.google.com [209.85.192.194]) by mail.openembedded.org (Postfix) with ESMTP id 1657374C0D for ; Sun, 24 Jun 2018 19:19:30 +0000 (UTC) Received: by mail-pf0-f194.google.com with SMTP id q1-v6so5422042pff.13 for ; Sun, 24 Jun 2018 12:19:32 -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=kmb/rvdBqtsBQ/5vNte6OEAfJ0nUw1kOJgg9KjELcow=; b=lFRsoa8i7Hnl4N0hxO1C7vY02fmCdbnG0w93l7bQU6nn/gEDnoo/bBT19yqkP/amJE qfwV7iBg80KeFUtsca7BxzBntAvqGBU9hAxi72+qwFX9l45iSMXMUXkho+jeJRsIHBRa 28CfhdSbs+D6k1L3JNBf4OmZHWjS82IfcKfNo5PyXQ4f0AGMV38qNi+5OvNCJyJi7gIF oOsKBnDMJ9DkHp9vbuXVirKVxOjkelPEny5v7iN+vqlQ8QMZ/hjRNNccWXXGobHjfd7y FIm4SoJ6cl0FXu0ebeWXRPytxEJyY+IX/TPp49ry1jDtQmrR8/r6H2uBJHhLspZQyzCp 58yQ== 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=kmb/rvdBqtsBQ/5vNte6OEAfJ0nUw1kOJgg9KjELcow=; b=ebYS0GFCJdjwa09R6lnMbE2OIJLxXtW+YzU40tm6BvYWQ7WuySP3K+YSZZK5x2z63+ F2z/HvACOsYyOeYl8C/gv1VEyLXbj1SQ3xKuQOMMpeIJK3W/++LfKzZVpmQEorZcZxxv Qmu2NHINeGwbzBioCs0g4xOX1PId3+vC/h1wsTqvNFTWaO0ubrIvTtvimB5H4MoczroI kHBX1VwwrpZcm7AXaO36iEG+hFXmXKXeWhuMUp59xIv94MgTtAw2M/2VJr4WyNW7arI0 UskxLG66FMteCY4sxhxKV15RydHJmDhR16kg6kMMVQx21rKZXGkoLtFP4QlPvnfio1IU K0GQ== X-Gm-Message-State: APt69E1ogycI6TUUpW8WdRZBLSdPM4FqwdMDwgDmapyGF6VoTjNRfkve yxazruPlq5jyoWjDbamjyTSosw== X-Received: by 2002:a63:6e82:: with SMTP id j124-v6mr8354608pgc.349.1529867971778; Sun, 24 Jun 2018 12:19:31 -0700 (PDT) Received: from localhost.localdomain ([2601:646:877f:9499::91a0]) by smtp.gmail.com with ESMTPSA id m11-v6sm36700461pfj.25.2018.06.24.12.19.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 24 Jun 2018 12:19:30 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Sun, 24 Jun 2018 12:18:28 -0700 Message-Id: <20180624191845.31082-3-raj.khem@gmail.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180624191845.31082-1-raj.khem@gmail.com> References: <20180624191845.31082-1-raj.khem@gmail.com> Subject: [oe] [meta-oe][PATCH 03/20] upm: Upgrade to latest and fix build with musl 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 --- ...lude-sys-types.h-for-uint-definition.patch | 33 +++++++++++++++++++ meta-oe/recipes-extended/upm/upm_git.bb | 11 +++---- 2 files changed, 38 insertions(+), 6 deletions(-) create mode 100644 meta-oe/recipes-extended/upm/upm/0001-include-sys-types.h-for-uint-definition.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-extended/upm/upm/0001-include-sys-types.h-for-uint-definition.patch b/meta-oe/recipes-extended/upm/upm/0001-include-sys-types.h-for-uint-definition.patch new file mode 100644 index 0000000000..a0a47411d7 --- /dev/null +++ b/meta-oe/recipes-extended/upm/upm/0001-include-sys-types.h-for-uint-definition.patch @@ -0,0 +1,33 @@ +From 48a580bd402cf6a3ee9e42013653219bfeb3caf6 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Thu, 21 Jun 2018 18:39:16 -0700 +Subject: [PATCH] include sys/types.h for uint definition + +uint is defined in sys/types.h, therefore this +header needs to be included, it gets exposed with +musl where this header is not getting included indirectly +as it is happening when building on glibc + +Fixes build errors on musl e.g. +upm/src/kx122/kx122.hpp:456:31: error: 'uint' has not been declared +| void setBufferThreshold(uint samples); +| ^~~~ + +Signed-off-by: Khem Raj +--- +Upstream-Status: Submitted [https://github.com/intel-iot-devkit/upm/pull/656] + src/kx122/kx122.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/kx122/kx122.h b/src/kx122/kx122.h +index 1622ed50..56e5215e 100644 +--- a/src/kx122/kx122.h ++++ b/src/kx122/kx122.h +@@ -31,6 +31,7 @@ extern "C"{ + #include + #include + #include ++#include + + #include + #include diff --git a/meta-oe/recipes-extended/upm/upm_git.bb b/meta-oe/recipes-extended/upm/upm_git.bb index 478aa0db1d..babe5f4893 100644 --- a/meta-oe/recipes-extended/upm/upm_git.bb +++ b/meta-oe/recipes-extended/upm/upm_git.bb @@ -7,13 +7,13 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=66493d54e65bfc12c7983ff2e884f37f" DEPENDS = "libjpeg-turbo mraa" -SRCREV = "37642f3b0194f6ddd63f1e6b5d49b8cb689d5c81" +SRCREV = "dc45cd78595c7c24c8a8574c63bb48b5bb99c5aa" PV = "1.6.0-git${SRCPV}" -SRC_URI = " \ - git://github.com/intel-iot-devkit/${BPN}.git;protocol=http \ - file://0001-Replace-strncpy-with-memcpy.patch \ -" +SRC_URI = "git://github.com/intel-iot-devkit/${BPN}.git;protocol=http \ + file://0001-Replace-strncpy-with-memcpy.patch \ + file://0001-include-sys-types.h-for-uint-definition.patch \ + " S = "${WORKDIR}/git" @@ -22,7 +22,6 @@ COMPATIBLE_HOST = "(x86_64.*|i.86.*|aarch64.*|arm.*)-linux" inherit distutils3-base cmake - # override this in local.conf to get needed bindings. # BINDINGS_pn-upm="python" # will result in only the python bindings being built/packaged.