diff options
-rw-r--r-- | meta/recipes-support/libunwind/libunwind.inc | 23 | ||||
-rw-r--r-- | meta/recipes-support/libunwind/libunwind_1.6.2.bb | 28 |
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 @@ | |||
1 | SUMMARY = "Library for obtaining the call-chain of a program" | ||
2 | DESCRIPTION = "a portable and efficient C programming interface (API) to determine the call-chain of a program" | ||
3 | HOMEPAGE = "http://www.nongnu.org/libunwind" | ||
4 | LICENSE = "MIT" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=2d80c8ed4062b8339b715f90fa68cc9f" | ||
6 | DEPENDS += "libatomic-ops" | ||
7 | DEPENDS:append:libc-musl = " libucontext" | ||
8 | |||
9 | inherit autotools multilib_header | ||
10 | |||
11 | PACKAGECONFIG ??= "" | ||
12 | PACKAGECONFIG[lzma] = "--enable-minidebuginfo,--disable-minidebuginfo,xz" | ||
13 | PACKAGECONFIG[latexdocs] = "--enable-documentation, --disable-documentation, latex2man-native" | ||
14 | |||
15 | EXTRA_OECONF:arm = "--enable-debug-frame" | ||
16 | EXTRA_OECONF:armeb = "--enable-debug-frame" | ||
17 | EXTRA_OECONF:aarch64 = "--enable-debug-frame" | ||
18 | |||
19 | do_install:append () { | ||
20 | oe_multilib_header libunwind.h | ||
21 | } | ||
22 | |||
23 | BBCLASSEXTEND = "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 @@ | |||
1 | require libunwind.inc | 1 | SUMMARY = "Library for obtaining the call-chain of a program" |
2 | DESCRIPTION = "a portable and efficient C programming interface (API) to determine the call-chain of a program" | ||
3 | HOMEPAGE = "http://www.nongnu.org/libunwind" | ||
4 | LICENSE = "MIT" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=2d80c8ed4062b8339b715f90fa68cc9f" | ||
6 | DEPENDS += "libatomic-ops" | ||
7 | DEPENDS:append:libc-musl = " libucontext" | ||
2 | 8 | ||
3 | SRC_URI = "http://download.savannah.nongnu.org/releases/libunwind/libunwind-${PV}.tar.gz \ | 9 | SRC_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 | ||
12 | SRC_URI[sha256sum] = "4a6aec666991fb45d0889c44aede8ad6eb108071c3554fcdff671f9c94794976" | 18 | SRC_URI[sha256sum] = "4a6aec666991fb45d0889c44aede8ad6eb108071c3554fcdff671f9c94794976" |
13 | 19 | ||
20 | inherit autotools multilib_header | ||
21 | |||
22 | COMPATIBLE_HOST:riscv32 = "null" | ||
23 | |||
24 | PACKAGECONFIG ??= "" | ||
25 | PACKAGECONFIG[lzma] = "--enable-minidebuginfo,--disable-minidebuginfo,xz" | ||
26 | PACKAGECONFIG[latexdocs] = "--enable-documentation, --disable-documentation, latex2man-native" | ||
27 | |||
28 | EXTRA_OECONF:arm = "--enable-debug-frame" | ||
29 | EXTRA_OECONF:armeb = "--enable-debug-frame" | ||
30 | EXTRA_OECONF:aarch64 = "--enable-debug-frame" | ||
31 | |||
14 | EXTRA_OECONF:append:libc-musl = " --disable-documentation --disable-tests --enable-static" | 32 | EXTRA_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/ |
17 | ARM_INSTRUCTION_SET:armv4 = "arm" | 35 | ARM_INSTRUCTION_SET:armv4 = "arm" |
18 | ARM_INSTRUCTION_SET:armv5 = "arm" | 36 | ARM_INSTRUCTION_SET:armv5 = "arm" |
19 | 37 | ||
20 | COMPATIBLE_HOST:riscv32 = "null" | ||
21 | |||
22 | LDFLAGS += "-Wl,-z,relro,-z,now ${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', ' -fuse-ld=bfd ', '', d)}" | 38 | LDFLAGS += "-Wl,-z,relro,-z,now ${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', ' -fuse-ld=bfd ', '', d)}" |
23 | 39 | ||
24 | SECURITY_LDFLAGS:append:libc-musl = " -lssp_nonshared" | 40 | SECURITY_LDFLAGS:append:libc-musl = " -lssp_nonshared" |
25 | CACHED_CONFIGUREVARS:append:libc-musl = " LDFLAGS='${LDFLAGS} -lucontext'" | 41 | CACHED_CONFIGUREVARS:append:libc-musl = " LDFLAGS='${LDFLAGS} -lucontext'" |
42 | |||
43 | do_install:append () { | ||
44 | oe_multilib_header libunwind.h | ||
45 | } | ||
46 | |||
47 | BBCLASSEXTEND = "native" | ||