From patchwork Mon Dec 16 03:41:55 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 181644 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp3821801ile; Sun, 15 Dec 2019 19:43:20 -0800 (PST) X-Google-Smtp-Source: APXvYqzNhuyyXNV96rmhcWfSQxkYF/h9UXKriiEgUB9HhRfoyYfzw7Dm4WkvrUMittwERaaO/CXk X-Received: by 2002:a63:1322:: with SMTP id i34mr15925932pgl.163.1576467800120; Sun, 15 Dec 2019 19:43:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576467800; cv=none; d=google.com; s=arc-20160816; b=OQHlz9Z/hR2rjF6tVeKLqsdK4DbHPPrpgVjFaDmch9voQZOLoqzDbcFpc0e5BjHcmA KtQSlm+8/mq9VvD3RDPwWSO+HKIycjrZQNv+dZDBbGQ/XHX7t+QHEnkEZNTudW/XVXfD qpnhhIcgTB7huA4zD9T/MPxG0sAGkf+QhBt+UCvd9JpoT0Dgba151iPBhAPzaEwGV7+x BIaDQnUdlgF0n7pRW17FpN88dzQkazSZgiv/LaCoRcFKPYXCtD4+ilw4P9NTNY4aHzWl maUHpMYFzSls5jcgMYjWh2S68BbTflXaDUxd27eb0GDTrvFDc9zt1yh7cY3DM9G2+tA6 NsMA== 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=6b+xSWCjOgkLR2+CepWU/lJarunNfvASausVnReYjcM=; b=Z3kDvkFmFTnrDmLxwaB/8rvBrJNeL0/MARAMuhVedPXjAAn7P90/qzBNF5jD5FblOr 8fShLK6qQPi3YzdQZ7DD32Ym+x1+e9PjoibZIyRUB1xEndfDm9VIVtpD23zbKskfTfMu UqoigFnrJRlChWLWAhMIxCm66apTYFwPPPVDDX3WLIXNKWPk4I39shdAD55TDaDRJVq4 Zdk11JxCTrQD8W9XPh1uq0k3KgX0SLhDKhR66/KZSUMkXBpiVlnm/F6XZNnelzuEuPp+ lJDDpfbbHMZyR/6xQZDk2CxYAR1iKMDxdG7jspX2cE7Z3dzlTOqFBO1yjaduJDi3b1h+ md2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=fGyi+eah; 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 x11si15675153pll.214.2019.12.15.19.43.19; Sun, 15 Dec 2019 19:43:20 -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=fGyi+eah; 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 4E52C7F88A; Mon, 16 Dec 2019 03:43:01 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pj1-f41.google.com (mail-pj1-f41.google.com [209.85.216.41]) by mail.openembedded.org (Postfix) with ESMTP id E51D77F817 for ; Mon, 16 Dec 2019 03:42:13 +0000 (UTC) Received: by mail-pj1-f41.google.com with SMTP id r11so2339453pjp.12 for ; Sun, 15 Dec 2019 19:42:15 -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=Zd/eDzVCau/hG0MdVrW9gA1WO9Os06OpI6jvBnwgm6I=; b=fGyi+eah+BgvwLGChDsUPQ9uw86skDrdSxzo9BeebI6s/Xj1WVlPBQ/G1V55/FNhfX YVEWjReN/WyQpwQadKgqW6JE6I9yQMJecP5dzpOnnlBkHZSZKlJVTVSkPt+J+iZ/SrND AsIUgL97dRxOtlVApXekRti6HPH0lXexrmjw+D/8zB9IOf7LwordZcH4OPmG4NsdNOzU DOjFLP+X+bLjrvb+hVcYXJJwU8EGEfPK3s0MxfIby56WhomV/bFiMMX224HBDAjQHk8C exz/cLY6AE2RKCROdibFmygEj+m7qCGPwwNA9au/q3qmkyayoMsinFRE1yeTnoR6YzI1 tztQ== 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=Zd/eDzVCau/hG0MdVrW9gA1WO9Os06OpI6jvBnwgm6I=; b=B2rD4VfcEA8fZ5A2NuTzBnudOBf8i1ZZsOP/TT6aVn+FfAPhjAYuzf2abC93xJPUro XA9VqMoiL1l97p2RrNHp2w7mLbOgNlY3zTNiKoTg/annUjLcXS2SDd1qW9PYjUuNBWCg EsXvnLKPwkyRsHKgDjvXESfabMVuUQD9xL16WG4iSY4kd2+fqlEhPFRGJZA2FOXHX1wH E+4sVksGBHLXuoPVrVAXNUJKnRx9Ax+wIRCENPwbQbBXTrG4QRhzwD1Wfz4p1N+160/o gd6owsadMz5PaXSK+JpbF0MTH3XIiGQydowIikdFv6gcDM7KU1jqoWtfsweZlMf0xXhS VFvQ== X-Gm-Message-State: APjAAAVtslE/W01S/rE01bdjhemcoccQuHjciJcte5XjXcKC/tTKnAoj Kc3Bt0YwdlmCcxGCz9zKhASD11XgTMU= X-Received: by 2002:a17:90a:230b:: with SMTP id f11mr15265503pje.124.1576467734512; Sun, 15 Dec 2019 19:42:14 -0800 (PST) Received: from apollo.hsd1.ca.comcast.net ([2601:646:9200:4e0::6563]) by smtp.gmail.com with ESMTPSA id a22sm21336106pfk.108.2019.12.15.19.42.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Dec 2019 19:42:13 -0800 (PST) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Sun, 15 Dec 2019 19:41:55 -0800 Message-Id: <20191216034155.2675900-5-raj.khem@gmail.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20191216034155.2675900-1-raj.khem@gmail.com> References: <20191216034155.2675900-1-raj.khem@gmail.com> MIME-Version: 1.0 Subject: [oe] [meta-oe][PATCH 5/5] libpfm4: Moved here from oe-core 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 Upgrade to 4.10.1 while here oprofile/ppc64 still depends on it Signed-off-by: Khem Raj --- ...Include-poll.h-instead-of-sys-poll.h.patch | 86 +++++++++++++++++++ .../recipes-kernel/libpfm/libpfm4_4.10.1.bb | 31 +++++++ 2 files changed, 117 insertions(+) create mode 100644 meta-oe/recipes-kernel/libpfm/libpfm4/0001-Include-poll.h-instead-of-sys-poll.h.patch create mode 100644 meta-oe/recipes-kernel/libpfm/libpfm4_4.10.1.bb -- 2.24.1 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-oe/recipes-kernel/libpfm/libpfm4/0001-Include-poll.h-instead-of-sys-poll.h.patch b/meta-oe/recipes-kernel/libpfm/libpfm4/0001-Include-poll.h-instead-of-sys-poll.h.patch new file mode 100644 index 0000000000..fe13df2b53 --- /dev/null +++ b/meta-oe/recipes-kernel/libpfm/libpfm4/0001-Include-poll.h-instead-of-sys-poll.h.patch @@ -0,0 +1,86 @@ +From f62b629c1e1e968f90aafbc0cf9116b49eea9d8e Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Sun, 15 Dec 2019 16:24:37 -0800 +Subject: [PATCH] Include poll.h instead of sys/poll.h + +Fixes +error: redirecting incorrect #include to [-Werror,-W#warnings] + +Upstream-Status: Pending +Signed-off-by: Khem Raj +--- + perf_examples/branch_smpl.c | 2 +- + perf_examples/syst_smpl.c | 2 +- + perf_examples/task_attach_timeout.c | 2 +- + perf_examples/task_smpl.c | 2 +- + perf_examples/x86/bts_smpl.c | 2 +- + 5 files changed, 5 insertions(+), 5 deletions(-) + +diff --git a/perf_examples/branch_smpl.c b/perf_examples/branch_smpl.c +index 87cd303..4d16b04 100644 +--- a/perf_examples/branch_smpl.c ++++ b/perf_examples/branch_smpl.c +@@ -32,7 +32,7 @@ + #include + #include + #include +-#include ++#include + #include + #include + #include +diff --git a/perf_examples/syst_smpl.c b/perf_examples/syst_smpl.c +index 04580fd..d059c08 100755 +--- a/perf_examples/syst_smpl.c ++++ b/perf_examples/syst_smpl.c +@@ -33,7 +33,7 @@ + #include + #include + #include +-#include ++#include + #include + #include + #include +diff --git a/perf_examples/task_attach_timeout.c b/perf_examples/task_attach_timeout.c +index 7fc5524..a0367c8 100644 +--- a/perf_examples/task_attach_timeout.c ++++ b/perf_examples/task_attach_timeout.c +@@ -36,7 +36,7 @@ + #include + #include + #include +-#include ++#include + + #include "perf_util.h" + +diff --git a/perf_examples/task_smpl.c b/perf_examples/task_smpl.c +index dcb7481..95c432c 100644 +--- a/perf_examples/task_smpl.c ++++ b/perf_examples/task_smpl.c +@@ -37,7 +37,7 @@ + #include + #include + #include +-#include ++#include + #include + #include + #include +diff --git a/perf_examples/x86/bts_smpl.c b/perf_examples/x86/bts_smpl.c +index 6498776..d66d5e6 100644 +--- a/perf_examples/x86/bts_smpl.c ++++ b/perf_examples/x86/bts_smpl.c +@@ -41,7 +41,7 @@ + #include + #include + #include +-#include ++#include + #include + #include + #include +-- +2.24.1 + diff --git a/meta-oe/recipes-kernel/libpfm/libpfm4_4.10.1.bb b/meta-oe/recipes-kernel/libpfm/libpfm4_4.10.1.bb new file mode 100644 index 0000000000..9b43b4a975 --- /dev/null +++ b/meta-oe/recipes-kernel/libpfm/libpfm4_4.10.1.bb @@ -0,0 +1,31 @@ +SUMMARY = "Monitoring tools exploiting the performance monitoring events" +DESCRIPTION = "This package provides a library, called libpfm4 which is used to develop \ +monitoring tools exploiting the performance monitoring events such as those \ +provided by the Performance Monitoring Unit (PMU) of modern processors." +HOMEPAGE = "http://perfmon2.sourceforge.net/" +BUGTRACKER = "http://sourceforge.net/tracker/?group_id=144822&atid=759953&source=navbar" + +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://COPYING;md5=0de488f3bd4424e308e2e399cb99c788" + +SECTION = "devel" + +COMPATIBLE_HOST = "powerpc64" + +SRC_URI = "${SOURCEFORGE_MIRROR}/perfmon2/${BPN}/libpfm-${PV}.tar.gz \ + file://0001-Include-poll.h-instead-of-sys-poll.h.patch \ + " +SRC_URI[md5sum] = "d8f66cb9bfa7e1434434e0de6409db5b" +SRC_URI[sha256sum] = "c61c575378b5c17ccfc5806761e4038828610de76e2e34fac9f7fa73ba844b49" + +UPSTREAM_CHECK_URI = "http://sourceforge.net/projects/perfmon2/files/libpfm4/" + +EXTRA_OEMAKE = "DESTDIR=\"${D}\" PREFIX=\"${prefix}\" LIBDIR=\"${libdir}\" LDCONFIG=\"true\"" +EXTRA_OEMAKE_append_powerpc = " ARCH=\"powerpc\"" +EXTRA_OEMAKE_append_powerpc64 = " ARCH=\"powerpc\" BITMODE=\"64\"" + +S = "${WORKDIR}/libpfm-${PV}" + +do_install () { + oe_runmake install +}