From: Chong Lu Date: Mon, 8 Sep 2014 11:58:24 +0000 (+0100) Subject: libunwind: add recipes X-Git-Tag: 2015-4~1611 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=aefddc23eeda9b46c1bb3ac776c8bff15f89707c;p=openembedded-core.git libunwind: add recipes Add libunwind from meta-oe to oe-core, since perf depends on it. Signed-off-by: Chong Lu Signed-off-by: Saul Wold Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-support/libunwind/libunwind.inc b/meta/recipes-support/libunwind/libunwind.inc new file mode 100644 index 0000000000..b27b9e5994 --- /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 0000000000..bc38e36440 --- /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"