diff options
| author | Khem Raj <raj.khem@gmail.com> | 2021-05-28 17:37:52 -0700 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2021-06-08 11:37:54 -0700 |
| commit | c48de926ac54802df7e1e4b7f91caa4fa4ef45b1 (patch) | |
| tree | a008b3b8fe30b212851797a2c5261ceec380562a /recipes-devtools | |
| parent | 933795217f9142c246c359f92e8320516e5c66a5 (diff) | |
| download | meta-clang-c48de926ac54802df7e1e4b7f91caa4fa4ef45b1.tar.gz | |
libunwind: Install headers and pkgconfig file
This ensures it can replace nongnu libunwind
Use it only when selecting RUNTIME = "llvm"
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'recipes-devtools')
| -rw-r--r-- | recipes-devtools/clang/clang/libunwind.pc.in | 9 | ||||
| -rw-r--r-- | recipes-devtools/clang/common.inc | 1 | ||||
| -rw-r--r-- | recipes-devtools/clang/libcxx_git.bb | 11 |
3 files changed, 21 insertions, 0 deletions
diff --git a/recipes-devtools/clang/clang/libunwind.pc.in b/recipes-devtools/clang/clang/libunwind.pc.in new file mode 100644 index 0000000..a93d676 --- /dev/null +++ b/recipes-devtools/clang/clang/libunwind.pc.in | |||
| @@ -0,0 +1,9 @@ | |||
| 1 | prefix=/usr | ||
| 2 | exec_prefix=/usr | ||
| 3 | libdir=@LIBDIR@ | ||
| 4 | includedir=/usr/include | ||
| 5 | |||
| 6 | Name: libunwind | ||
| 7 | Description: libunwind base library | ||
| 8 | Version: @VERSION@ | ||
| 9 | Libs: -lunwind | ||
diff --git a/recipes-devtools/clang/common.inc b/recipes-devtools/clang/common.inc index d529c0d..ac96ef5 100644 --- a/recipes-devtools/clang/common.inc +++ b/recipes-devtools/clang/common.inc | |||
| @@ -9,6 +9,7 @@ BASEURI ??= "${LLVM_GIT}/llvm-project;protocol=${LLVM_GIT_PROTOCOL};branch=${BRA | |||
| 9 | SRC_URI = "\ | 9 | SRC_URI = "\ |
| 10 | ${BASEURI} \ | 10 | ${BASEURI} \ |
| 11 | file://llvm-config \ | 11 | file://llvm-config \ |
| 12 | file://libunwind.pc.in \ | ||
| 12 | file://0001-lldb-Add-lxml2-to-linker-cmdline-of-xml-is-found.patch \ | 13 | file://0001-lldb-Add-lxml2-to-linker-cmdline-of-xml-is-found.patch \ |
| 13 | file://0002-libcxxabi-Find-libunwind-headers-when-LIBCXXABI_LIBU.patch \ | 14 | file://0002-libcxxabi-Find-libunwind-headers-when-LIBCXXABI_LIBU.patch \ |
| 14 | file://0003-compiler-rt-support-a-new-embedded-linux-target.patch \ | 15 | file://0003-compiler-rt-support-a-new-embedded-linux-target.patch \ |
diff --git a/recipes-devtools/clang/libcxx_git.bb b/recipes-devtools/clang/libcxx_git.bb index dd87f1d..94e9311 100644 --- a/recipes-devtools/clang/libcxx_git.bb +++ b/recipes-devtools/clang/libcxx_git.bb | |||
| @@ -70,5 +70,16 @@ ALLOW_EMPTY_${PN} = "1" | |||
| 70 | 70 | ||
| 71 | PROVIDES += "${@bb.utils.contains("RUNTIME", "llvm", "libunwind", "", d)}" | 71 | PROVIDES += "${@bb.utils.contains("RUNTIME", "llvm", "libunwind", "", d)}" |
| 72 | 72 | ||
| 73 | |||
| 74 | do_install_append() { | ||
| 75 | if ${@bb.utils.contains("RUNTIME", "llvm", "true", "false", d)} | ||
| 76 | then | ||
| 77 | install -Dm 0644 ${S}/libunwind/include/libunwind.h ${S}/libunwind/include/__libunwind_config.h ${D}${includedir} | ||
| 78 | install -Dm 0644 ${S}/libunwind/include/unwind.h ${D}${includedir}/unwind.h | ||
| 79 | install -d ${D}${libdir}/pkgconfig | ||
| 80 | sed -e 's,@LIBDIR@,${libdir},g;s,@VERSION@,${PV},g' ${S}/../libunwind.pc.in > ${D}${libdir}/pkgconfig/libunwind.pc | ||
| 81 | fi | ||
| 82 | } | ||
| 83 | |||
| 73 | BBCLASSEXTEND = "native nativesdk" | 84 | BBCLASSEXTEND = "native nativesdk" |
| 74 | TOOLCHAIN = "clang" | 85 | TOOLCHAIN = "clang" |
