[Buildroot] [PATCH 07/11] package/llvm-project/llvm-libunwind: new package
Lang Daniel
d.lang at abatec.at
Wed Sep 28 14:31:56 UTC 2022
In future versions lld needs the llvm implementation
of libunwind, therefore it is added as a host package.
Signed-off-by: Daniel Lang <d.lang at abatec.at>
---
.../llvm-libunwind/llvm-libunwind.hash | 3 +++
.../llvm-libunwind/llvm-libunwind.mk | 18 ++++++++++++++++++
2 files changed, 21 insertions(+)
create mode 100644 package/llvm-project/llvm-libunwind/llvm-libunwind.hash
create mode 100644 package/llvm-project/llvm-libunwind/llvm-libunwind.mk
diff --git a/package/llvm-project/llvm-libunwind/llvm-libunwind.hash b/package/llvm-project/llvm-libunwind/llvm-libunwind.hash
new file mode 100644
index 0000000000..2d6286a40e
--- /dev/null
+++ b/package/llvm-project/llvm-libunwind/llvm-libunwind.hash
@@ -0,0 +1,3 @@
+# locally computed
+sha256 65af59d7cd4672e2c1793402968f803beb3f91a92ad95f8702610a9a07a5ca10 libunwind-15.0.1.src.tar.xz
+sha256 b5efebcaca80879234098e52d1725e6d9eb8fb96a19fce625d39184b705f7b6d LICENSE.TXT
diff --git a/package/llvm-project/llvm-libunwind/llvm-libunwind.mk b/package/llvm-project/llvm-libunwind/llvm-libunwind.mk
new file mode 100644
index 0000000000..be9965a49a
--- /dev/null
+++ b/package/llvm-project/llvm-libunwind/llvm-libunwind.mk
@@ -0,0 +1,18 @@
+################################################################################
+#
+# llvm-libunwind
+#
+################################################################################
+
+LLVM_LIBUNWIND_VERSION = $(LLVM_PROJECT_VERSION)
+LLVM_LIBUNWIND_SITE = $(LLVM_PROJECT_SITE)
+LLVM_LIBUNWIND_SOURCE = libunwind-$(LLVM_LIBUNWIND_VERSION).src.tar.xz
+LLVM_LIBUNWIND_LICENSE = Apache-2.0 with exceptions
+LLVM_LIBUNWIND_LICENSE_FILES = LICENSE.TXT
+LLVM_LIBUNWIND_SUPPORTS_IN_SOURCE_BUILD = NO
+
+HOST_LLVM_LIBUNWIND_CONF_OPTS += \
+ -DCMAKE_MODULE_PATH="$(HOST_DIR)/lib/cmake/llvm" \
+ -DLIBUNWIND_INSTALL_HEADERS=ON
+
+$(eval $(host-cmake-package))
--
2.25.1
More information about the buildroot
mailing list