2
1

valgrind.mk 992 B

1234567891011121314151617181920212223242526272829
  1. #############################################################
  2. #
  3. # valgrind
  4. #
  5. #############################################################
  6. VALGRIND_VERSION = 3.6.1
  7. VALGRIND_SITE = http://valgrind.org/downloads/
  8. VALGRIND_SOURCE = valgrind-$(VALGRIND_VERSION).tar.bz2
  9. VALGRIND_CONF_OPT = --disable-tls
  10. # On ARM, Valgrind only supports ARMv7, and uses the arch part of the
  11. # host tuple to determine whether it's being built for ARMv7 or
  12. # not. Therefore, we adjust the host tuple to specify we're on
  13. # ARMv7. The valgrind package is guaranteed, through Config.in, to
  14. # only be selected on Cortex A8 and Cortex A9 platforms.
  15. ifeq ($(BR2_cortex_a8)$(BR2_cortex_a9),y)
  16. VALGRIND_CONF_OPT += \
  17. --host=$(patsubst arm-%,armv7-unknown-%,$(GNU_TARGET_NAME))
  18. endif
  19. define VALGRIND_INSTALL_UCLIBC_SUPP
  20. install -D -m 0644 package/valgrind/uclibc.supp $(TARGET_DIR)/usr/lib/valgrind/uclibc.supp
  21. endef
  22. VALGRIND_POST_INSTALL_TARGET_HOOKS += VALGRIND_INSTALL_UCLIBC_SUPP
  23. $(eval $(call AUTOTARGETS))