Openembedded Devel Discussions
 help / color / mirror / Atom feed
From: Martin Jansa <martin.jansa@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [PATCH v2] tiptop: Add new recipe
Date: Fri, 21 Nov 2014 15:05:44 +0100	[thread overview]
Message-ID: <20141121140544.GH2163@jama> (raw)
In-Reply-To: <1416473941-23508-1-git-send-email-qianl.fnst@cn.fujitsu.com>

[-- Attachment #1: Type: text/plain, Size: 4290 bytes --]

On Thu, Nov 20, 2014 at 04:59:01PM +0800, Qian Lei wrote:
> Tiptop is a performance monitoring tool for Linux. It provides a
> dynamic real-time view of the tasks running in the system. Tiptop
> is very similar to the top utility, but most of the information
> displayed comes from hardware counters.
> 
> Signed-off-by: Qian Lei <qianl.fnst@cn.fujitsu.com>
> ---
>  .../files/tiptop-remove-path-of-libxml2.patch      | 28 ++++++++++++++++++++++
>  meta-oe/recipes-extended/tiptop/tiptop_2.2.bb      | 15 ++++++++++++
>  2 files changed, 43 insertions(+)
>  create mode 100644 meta-oe/recipes-extended/tiptop/files/tiptop-remove-path-of-libxml2.patch
>  create mode 100644 meta-oe/recipes-extended/tiptop/tiptop_2.2.bb
> 
> diff --git a/meta-oe/recipes-extended/tiptop/files/tiptop-remove-path-of-libxml2.patch b/meta-oe/recipes-extended/tiptop/files/tiptop-remove-path-of-libxml2.patch
> new file mode 100644
> index 0000000..7499828
> --- /dev/null
> +++ b/meta-oe/recipes-extended/tiptop/files/tiptop-remove-path-of-libxml2.patch
> @@ -0,0 +1,28 @@
> +From 2f9cb586d6675371f9db8d4b62a4b339625d73a6 Mon Sep 17 00:00:00 2001
> +From: Qian Lei <qianl.fnst@cn.fujitsu.com>
> +Date: Thu, 20 Nov 2014 16:34:47 +0800
> +Subject: [PATCH] tiptop: Remove the include path
> +
> +Remove the path and specify it in .bb file
> +
> +Signed-off-by: Qian Lei <qianl.fnst@cn.fujitsu.com>
> +---
> + configure.ac | 2 +-
> + 1 file changed, 1 insertion(+), 1 deletion(-)
> +
> +diff --git a/configure.ac b/configure.ac
> +index 6a71782..7408f82 100644
> +--- a/configure.ac
> ++++ b/configure.ac
> +@@ -31,7 +31,7 @@ AC_CHECK_LIB([xml2], [xmlParseFile],
> +                   [have_xml2=yes;
> +                   AC_DEFINE([HAVE_LIBXML2], [1], [Define to 1 if you have the `libxml2' library (-lxml2).])
> +                   LIBS="-lxml2 $LIBS"
> +-                  CFLAGS="$CFLAGS -I/usr/include/libxml2"],
> ++                  CFLAGS="$CFLAGS"],
> +              [have_xml2=no])
> + fi
> + 
> +-- 
> +1.8.3.1
> +
> diff --git a/meta-oe/recipes-extended/tiptop/tiptop_2.2.bb b/meta-oe/recipes-extended/tiptop/tiptop_2.2.bb
> new file mode 100644
> index 0000000..d8a0de4
> --- /dev/null
> +++ b/meta-oe/recipes-extended/tiptop/tiptop_2.2.bb
> @@ -0,0 +1,15 @@
> +SUMMARY = "Hardware performance monitoring counters"
> +HOMEPAGE = "http://tiptop.gforge.inria.fr/"
> +LICENSE = "GPLv2"
> +LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
> +DEPENDS = "ncurses libxml2"
> +
> +SRC_URI = "http://tiptop.gforge.inria.fr/releases/${BP}.tar.gz;name=tarball \
> +           file://tiptop-remove-path-of-libxml2.patch \
> +"
> +SRC_URI[tarball.md5sum] = "74255a29acf44569db021b080ad3e3f7"
> +SRC_URI[tarball.sha256sum] = "965cb99b16cb59df78363d83b62877ce8501b0aac1116a86bed8a16aa96b171d"

Drop name=tarball and tarball. prefix.

Fails to build for qemuarm:

| In file included from target.c:17:0:
| target-x86.c: In function 'disp_family_model':
| target-x86.c:54:3: error: unknown register name '%edx' in 'asm'
|    asm("mov $1, %%eax; " /* a into eax */
|    ^
| target-x86.c:54:3: error: unknown register name '%ecx' in 'asm'
| target-x86.c:54:3: error: unknown register name '%ebx' in 'asm'
| target-x86.c:54:3: error: unknown register name '%eax' in 'asm'
| make[1]: *** [target.o] Error 1
| make[1]: *** Waiting for unfinished jobs....
| make[1]: Leaving directory `/home/jenkins/oe/world/shr-core/tmp-glibc/work/armv5te-oe-linux-gnueabi/tiptop/2.2-r0/tiptop-2.2/src'
| make: *** [all] Error 2
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile (log file is located at /home/jenkins/oe/world/shr-core/tmp-glibc/work/armv5te-oe-linux-gnueabi/tiptop/2.2-r0/temp/log.do_compile.7484)
NOTE: recipe tiptop-2.2-r0: task do_compile: Failed


> +
> +EXTRA_OECONF = "CFLAGS="$CFLAGS -I${STAGING_INCDIR}/libxml2""
> +
> +inherit autotools-brokensep
> -- 
> 1.8.3.1
> 
> -- 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 188 bytes --]

  reply	other threads:[~2014-11-21 14:05 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-19  3:44 [meta-oe][PATCH] tiptop: Add new recipe Qian Lei
2014-11-19 14:37 ` Martin Jansa
2014-11-20  8:59   ` Qian Lei
2014-11-20  8:59 ` [PATCH v2] " Qian Lei
2014-11-21 14:05   ` Martin Jansa [this message]
2014-11-27  9:21     ` Qian Lei
2014-11-27  9:19   ` [meta-oe][PATCH v3] " Qian Lei
2014-11-27  9:40     ` Koen Kooi
2014-11-27 12:07       ` Qian Lei

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20141121140544.GH2163@jama \
    --to=martin.jansa@gmail.com \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox