summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2014-09-18 19:38:22 +0200
committerAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2014-09-18 19:38:22 +0200
commit47abc67e066b0db8caadaa9e2b9ad49e26277f85 (patch)
treed46e9cab858dbba89066a2eff65bc75c2f0f4ebf
parent76cc246aa8a9dc10ddcd3eee7eb219f2a4593ebc (diff)
downloadembtoolkit-47abc67e066b0db8caadaa9e2b9ad49e26277f85.tar.gz
embtoolkit-47abc67e066b0db8caadaa9e2b9ad49e26277f85.tar.bz2
embtoolkit-47abc67e066b0db8caadaa9e2b9ad49e26277f85.tar.xz
Toolchain: New ltrace: add it among addons
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
-rw-r--r--Kconfig1
-rw-r--r--core/toolchain/addons.mk3
-rwxr-xr-xcore/toolchain/addons/ltrace/ltrace.kconfig61
-rwxr-xr-xcore/toolchain/addons/ltrace/ltrace.mk51
4 files changed, 116 insertions, 0 deletions
diff --git a/Kconfig b/Kconfig
index 59afaa1..1597b0e 100644
--- a/Kconfig
+++ b/Kconfig
@@ -67,6 +67,7 @@ endmenu
menu "Toolchain Addons - Debugging systems"
source "core/toolchain/addons/gdb/gdb.kconfig"
source "packages/misc/ncurses/ncurses.kconfig"
+source "core/toolchain/addons/ltrace/ltrace.kconfig"
source "core/toolchain/addons/strace/strace.kconfig"
endmenu
diff --git a/core/toolchain/addons.mk b/core/toolchain/addons.mk
index fcf4817..e52b366 100644
--- a/core/toolchain/addons.mk
+++ b/core/toolchain/addons.mk
@@ -68,6 +68,9 @@ endef
#
embtk_pkgincdir := core/toolchain/addons
+# ltrace
+$(call embtk_include_xtoolpkg,ltrace,toolchain_addons_deps)
+
# strace
$(call embtk_include_xtoolpkg,strace,toolchain_addons_deps)
diff --git a/core/toolchain/addons/ltrace/ltrace.kconfig b/core/toolchain/addons/ltrace/ltrace.kconfig
new file mode 100755
index 0000000..fd02a7c
--- /dev/null
+++ b/core/toolchain/addons/ltrace/ltrace.kconfig
@@ -0,0 +1,61 @@
+################################################################################
+# Embtoolkit
+# Copyright(C) 2009-2014 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 ltrace.kconfig
+# \brief ltrace.kconfig of Embtoolkit
+# \author Abdoulaye Walsimou GAYE <awg@embtoolkit.org>
+# \date July 2014
+################################################################################
+
+config EMBTK_HAVE_LTRACE
+ bool "Have ltrace"
+ depends on EMBTK_OS_LINUX
+ depends on EMBTK_ARCH_ARM
+ select EMBTK_HAVE_LIBELF
+ help
+ ltrace is a debugging utility in Linux, used to display the calls a
+ userland application makes to shared libraries.
+
+choice
+ prompt "ltrace version you wish"
+ depends on EMBTK_HAVE_LTRACE
+ help
+ Here you can choose which version of ltrace you want to use.
+
+ config EMBTK_LTRACE_VERSION_0_8
+ bool "ltrace-embtk-pre0.8"
+ select EMBTK_LTRACE_NEED_PATCH
+ config EMBTK_LTRACE_VERSION_GIT
+ bool "ltrace-git"
+endchoice
+
+config EMBTK_LTRACE_VERSION_STRING
+ string
+ default "embtk-pre0.8" if EMBTK_LTRACE_VERSION_0_8
+ default "git" if EMBTK_LTRACE_VERSION_GIT
+
+config EMBTK_LTRACE_CATEGORY
+ string
+ depends on EMBTK_HAVE_LTRACE
+ default "toolchain"
+
+config EMBTK_LTRACE_NEED_PATCH
+ bool
+config EMBTK_LTRACE_NEED_AUTORECONF
+ bool
diff --git a/core/toolchain/addons/ltrace/ltrace.mk b/core/toolchain/addons/ltrace/ltrace.mk
new file mode 100755
index 0000000..4e3ee60
--- /dev/null
+++ b/core/toolchain/addons/ltrace/ltrace.mk
@@ -0,0 +1,51 @@
+################################################################################
+# Embtoolkit
+# Copyright(C) 2009-2014 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 ltrace.mk
+# \brief ltrace.mk of Embtoolkit
+# \author Abdoulaye Walsimou GAYE <awg@embtoolkit.org>
+# \date July 2014
+################################################################################
+
+LTRACE_NAME := ltrace
+LTRACE_VERSION := $(call embtk_get_pkgversion,ltrace)
+LTRACE_SITE := $(embtk_ftp/packages-mirror)
+LTRACE_GIT_SITE := git://git.debian.org/git/collab-maint/ltrace.git
+LTRACE_PACKAGE := ltrace-$(LTRACE_VERSION).tar.bz2
+LTRACE_SRC_DIR := $(embtk_pkgb)/ltrace-$(LTRACE_VERSION)
+LTRACE_BUILD_DIR := $(embtk_pkgb)/ltrace-$(LTRACE_VERSION)-build
+
+LTRACE_BINS := ltrace
+LTRACE_SHARES := doc/ltrace ltrace man/man*/ltrace*
+
+LTRACE_CONFIGURE_OPTS := --disable-werror --with-elfutils=no
+
+LTRACE_DEPS := libelf_install
+
+define embtk_beforeinstall_ltrace
+ for d in config/autoconf config/m4; do \
+ mkdir -p $(call __embtk_pkg_srcdir,ltrace)/$$d; \
+ done
+endef
+
+define embtk_postinstall_ltrace
+ rm -rf $(embtk_rootfs)/usr/share/ltrace
+ install -d $(embtk_rootfs)/usr/share/ltrace
+ cp -R $(embtk_sysroot)/usr/share/ltrace/* $(embtk_rootfs)/usr/share/ltrace
+endef