diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2009-05-14 09:41:06 +0000 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2009-05-14 09:41:06 +0000 |
commit | fbca29bf12e71679ccbf17b1566a541be2c4d025 (patch) | |
tree | 24ad808a20e513b4a769e29a0709738fae0814e6 /rules/bootchart.make | |
parent | 40205fb63a2bb4b1c081632e4ef25c8b580fd231 (diff) | |
download | ptxdist-fbca29bf12e71679ccbf17b1566a541be2c4d025.tar.gz ptxdist-fbca29bf12e71679ccbf17b1566a541be2c4d025.tar.xz |
[bootchart] added c-based bootchart tool from ubuntu
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@10519 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules/bootchart.make')
-rw-r--r-- | rules/bootchart.make | 98 |
1 files changed, 98 insertions, 0 deletions
diff --git a/rules/bootchart.make b/rules/bootchart.make new file mode 100644 index 000000000..96c798e35 --- /dev/null +++ b/rules/bootchart.make @@ -0,0 +1,98 @@ +# -*-makefile-*- +# $Id$ +# +# 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) + +# ---------------------------------------------------------------------------- +# Clean +# ---------------------------------------------------------------------------- + +bootchart_clean: + rm -rf $(STATEDIR)/bootchart.* + rm -rf $(PKGDIR)/bootchart_* + rm -rf $(BOOTCHART_DIR) + +# vim: syntax=make |