2002-07-03 12:46:13 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# valgrind
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
|
valgrind: bump to 3.8.1
Status of the patches:
* valgrind-compiler-check.patch, no longer needed, merged upstream.
* valgrind-dont-include-a-out-header.patch, kept, just refreshed
* valgrind-fix-ccache-support.patch, adapted to the newer Valgrind
release.
* valgrind-largefile.patch, kept, just refreshed
* valgrind-more-ioctls.patch, removed. Most of it was merged
upstream. This patch was anyway a feature addition, so it shouldn't
be kept in Buildroot.
* valgrind-workaround-SIGSEGV-on-PPC.patch, kept as is, just
refreshed.
This bump also fixes the build failure we were experiencing with
Valgrind 3.7.0 against recent Glibc versions.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2012-12-19 14:14:55 +01:00
|
|
|
VALGRIND_VERSION = 3.8.1
|
2011-07-11 22:17:16 +02:00
|
|
|
VALGRIND_SITE = http://valgrind.org/downloads/
|
|
|
|
VALGRIND_SOURCE = valgrind-$(VALGRIND_VERSION).tar.bz2
|
2012-11-13 02:06:02 +01:00
|
|
|
VALGRIND_LICENSE = GPLv2 GFDLv1.2
|
|
|
|
VALGRIND_LICENSE_FILES = COPYING COPYING.DOCS
|
|
|
|
|
2011-07-11 22:17:16 +02:00
|
|
|
VALGRIND_CONF_OPT = --disable-tls
|
|
|
|
|
|
|
|
# On ARM, Valgrind only supports ARMv7, and uses the arch part of the
|
|
|
|
# host tuple to determine whether it's being built for ARMv7 or
|
|
|
|
# not. Therefore, we adjust the host tuple to specify we're on
|
|
|
|
# ARMv7. The valgrind package is guaranteed, through Config.in, to
|
|
|
|
# only be selected on Cortex A8 and Cortex A9 platforms.
|
|
|
|
ifeq ($(BR2_cortex_a8)$(BR2_cortex_a9),y)
|
|
|
|
VALGRIND_CONF_OPT += \
|
2012-06-26 20:25:43 +02:00
|
|
|
--host=$(patsubst arm-%,armv7-%,$(GNU_TARGET_NAME))
|
2011-07-11 22:17:16 +02:00
|
|
|
endif
|
2003-11-12 10:31:12 +01:00
|
|
|
|
2011-07-11 22:17:16 +02:00
|
|
|
define VALGRIND_INSTALL_UCLIBC_SUPP
|
|
|
|
install -D -m 0644 package/valgrind/uclibc.supp $(TARGET_DIR)/usr/lib/valgrind/uclibc.supp
|
|
|
|
endef
|
2002-07-03 12:46:13 +02:00
|
|
|
|
2011-07-11 22:17:16 +02:00
|
|
|
VALGRIND_POST_INSTALL_TARGET_HOOKS += VALGRIND_INSTALL_UCLIBC_SUPP
|
2002-07-03 12:46:13 +02:00
|
|
|
|
2012-03-14 17:50:59 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_VALGRIND_MEMCHECK),)
|
|
|
|
define VALGRIND_REMOVE_MEMCHECK
|
|
|
|
rm -f $(TARGET_DIR)/usr/lib/valgrind/*memcheck*
|
|
|
|
endef
|
|
|
|
|
|
|
|
VALGRIND_POST_INSTALL_TARGET_HOOKS += VALGRIND_REMOVE_MEMCHECK
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_VALGRIND_CACHEGRIND),)
|
|
|
|
define VALGRIND_REMOVE_CACHEGRIND
|
|
|
|
rm -f $(TARGET_DIR)/usr/lib/valgrind/*cachegrind*
|
|
|
|
for i in cg_annotate cg_diff cg_merge; do \
|
|
|
|
rm -f $(TARGET_DIR)/usr/bin/$$i ; \
|
|
|
|
done
|
|
|
|
endef
|
|
|
|
|
|
|
|
VALGRIND_POST_INSTALL_TARGET_HOOKS += VALGRIND_REMOVE_CACHEGRIND
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_VALGRIND_CALLGRIND),)
|
|
|
|
define VALGRIND_REMOVE_CALLGRIND
|
|
|
|
rm -f $(TARGET_DIR)/usr/lib/valgrind/*callgrind*
|
|
|
|
for i in callgrind_annotate callgrind_control ; do \
|
|
|
|
rm -f $(TARGET_DIR)/usr/bin/$$i ; \
|
|
|
|
done
|
|
|
|
endef
|
|
|
|
|
|
|
|
VALGRIND_POST_INSTALL_TARGET_HOOKS += VALGRIND_REMOVE_CALLGRIND
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_VALGRIND_HELGRIND),)
|
|
|
|
define VALGRIND_REMOVE_HELGRIND
|
|
|
|
rm -f $(TARGET_DIR)/usr/lib/valgrind/*helgrind*
|
|
|
|
endef
|
|
|
|
|
|
|
|
VALGRIND_POST_INSTALL_TARGET_HOOKS += VALGRIND_REMOVE_HELGRIND
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_VALGRIND_DRD),)
|
|
|
|
define VALGRIND_REMOVE_DRD
|
|
|
|
rm -f $(TARGET_DIR)/usr/lib/valgrind/*drd*
|
|
|
|
endef
|
|
|
|
|
|
|
|
VALGRIND_POST_INSTALL_TARGET_HOOKS += VALGRIND_REMOVE_DRD
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_VALGRIND_MASSIF),)
|
|
|
|
define VALGRIND_REMOVE_MASSIF
|
|
|
|
rm -f $(TARGET_DIR)/usr/lib/valgrind/*massif*
|
|
|
|
rm -f $(TARGET_DIR)/usr/bin/ms_script
|
|
|
|
endef
|
|
|
|
|
|
|
|
VALGRIND_POST_INSTALL_TARGET_HOOKS += VALGRIND_REMOVE_MASSIF
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_VALGRIND_DHAT),)
|
|
|
|
define VALGRIND_REMOVE_DHAT
|
|
|
|
rm -f $(TARGET_DIR)/usr/lib/valgrind/*dhat*
|
|
|
|
endef
|
|
|
|
|
|
|
|
VALGRIND_POST_INSTALL_TARGET_HOOKS += VALGRIND_REMOVE_DHAT
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_VALGRIND_PTRCHECK),)
|
|
|
|
define VALGRIND_REMOVE_PTRCHECK
|
|
|
|
rm -f $(TARGET_DIR)/usr/lib/valgrind/*ptrcheck*
|
|
|
|
endef
|
|
|
|
|
|
|
|
VALGRIND_POST_INSTALL_TARGET_HOOKS += VALGRIND_REMOVE_PTRCHECK
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_VALGRIND_BBV),)
|
|
|
|
define VALGRIND_REMOVE_BBV
|
|
|
|
rm -f $(TARGET_DIR)/usr/lib/valgrind/*bbv*
|
|
|
|
endef
|
|
|
|
|
|
|
|
VALGRIND_POST_INSTALL_TARGET_HOOKS += VALGRIND_REMOVE_BBV
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_VALGRIND_LACKEY),)
|
|
|
|
define VALGRIND_REMOVE_LACKEY
|
|
|
|
rm -f $(TARGET_DIR)/usr/lib/valgrind/*lackey*
|
|
|
|
endef
|
|
|
|
|
|
|
|
VALGRIND_POST_INSTALL_TARGET_HOOKS += VALGRIND_REMOVE_LACKEY
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_VALGRIND_NULGRIND),)
|
|
|
|
define VALGRIND_REMOVE_NULGRIND
|
|
|
|
rm -f $(TARGET_DIR)/usr/lib/valgrind/*none*
|
|
|
|
endef
|
|
|
|
|
|
|
|
VALGRIND_POST_INSTALL_TARGET_HOOKS += VALGRIND_REMOVE_NULGRIND
|
|
|
|
endif
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|