summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-support/libunwind/libunwind.inc30
-rw-r--r--meta/recipes-support/libunwind/libunwind_1.1.bb4
2 files changed, 34 insertions, 0 deletions
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 @@
1DESCRIPTION = "a portable and efficient C programming interface (API) to determine the call-chain of a program"
2HOMEPAGE = "http://www.nongnu.org/libunwind"
3LICENSE = "MIT"
4LIC_FILES_CHKSUM = "file://LICENSE;md5=3fced11d6df719b47505837a51c16ae5"
5
6SRC_URI = "${SAVANNAH_NONGNU_MIRROR}/${BPN}/${BPN}-${PV}.tar.gz"
7
8inherit autotools
9
10PACKAGECONFIG ??= ""
11PACKAGECONFIG[lzma] = "--enable-minidebuginfo,--disable-minidebuginfo,lzma"
12
13EXTRA_OECONF_arm = "--enable-debug-frame"
14
15CFLAGS += "${ATOMICOPS}"
16ATOMICOPS_armv5 = "-DAO_USE_PTHREAD_DEFS=1"
17ATOMICOPS_armv4 = "-DAO_USE_PTHREAD_DEFS=1"
18ATOMICOPS ?= ""
19
20LDFLAGS += "${LIBATOMICS}"
21LIBATOMICS_armv5 = "-latomic_ops"
22LIBATOMICS_armv4 = "-latomic_ops"
23LIBATOMICS ?= ""
24
25DEPENDS += "${DEPLIBATOMICS}"
26DEPLIBATOMICS_armv5 = "libatomics-ops"
27DEPLIBATOMICS_armv4 = "libatomics-ops"
28DEPLIBATOMICS ?= ""
29
30BBCLASSEXTEND = "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 @@
1require libunwind.inc
2
3SRC_URI[md5sum] = "fb4ea2f6fbbe45bf032cd36e586883ce"
4SRC_URI[sha256sum] = "9dfe0fcae2a866de9d3942c66995e4b460230446887dbdab302d41a8aee8d09a"