From 269ebab3f03340a68c9c064ba2cd9842d481be33 Mon Sep 17 00:00:00 2001 From: Abdoulaye Walsimou Gaye Date: Sun, 6 Jan 2013 15:29:45 +0100 Subject: Packages: development: add libunwind-1.1 Signed-off-by: Abdoulaye Walsimou Gaye --- packages/development/development.kconfig | 7 ++- packages/development/development.mk | 4 ++ packages/development/libunwind/libunwind.kconfig | 55 ++++++++++++++++++++++++ packages/development/libunwind/libunwind.mk | 38 ++++++++++++++++ 4 files changed, 102 insertions(+), 2 deletions(-) create mode 100644 packages/development/libunwind/libunwind.kconfig create mode 100644 packages/development/libunwind/libunwind.mk 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 -# \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 . +# +################################################################################ +# +# \file libunwind.kconfig +# \brief libunwind.kconfig of Embtoolkit +# \author Abdoulaye Walsimou GAYE +# \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 . +# +################################################################################ +# +# \file libunwind.mk +# \brief libunwind.mk of Embtoolkit +# \author Abdoulaye Walsimou GAYE +# \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 -- cgit v1.2.3