[Buildroot] [PATCH 2/4] package/libexecinfo: new package
Bernd Kuhls
bernd.kuhls at t-online.de
Thu Dec 30 20:55:42 UTC 2021
Provides execinfo.h for non-glibc toolchains.
Signed-off-by: Bernd Kuhls <bernd.kuhls at t-online.de>
---
package/Config.in | 1 +
package/libexecinfo/Config.in | 7 +++++++
package/libexecinfo/libexecinfo.hash | 3 +++
package/libexecinfo/libexecinfo.mk | 30 ++++++++++++++++++++++++++++
4 files changed, 41 insertions(+)
create mode 100644 package/libexecinfo/Config.in
create mode 100644 package/libexecinfo/libexecinfo.hash
create mode 100644 package/libexecinfo/libexecinfo.mk
diff --git a/package/Config.in b/package/Config.in
index 8c336ba85a..fb56c9ce75 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1966,6 +1966,7 @@ menu "Other"
source "package/libev/Config.in"
source "package/libevdev/Config.in"
source "package/libevent/Config.in"
+ source "package/libexecinfo/Config.in"
source "package/libffi/Config.in"
source "package/libgee/Config.in"
source "package/libgeos/Config.in"
diff --git a/package/libexecinfo/Config.in b/package/libexecinfo/Config.in
new file mode 100644
index 0000000000..473a4f7181
--- /dev/null
+++ b/package/libexecinfo/Config.in
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_LIBEXECINFO
+ bool "libexecinfo"
+ depends on !BR2_TOOLCHAIN_USES_GLIBC
+ help
+ Library for inspecting program's backtrace
+
+ https://github.com/mikroskeem/libexecinfo
diff --git a/package/libexecinfo/libexecinfo.hash b/package/libexecinfo/libexecinfo.hash
new file mode 100644
index 0000000000..4719b7699e
--- /dev/null
+++ b/package/libexecinfo/libexecinfo.hash
@@ -0,0 +1,3 @@
+# Locally computed
+sha256 0462304192fab38c39a376594db1c8bdab4ebda2736bf54f01715917f430611e libexecinfo-1.1-3.tar.gz
+sha256 46fbc8e6849a164c4ba8fd5875748bde302bf3cd713622af0e51b4e10344f516 execinfo.h
diff --git a/package/libexecinfo/libexecinfo.mk b/package/libexecinfo/libexecinfo.mk
new file mode 100644
index 0000000000..85f4fd8c10
--- /dev/null
+++ b/package/libexecinfo/libexecinfo.mk
@@ -0,0 +1,30 @@
+################################################################################
+#
+# libexecinfo
+#
+################################################################################
+
+LIBEXECINFO_VERSION = 1.1-3
+LIBEXECINFO_SITE = $(call github,mikroskeem,libexecinfo,$(LIBEXECINFO_VERSION))
+LIBEXECINFO_LICENSE = BSD-2-Clause
+LIBEXECINFO_LICENSE_FILES = execinfo.h
+LIBEXECINFO_INSTALL_STAGING = YES
+
+define LIBEXECINFO_BUILD_CMDS
+ $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS) \
+ EXECINFO_CFLAGS="$(TARGET_CFLAGS) -c"
+endef
+
+define LIBEXECINFO_INSTALL_STAGING_CMDS
+ $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS) \
+ EXECINFO_CFLAGS="$(TARGET_CFLAGS) -c" \
+ DESTDIR="$(STAGING_DIR)" PREFIX=/usr install
+endef
+
+define LIBEXECINFO_INSTALL_TARGET_CMDS
+ $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS) \
+ EXECINFO_CFLAGS="$(TARGET_CFLAGS) -c" \
+ DESTDIR="$(TARGET_DIR)" PREFIX=/usr install
+endef
+
+$(eval $(generic-package))
--
2.30.2
More information about the buildroot
mailing list