summaryrefslogtreecommitdiffstats
path: root/rules/memtool.make
blob: 2b81619f2a13e1958450f6c6c2ded33f13450d7d (plain)
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
# -*-makefile-*-
#
# Copyright (C) 2015 by Uwe Kleine-Koenig <u.kleine-koenig@pengutronix.de>
#
# For further information about the PTXdist project and license conditions
# see the README file.
#

#
# We provide this package
#
PACKAGES-$(PTXCONF_MEMTOOL) += memtool

#
# Paths and names
#
MEMTOOL_VERSION	:= 2018.03.0
MEMTOOL_MD5	:= b3b16018cda270fa1d375ea09b67d6ae
MEMTOOL		:= memtool-$(MEMTOOL_VERSION)
MEMTOOL_SUFFIX	:= tar.xz
MEMTOOL_URL	:= http://www.pengutronix.de/software/memtool/downloads/$(MEMTOOL).$(MEMTOOL_SUFFIX)
MEMTOOL_SOURCE	:= $(SRCDIR)/$(MEMTOOL).$(MEMTOOL_SUFFIX)
MEMTOOL_DIR	:= $(BUILDDIR)/$(MEMTOOL)
MEMTOOL_LICENSE	:= GPL-2.0-only

# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------

MEMTOOL_CONF_TOOL := autoconf
MEMTOOL_CONF_OPT := \
       $(CROSS_AUTOCONF_USR) \
       $(GLOBAL_LARGE_FILE_OPTION) \
       --enable-mdio \

# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------

$(STATEDIR)/memtool.targetinstall:
	@$(call targetinfo)

	@$(call install_init, memtool)
	@$(call install_fixup, memtool,PRIORITY,optional)
	@$(call install_fixup, memtool,SECTION,base)
	@$(call install_fixup, memtool,AUTHOR,"Uwe Kleine-Koenig <u.kleine-koenig@pengutronix.de>")
	@$(call install_fixup, memtool,DESCRIPTION,missing)
	@$(call install_copy, memtool, 0, 0, 0755, -, /usr/bin/memtool)

	@$(call install_finish, memtool)

	@$(call touch)

# vim: syntax=make