summaryrefslogtreecommitdiffstats
path: root/rules/host-energyAwareTools.make
blob: dc67ccbcb6a90112bdc069221d43c05ee17d8ca1 (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
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
88
89
# -*-makefile-*-
#
# Copyright (C) 2012 by Uwe Kleine-Koenig <u.kleine-koenig@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
#
HOST_PACKAGES-$(PTXCONF_HOST_ENERGYAWARETOOLS) += host-energyawaretools

#
# Paths and names
#
HOST_ENERGYAWARETOOLS_MD5	:= e6e6c9b52a5e41235242bdc04e5faa02
HOST_ENERGYAWARETOOLS		:= energyaware-linux-tools
HOST_ENERGYAWARETOOLS_SUFFIX	:= tgz
HOST_ENERGYAWARETOOLS_URL	:= http://www.silabs.com/Support%20Documents/Software/$(HOST_ENERGYAWARETOOLS).$(HOST_ENERGYAWARETOOLS_SUFFIX)
HOST_ENERGYAWARETOOLS_SOURCE	:= $(SRCDIR)/$(HOST_ENERGYAWARETOOLS).$(HOST_ENERGYAWARETOOLS_SUFFIX)
HOST_ENERGYAWARETOOLS_DIR	:= $(HOST_BUILDDIR)/$(HOST_ENERGYAWARETOOLS)

# ----------------------------------------------------------------------------
# Get
# ----------------------------------------------------------------------------

#$(HOST_ENERGYAWARETOOLS_SOURCE):
#	@$(call targetinfo)
#	@$(call get, HOST_ENERGYAWARETOOLS)

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

#HOST_ENERGYAWARETOOLS_CONF_ENV	:= $(HOST_ENV)

#
# autoconf
#
#HOST_ENERGYAWARETOOLS_CONF_TOOL	:= autoconf
#HOST_ENERGYAWARETOOLS_CONF_OPT	:= $(HOST_AUTOCONF)

#$(STATEDIR)/host-energyawaretools.prepare:
#	@$(call targetinfo)
#	@$(call clean, $(HOST_ENERGYAWARETOOLS_DIR)/config.cache)
#	cd $(HOST_ENERGYAWARETOOLS_DIR) && \
#		$(HOST_ENERGYAWARETOOLS_PATH) $(HOST_ENERGYAWARETOOLS_ENV) \
#		./configure $(HOST_ENERGYAWARETOOLS_CONF_OPT)
#	@$(call touch)

# ----------------------------------------------------------------------------
# Compile
# ----------------------------------------------------------------------------

$(STATEDIR)/host-energyawaretools.compile:
	@$(call targetinfo)
#	void
	@$(call touch)

# ----------------------------------------------------------------------------
# Install
# ----------------------------------------------------------------------------

$(STATEDIR)/host-energyawaretools.install:
	@$(call targetinfo)
	for f in eACommander nandflashloader.bin; do \
		install -D "$(HOST_ENERGYAWARETOOLS_DIR)/bin/$$f" "$(HOST_ENERGYAWARETOOLS_PKGDIR)/lib/energyAwareTools/$$f"; \
	done

	for f in libjlinkarm.so.4; do \
		install -D "$(HOST_ENERGYAWARETOOLS_DIR)/lib/$$f" "$(HOST_ENERGYAWARETOOLS_PKGDIR)/lib/energyAwareTools/$$f"; \
	done

	install -D "$(HOST_ENERGYAWARETOOLS_DIR)/eACommander.sh" "$(HOST_ENERGYAWARETOOLS_PKGDIR)/bin/eACommander"

	@$(call touch)

# ----------------------------------------------------------------------------
# Clean
# ----------------------------------------------------------------------------

#$(STATEDIR)/host-energyawaretools.clean:
#	@$(call targetinfo)
#	@$(call clean_pkg, HOST_ENERGYAWARETOOLS)

# vim: syntax=make