summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@arm.com>2024-01-17 15:07:18 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-01-19 00:16:42 +0000
commite85f0c247fa21660c7be489f359281896331a717 (patch)
tree65499b8ed771d25d33abb6f317b9ce457e14639b
parent75b340c29c5aeb20c7d3f36e1db295d8e60c4c33 (diff)
downloadpoky-e85f0c247fa21660c7be489f359281896331a717.tar.gz
libunwind: merge .inc and .bb
There's no need to these to be split, so merge them together. (From OE-Core rev: e0d7f27e7da8c2d052e3c761d41305348d898458) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-support/libunwind/libunwind.inc23
-rw-r--r--meta/recipes-support/libunwind/libunwind_1.6.2.bb28
2 files changed, 25 insertions, 26 deletions
diff --git a/meta/recipes-support/libunwind/libunwind.inc b/meta/recipes-support/libunwind/libunwind.inc
deleted file mode 100644
index bf74f9fa3c..0000000000
--- a/meta/recipes-support/libunwind/libunwind.inc
+++ /dev/null
@@ -1,23 +0,0 @@
1SUMMARY = "Library for obtaining the call-chain of a program"
2DESCRIPTION = "a portable and efficient C programming interface (API) to determine the call-chain of a program"
3HOMEPAGE = "http://www.nongnu.org/libunwind"
4LICENSE = "MIT"
5LIC_FILES_CHKSUM = "file://COPYING;md5=2d80c8ed4062b8339b715f90fa68cc9f"
6DEPENDS += "libatomic-ops"
7DEPENDS:append:libc-musl = " libucontext"
8
9inherit autotools multilib_header
10
11PACKAGECONFIG ??= ""
12PACKAGECONFIG[lzma] = "--enable-minidebuginfo,--disable-minidebuginfo,xz"
13PACKAGECONFIG[latexdocs] = "--enable-documentation, --disable-documentation, latex2man-native"
14
15EXTRA_OECONF:arm = "--enable-debug-frame"
16EXTRA_OECONF:armeb = "--enable-debug-frame"
17EXTRA_OECONF:aarch64 = "--enable-debug-frame"
18
19do_install:append () {
20 oe_multilib_header libunwind.h
21}
22
23BBCLASSEXTEND = "native"
diff --git a/meta/recipes-support/libunwind/libunwind_1.6.2.bb b/meta/recipes-support/libunwind/libunwind_1.6.2.bb
index d67862608c..650e2c9ec4 100644
--- a/meta/recipes-support/libunwind/libunwind_1.6.2.bb
+++ b/meta/recipes-support/libunwind/libunwind_1.6.2.bb
@@ -1,4 +1,10 @@
1require libunwind.inc 1SUMMARY = "Library for obtaining the call-chain of a program"
2DESCRIPTION = "a portable and efficient C programming interface (API) to determine the call-chain of a program"
3HOMEPAGE = "http://www.nongnu.org/libunwind"
4LICENSE = "MIT"
5LIC_FILES_CHKSUM = "file://COPYING;md5=2d80c8ed4062b8339b715f90fa68cc9f"
6DEPENDS += "libatomic-ops"
7DEPENDS:append:libc-musl = " libucontext"
2 8
3SRC_URI = "http://download.savannah.nongnu.org/releases/libunwind/libunwind-${PV}.tar.gz \ 9SRC_URI = "http://download.savannah.nongnu.org/releases/libunwind/libunwind-${PV}.tar.gz \
4 file://0003-x86-Stub-out-x86_local_resume.patch \ 10 file://0003-x86-Stub-out-x86_local_resume.patch \
@@ -11,15 +17,31 @@ SRC_URI:append:libc-musl = " file://musl-header-conflict.patch"
11 17
12SRC_URI[sha256sum] = "4a6aec666991fb45d0889c44aede8ad6eb108071c3554fcdff671f9c94794976" 18SRC_URI[sha256sum] = "4a6aec666991fb45d0889c44aede8ad6eb108071c3554fcdff671f9c94794976"
13 19
20inherit autotools multilib_header
21
22COMPATIBLE_HOST:riscv32 = "null"
23
24PACKAGECONFIG ??= ""
25PACKAGECONFIG[lzma] = "--enable-minidebuginfo,--disable-minidebuginfo,xz"
26PACKAGECONFIG[latexdocs] = "--enable-documentation, --disable-documentation, latex2man-native"
27
28EXTRA_OECONF:arm = "--enable-debug-frame"
29EXTRA_OECONF:armeb = "--enable-debug-frame"
30EXTRA_OECONF:aarch64 = "--enable-debug-frame"
31
14EXTRA_OECONF:append:libc-musl = " --disable-documentation --disable-tests --enable-static" 32EXTRA_OECONF:append:libc-musl = " --disable-documentation --disable-tests --enable-static"
15 33
16# http://errors.yoctoproject.org/Errors/Details/20487/ 34# http://errors.yoctoproject.org/Errors/Details/20487/
17ARM_INSTRUCTION_SET:armv4 = "arm" 35ARM_INSTRUCTION_SET:armv4 = "arm"
18ARM_INSTRUCTION_SET:armv5 = "arm" 36ARM_INSTRUCTION_SET:armv5 = "arm"
19 37
20COMPATIBLE_HOST:riscv32 = "null"
21
22LDFLAGS += "-Wl,-z,relro,-z,now ${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', ' -fuse-ld=bfd ', '', d)}" 38LDFLAGS += "-Wl,-z,relro,-z,now ${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', ' -fuse-ld=bfd ', '', d)}"
23 39
24SECURITY_LDFLAGS:append:libc-musl = " -lssp_nonshared" 40SECURITY_LDFLAGS:append:libc-musl = " -lssp_nonshared"
25CACHED_CONFIGUREVARS:append:libc-musl = " LDFLAGS='${LDFLAGS} -lucontext'" 41CACHED_CONFIGUREVARS:append:libc-musl = " LDFLAGS='${LDFLAGS} -lucontext'"
42
43do_install:append () {
44 oe_multilib_header libunwind.h
45}
46
47BBCLASSEXTEND = "native"