summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2013-01-06 15:29:45 +0100
committerAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2013-01-06 15:29:45 +0100
commit269ebab3f03340a68c9c064ba2cd9842d481be33 (patch)
tree90bae4adf9742ab0792d3b48f26ee106933630a5
parent8d0f93a86e09eac6cba52e5f84d46a3ba6d0f02a (diff)
downloadembtoolkit-269ebab3f03340a68c9c064ba2cd9842d481be33.tar.gz
embtoolkit-269ebab3f03340a68c9c064ba2cd9842d481be33.tar.bz2
embtoolkit-269ebab3f03340a68c9c064ba2cd9842d481be33.tar.xz
Packages: development: add libunwind-1.1
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
-rw-r--r--packages/development/development.kconfig7
-rw-r--r--packages/development/development.mk4
-rw-r--r--packages/development/libunwind/libunwind.kconfig55
-rw-r--r--packages/development/libunwind/libunwind.mk38
4 files changed, 102 insertions, 2 deletions
diff --git a/packages/development/development.kconfig b/packages/development/development.kconfig
index 115712f..0cd7c14 100644
--- a/packages/development/development.kconfig
+++ b/packages/development/development.kconfig
@@ -1,6 +1,6 @@
################################################################################
# Embtoolkit
-# Copyright(C) 2009-2012 Abdoulaye Walsimou GAYE.
+# Copyright(C) 2009-2013 Abdoulaye Walsimou GAYE.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -20,7 +20,7 @@
# \file development.kconfig
# \brief development.kconfig of Embtoolkit
# \author Abdoulaye Walsimou GAYE <awg@embtoolkit.org>
-# \date October 2010
+# \date October 2009
################################################################################
# libbsd
@@ -34,3 +34,6 @@ source packages/development/libnih/libnih.kconfig
#libsigsegv
source packages/development/libsigsegv/libsigsegv.kconfig
+
+# libunwind
+source packages/development/libunwind/libunwind.kconfig
diff --git a/packages/development/development.mk b/packages/development/development.mk
index 6a5e0fc..2be5b46 100644
--- a/packages/development/development.mk
+++ b/packages/development/development.mk
@@ -38,3 +38,7 @@ ROOTFS_COMPONENTS-$(CONFIG_EMBTK_HAVE_LIBNIH) += libnih_install
#libsigsegv
include packages/development/libsigsegv/libsigsegv.mk
ROOTFS_COMPONENTS-$(CONFIG_EMBTK_HAVE_LIBSIGSEGV) += libsigsegv_install
+
+# libunwind
+include packages/development/libunwind/libunwind.mk
+ROOTFS_COMPONENTS-$(CONFIG_EMBTK_HAVE_LIBUNWIND) += libunwind_install
diff --git a/packages/development/libunwind/libunwind.kconfig b/packages/development/libunwind/libunwind.kconfig
new file mode 100644
index 0000000..3d58454
--- /dev/null
+++ b/packages/development/libunwind/libunwind.kconfig
@@ -0,0 +1,55 @@
+################################################################################
+# Embtoolkit
+# Copyright(C) 2013 Abdoulaye Walsimou GAYE.
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+################################################################################
+#
+# \file libunwind.kconfig
+# \brief libunwind.kconfig of Embtoolkit
+# \author Abdoulaye Walsimou GAYE <awg@embtoolkit.org>
+# \date January 2013
+################################################################################
+
+config EMBTK_HAVE_LIBUNWIND
+ bool "Have libunwind"
+ help
+ libunwind is a portable and efficient C programming interface (API) to
+ determine the call-chain of a program.
+ The API additionally provides the means to manipulate the preserved
+ (callee-saved) state of each call-frame and to resume execution at any
+ point in the call-chain (non-local goto). The API supports both local
+ (same-process) and remote (across-process) operation.
+ As such, the API is useful in a number of applications. Some examples
+ include: exception handling, debuggers, introspection, setjmp().
+
+choice
+ prompt "libunwind version you wish"
+ depends on EMBTK_HAVE_LIBUNWIND
+ help
+ Here you can choose which version of libunwind you want to use.
+
+ config EMBTK_LIBUNWIND_VERSION_1_1
+ bool "libunwind-1.1"
+endchoice
+
+config EMBTK_LIBUNWIND_VERSION_STRING
+ string
+ default "1.1" if EMBTK_LIBUNWIND_VERSION_1_1
+
+config EMBTK_LIBUNWIND_NEED_PATCH
+ bool
+config EMBTK_LIBUNWIND_NEED_AUTORECONF
+ bool
diff --git a/packages/development/libunwind/libunwind.mk b/packages/development/libunwind/libunwind.mk
new file mode 100644
index 0000000..989f5ad
--- /dev/null
+++ b/packages/development/libunwind/libunwind.mk
@@ -0,0 +1,38 @@
+################################################################################
+# Embtoolkit
+# Copyright(C) 2009-2012 Abdoulaye Walsimou GAYE.
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+################################################################################
+#
+# \file libunwind.mk
+# \brief libunwind.mk of Embtoolkit
+# \author Abdoulaye Walsimou GAYE <awg@embtoolkit.org>
+# \date December 2009
+################################################################################
+
+LIBUNWIND_NAME := libunwind
+LIBUNWIND_VERSION := $(call embtk_get_pkgversion,libunwind)
+LIBUNWIND_SITE := http://download.savannah.nongnu.org/releases/libunwind
+LIBUNWIND_PACKAGE := libunwind-$(LIBUNWIND_VERSION).tar.gz
+LIBUNWIND_SRC_DIR := $(embtk_pkgb)/libunwind-$(LIBUNWIND_VERSION)
+LIBUNWIND_BUILD_DIR := $(embtk_pkgb)/libunwind-$(LIBUNWIND_VERSION)
+
+LIBUNWIND_INCLUDES := libunwind*.h
+LIBUNWIND_LIBS := libunwind*
+LIBUNWIND_PKGCONFIGS := libunwind*.pc
+
+LIBUNWIND_CONFIGURE_OPTS := --enable-cxx-exceptions --disable-coredump
+LIBUNWIND_CONFIGURE_OPTS += --enable-static --disable-shared