1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
# -*-makefile-*-
#
# Copyright (C) 2005 by Shahar Livne <shahar@livnex.com>
# 2008, 2009 by Marc Kleine-Budde <mkl@pengutronix.de>
#
# See CREDITS for details about who has contributed to this project.
#
# For further information about the PTXdist project and license conditions
# see the README file.
#
#
# We provide this package
#
PACKAGES-$(PTXCONF_ARCH_X86)-$(PTXCONF_VALGRIND) += valgrind
PACKAGES-$(PTXCONF_ARCH_PPC)-$(PTXCONF_VALGRIND) += valgrind
PACKAGES-$(PTXCONF_ARCH_ARM)-$(PTXCONF_VALGRIND) += valgrind
#
# Paths and names
#
VALGRIND_VERSION := 3.12.0
VALGRIND_MD5 := 6eb03c0c10ea917013a7622e483d61bb
VALGRIND := valgrind-$(VALGRIND_VERSION)
VALGRIND_SUFFIX := tar.bz2
VALGRIND_URL := http://valgrind.org/downloads/$(VALGRIND).$(VALGRIND_SUFFIX)
VALGRIND_SOURCE := $(SRCDIR)/$(VALGRIND).$(VALGRIND_SUFFIX)
VALGRIND_DIR := $(BUILDDIR)/$(VALGRIND)
VALGRIND_LICENSE := GPL-2.0-only
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
ifdef KERNEL_VERSION
VALGRIND_KERNEL_VERSION := $(KERNEL_VERSION)
endif
ifdef KERNEL_HEADER_VERSION
VALGRIND_KERNEL_VERSION := $(KERNEL_HEADER_VERSION)
endif
VALGRIND_ENV := \
$(CROSS_ENV) \
valgrind_cv_sys_kernel_version=$(VALGRIND_KERNEL_VERSION)
ifdef PTXCONF_VALGRIND
ifeq ($(VALGRIND_KERNEL_VERSION),)
$(warning ######################### ERROR ################################)
$(warning # Linux kernel version required in order to make valgrind work #)
$(warning # Define a platform kernel or the kernel headers #)
$(warning ################################################################)
$(error )
endif
endif
#
# autoconf
#
VALGRIND_CONF_TOOL := autoconf
VALGRIND_CONF_OPT := \
$(CROSS_AUTOCONF_USR) \
--without-mpicc \
--enable-tls
# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------
$(STATEDIR)/valgrind.targetinstall:
@$(call targetinfo)
@$(call install_init, valgrind)
@$(call install_fixup, valgrind,PRIORITY,optional)
@$(call install_fixup, valgrind,SECTION,base)
@$(call install_fixup, valgrind,AUTHOR,"Shahar Livne <shahar@livnex.com>")
@$(call install_fixup, valgrind,DESCRIPTION,missing)
@$(call install_copy, valgrind, 0, 0, 0755, -, /usr/bin/valgrind)
@$(call install_glob, valgrind, 0, 0, -, /usr/lib/valgrind,,*.a)
@$(call install_finish, valgrind)
@$(call touch)
# vim: syntax=make
|