diff options
author | Robert Schwebel <r.schwebel@pengutronix.de> | 2007-12-31 10:44:40 +0000 |
---|---|---|
committer | Robert Schwebel <r.schwebel@pengutronix.de> | 2007-12-31 10:44:40 +0000 |
commit | b580f742214f85e26d386b8f47d20ecdd009abe4 (patch) | |
tree | 4534cfd1b2ab5324c5d8e3d637b99bd3178ec1fd /rules/calibrator.make | |
parent | dda12ce9bb0ab53ced43861ed54d8a94e1297fec (diff) | |
download | ptxdist-b580f742214f85e26d386b8f47d20ecdd009abe4.tar.gz ptxdist-b580f742214f85e26d386b8f47d20ecdd009abe4.tar.xz |
* hackbench: added; patch by Michael Olbrich
* calibrator: added; patch by Michael Olbrich
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@7676 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules/calibrator.make')
-rw-r--r-- | rules/calibrator.make | 126 |
1 files changed, 126 insertions, 0 deletions
diff --git a/rules/calibrator.make b/rules/calibrator.make new file mode 100644 index 000000000..6d4168265 --- /dev/null +++ b/rules/calibrator.make @@ -0,0 +1,126 @@ +# -*-makefile-*- +# $Id: template 6655 2007-01-02 12:55:21Z rsc $ +# +# Copyright (C) 2007 by Michael Olbrich <m.olbrich@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_CALIBRATOR) += calibrator + +# +# Paths and names +# +CALIBRATOR_VERSION := 20070821-1 +CALIBRATOR := calibrator-$(CALIBRATOR_VERSION) +CALIBRATOR_SUFFIX := tar.bz2 +CALIBRATOR_URL := http://www.pengutronix.de/software/ptxdist/temporary-src/$(CALIBRATOR).$(CALIBRATOR_SUFFIX) +CALIBRATOR_SOURCE := $(SRCDIR)/$(CALIBRATOR).$(CALIBRATOR_SUFFIX) +CALIBRATOR_DIR := $(BUILDDIR)/$(CALIBRATOR) + +# ---------------------------------------------------------------------------- +# Get +# ---------------------------------------------------------------------------- + +calibrator_get: $(STATEDIR)/calibrator.get + +$(STATEDIR)/calibrator.get: $(calibrator_get_deps_default) + @$(call targetinfo, $@) + @$(call touch, $@) + +$(CALIBRATOR_SOURCE): + @$(call targetinfo, $@) + @$(call get, CALIBRATOR) + +# ---------------------------------------------------------------------------- +# Extract +# ---------------------------------------------------------------------------- + +calibrator_extract: $(STATEDIR)/calibrator.extract + +$(STATEDIR)/calibrator.extract: $(calibrator_extract_deps_default) + @$(call targetinfo, $@) + @$(call clean, $(CALIBRATOR_DIR)) + @$(call extract, CALIBRATOR) + @$(call patchin, CALIBRATOR) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +calibrator_prepare: $(STATEDIR)/calibrator.prepare + +CALIBRATOR_PATH := PATH=$(CROSS_PATH) +CALIBRATOR_ENV := $(CROSS_ENV) + +# +# autoconf +# +CALIBRATOR_AUTOCONF := $(CROSS_AUTOCONF_USR) + +$(STATEDIR)/calibrator.prepare: $(calibrator_prepare_deps_default) + @$(call targetinfo, $@) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Compile +# ---------------------------------------------------------------------------- + +calibrator_compile: $(STATEDIR)/calibrator.compile + +$(STATEDIR)/calibrator.compile: $(calibrator_compile_deps_default) + @$(call targetinfo, $@) + cd $(CALIBRATOR_DIR) && $(CALIBRATOR_PATH) CC=$(CROSS_CC) LDFLAGS=-lm $(MAKE) $(PARALLELMFLAGS) calibrator + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Install +# ---------------------------------------------------------------------------- + +calibrator_install: $(STATEDIR)/calibrator.install + +$(STATEDIR)/calibrator.install: $(calibrator_install_deps_default) + @$(call targetinfo, $@) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +calibrator_targetinstall: $(STATEDIR)/calibrator.targetinstall + +$(STATEDIR)/calibrator.targetinstall: $(calibrator_targetinstall_deps_default) + @$(call targetinfo, $@) + + @$(call install_init, calibrator) + @$(call install_fixup, calibrator,PACKAGE,calibrator) + @$(call install_fixup, calibrator,PRIORITY,optional) + @$(call install_fixup, calibrator,VERSION,$(CALIBRATOR_VERSION)) + @$(call install_fixup, calibrator,SECTION,base) + @$(call install_fixup, calibrator,AUTHOR,"Michael Olbrich <m.olbrich\@pengutronix.de>") + @$(call install_fixup, calibrator,DEPENDS,) + @$(call install_fixup, calibrator,DESCRIPTION,missing) + + @$(call install_copy, calibrator, 0, 0, 0755, $(CALIBRATOR_DIR)/calibrator, /usr/bin/calibrator) + + @$(call install_finish, calibrator) + + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Clean +# ---------------------------------------------------------------------------- + +calibrator_clean: + rm -rf $(STATEDIR)/calibrator.* + rm -rf $(IMAGEDIR)/calibrator_* + rm -rf $(CALIBRATOR_DIR) + +# vim: syntax=make |