From 47abc67e066b0db8caadaa9e2b9ad49e26277f85 Mon Sep 17 00:00:00 2001 From: Abdoulaye Walsimou Gaye Date: Thu, 18 Sep 2014 19:38:22 +0200 Subject: Toolchain: New ltrace: add it among addons Signed-off-by: Abdoulaye Walsimou Gaye --- core/toolchain/addons.mk | 3 ++ core/toolchain/addons/ltrace/ltrace.kconfig | 61 +++++++++++++++++++++++++++++ core/toolchain/addons/ltrace/ltrace.mk | 51 ++++++++++++++++++++++++ 3 files changed, 115 insertions(+) create mode 100755 core/toolchain/addons/ltrace/ltrace.kconfig create mode 100755 core/toolchain/addons/ltrace/ltrace.mk (limited to 'core/toolchain') 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 . +# +################################################################################ +# +# \file ltrace.kconfig +# \brief ltrace.kconfig of Embtoolkit +# \author Abdoulaye Walsimou GAYE +# \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 . +# +################################################################################ +# +# \file ltrace.mk +# \brief ltrace.mk of Embtoolkit +# \author Abdoulaye Walsimou GAYE +# \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 -- cgit v1.2.3