From: Chong Lu <Chong.Lu@windriver.com>
To: <openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH 1/2] libunwind: add recipes
Date: Fri, 29 Aug 2014 17:14:26 +0800 [thread overview]
Message-ID: <54004472.3000601@windriver.com> (raw)
In-Reply-To: <36a722d493c52d16f6d55ed07df82e865e7f3db7.1409301362.git.Chong.Lu@windriver.com>
On 08/29/2014 04:38 PM, Chong Lu wrote:
> Add libunwind from meta-oe to oe-core, since perf depends on it.
To be clearly, adding this recipes to perf allows it to do stack traces
on ARM - thumb2 and MIPS targets.
>
> Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
> ---
> meta/recipes-support/libunwind/libunwind.inc | 30 +++++++++++++++++++++++++
> meta/recipes-support/libunwind/libunwind_1.1.bb | 4 ++++
> 2 files changed, 34 insertions(+)
> create mode 100644 meta/recipes-support/libunwind/libunwind.inc
> create mode 100644 meta/recipes-support/libunwind/libunwind_1.1.bb
>
> diff --git a/meta/recipes-support/libunwind/libunwind.inc b/meta/recipes-support/libunwind/libunwind.inc
> new file mode 100644
> index 0000000..b27b9e5
> --- /dev/null
> +++ b/meta/recipes-support/libunwind/libunwind.inc
> @@ -0,0 +1,30 @@
> +DESCRIPTION = "a portable and efficient C programming interface (API) to determine the call-chain of a program"
> +HOMEPAGE = "http://www.nongnu.org/libunwind"
> +LICENSE = "MIT"
> +LIC_FILES_CHKSUM = "file://LICENSE;md5=3fced11d6df719b47505837a51c16ae5"
> +
> +SRC_URI = "${SAVANNAH_NONGNU_MIRROR}/${BPN}/${BPN}-${PV}.tar.gz"
> +
> +inherit autotools
> +
> +PACKAGECONFIG ??= ""
> +PACKAGECONFIG[lzma] = "--enable-minidebuginfo,--disable-minidebuginfo,lzma"
> +
> +EXTRA_OECONF_arm = "--enable-debug-frame"
> +
> +CFLAGS += "${ATOMICOPS}"
> +ATOMICOPS_armv5 = "-DAO_USE_PTHREAD_DEFS=1"
> +ATOMICOPS_armv4 = "-DAO_USE_PTHREAD_DEFS=1"
> +ATOMICOPS ?= ""
> +
> +LDFLAGS += "${LIBATOMICS}"
> +LIBATOMICS_armv5 = "-latomic_ops"
> +LIBATOMICS_armv4 = "-latomic_ops"
> +LIBATOMICS ?= ""
> +
> +DEPENDS += "${DEPLIBATOMICS}"
> +DEPLIBATOMICS_armv5 = "libatomics-ops"
> +DEPLIBATOMICS_armv4 = "libatomics-ops"
> +DEPLIBATOMICS ?= ""
> +
> +BBCLASSEXTEND = "native"
> diff --git a/meta/recipes-support/libunwind/libunwind_1.1.bb b/meta/recipes-support/libunwind/libunwind_1.1.bb
> new file mode 100644
> index 0000000..bc38e36
> --- /dev/null
> +++ b/meta/recipes-support/libunwind/libunwind_1.1.bb
> @@ -0,0 +1,4 @@
> +require libunwind.inc
> +
> +SRC_URI[md5sum] = "fb4ea2f6fbbe45bf032cd36e586883ce"
> +SRC_URI[sha256sum] = "9dfe0fcae2a866de9d3942c66995e4b460230446887dbdab302d41a8aee8d09a"
next prev parent reply other threads:[~2014-08-29 9:14 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-29 8:38 [PATCH 0/2] perf: add libunwind support Chong Lu
2014-08-29 8:38 ` [PATCH 1/2] libunwind: add recipes Chong Lu
2014-08-29 9:14 ` Chong Lu [this message]
2014-09-09 6:26 ` Chong Lu
2014-08-29 8:38 ` [PATCH 2/2] perf: add libunwind support Chong Lu
2014-09-09 6:27 ` Chong Lu
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=54004472.3000601@windriver.com \
--to=chong.lu@windriver.com \
--cc=openembedded-core@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