summaryrefslogtreecommitdiffstats
path: root/rules/bootchart.make
blob: 622aa6200f68331619360e1e8aa9bdb94435306a (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
# -*-makefile-*-
#
# Copyright (C) 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_BOOTCHART) += bootchart

#
# Paths and names
#
BOOTCHART_VERSION	:= 0.90.1
BOOTCHART_SUFFIX	:= tar.gz
BOOTCHART		:= bootchart-$(BOOTCHART_VERSION)
BOOTCHART_TARBALL	:= bootchart_$(BOOTCHART_VERSION)-3.$(BOOTCHART_SUFFIX)
BOOTCHART_URL		:= http://archive.ubuntu.com/ubuntu/pool/universe/b/bootchart/$(BOOTCHART_TARBALL)
BOOTCHART_SOURCE	:= $(SRCDIR)/$(BOOTCHART_TARBALL)
BOOTCHART_DIR		:= $(BUILDDIR)/$(BOOTCHART)

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

$(BOOTCHART_SOURCE):
	@$(call targetinfo)
	@$(call get, BOOTCHART)

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

BOOTCHART_PATH	:= PATH=$(CROSS_PATH)
BOOTCHART_ENV	:= $(CROSS_ENV)

BOOTCHART_MAKEVARS := $(CROSS_ENV_CC)

$(STATEDIR)/bootchart.prepare:
	@$(call touch)

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

$(STATEDIR)/bootchart.install:
	@$(call targetinfo)
	@$(call touch)

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

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

	@$(call install_init, bootchart)
	@$(call install_fixup, bootchart,PACKAGE,bootchart)
	@$(call install_fixup, bootchart,PRIORITY,optional)
	@$(call install_fixup, bootchart,VERSION,$(BOOTCHART_VERSION))
	@$(call install_fixup, bootchart,SECTION,base)
	@$(call install_fixup, bootchart,AUTHOR,"Marc Kleine-Budde <mkl@pengutronix.de>")
	@$(call install_fixup, bootchart,DEPENDS,)
	@$(call install_fixup, bootchart,DESCRIPTION,missing)

#	# we mount a tmpfs into this dir
	@$(call install_copy, bootchart, 0, 0, 0755, /bc)

#	# create dir
	@$(call install_copy, bootchart, 0, 0, 0755, /lib/bootchart)

	@$(call install_alternative, bootchart, 0, 0, 0755, /sbin/bootchartd)

	@$(call install_copy, bootchart, 0, 0, 0755, \
		$(BOOTCHART_DIR)/bootchart-collector, /lib/bootchart/collector)
	@$(call install_copy, bootchart, 0, 0, 0755, \
		$(BOOTCHART_DIR)/bootchart-gather.sh, /lib/bootchart/gather)

	@$(call install_finish, bootchart)

	@$(call touch)

# vim: syntax=make