diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2008-05-20 14:51:13 +0000 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2008-05-20 14:51:13 +0000 |
commit | 34343aac71e4cd762d345083120ac2d0d99b794f (patch) | |
tree | c2ecaae93a6a824b8f4221f4a98848041725ecac /rules/i2c-tools.make | |
parent | b684b01d9933d35fcd7ffcd2639e3e571a547891 (diff) | |
download | ptxdist-34343aac71e4cd762d345083120ac2d0d99b794f.tar.gz ptxdist-34343aac71e4cd762d345083120ac2d0d99b794f.tar.xz |
* i2c-tools.in, i2c-tools.make, Kconfig:
new:
Useful toolset to access i2c bus devices. Version 3.0.0
Signed-off-by: Carsten Schlote <c.schlote@konzeptpark.de>
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@8189 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules/i2c-tools.make')
-rw-r--r-- | rules/i2c-tools.make | 91 |
1 files changed, 91 insertions, 0 deletions
diff --git a/rules/i2c-tools.make b/rules/i2c-tools.make new file mode 100644 index 000000000..12ccdebf8 --- /dev/null +++ b/rules/i2c-tools.make @@ -0,0 +1,91 @@ +# -*-makefile-*- +# $Id$ +# +# Copyright (C) 2008 by Carsten Schlote +# +# 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_I2C_TOOLS) += i2c-tools + +# +# Paths and names +# +I2C_TOOLS_VERSION := 3.0.1 +I2C_TOOLS := i2c-tools-$(I2C_TOOLS_VERSION) +I2C_TOOLS_SUFFIX := tar.bz2 +I2C_TOOLS_URL := http://dl.lm-sensors.org/i2c-tools/releases/$(I2C_TOOLS).$(I2C_TOOLS_SUFFIX) +I2C_TOOLS_SOURCE := $(SRCDIR)/$(I2C_TOOLS).$(I2C_TOOLS_SUFFIX) +I2C_TOOLS_DIR := $(BUILDDIR)/$(I2C_TOOLS) + +# ---------------------------------------------------------------------------- +# Get +# ---------------------------------------------------------------------------- + +$(I2C_TOOLS_SOURCE): + @$(call targetinfo) + @$(call get, I2C_TOOLS) + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +I2C_TOOLS_PATH := PATH=$(CROSS_PATH) +I2C_TOOLS_ENV := $(CROSS_ENV) +I2C_TOOLS_MAKEVARS := prefix=/usr $(CROSS_ENV_CC) + +$(STATEDIR)/i2c-tools.prepare: + @$(call targetinfo) + @$(call touch) + +# ---------------------------------------------------------------------------- +# Compile +# ---------------------------------------------------------------------------- + +$(STATEDIR)/i2c-tools.compile: + @$(call targetinfo) + cd $(I2C_TOOLS_DIR) && \ + $(I2C_TOOLS_PATH) $(MAKE) $(PARALLELMFLAGS) $(I2C_TOOLS_MAKEVARS) + @$(call touch) + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/i2c-tools.targetinstall: + @$(call targetinfo) + + @$(call install_init, i2c-tools) + @$(call install_fixup, i2c-tools,PACKAGE,i2c-tools) + @$(call install_fixup, i2c-tools,PRIORITY,optional) + @$(call install_fixup, i2c-tools,VERSION,$(I2C_TOOLS_VERSION)) + @$(call install_fixup, i2c-tools,SECTION,base) + @$(call install_fixup, i2c-tools,AUTHOR,"Robert Schwebel <r.schwebel\@pengutronix.de>") + @$(call install_fixup, i2c-tools,DEPENDS,) + @$(call install_fixup, i2c-tools,DESCRIPTION,missing) + + @$(call install_copy, i2c-tools, 0, 0, 0755, $(I2C_TOOLS_DIR)/tools/i2cdetect, /sbin/i2cdetect) + @$(call install_copy, i2c-tools, 0, 0, 0755, $(I2C_TOOLS_DIR)/tools/i2cdump, /sbin/i2cdump) + @$(call install_copy, i2c-tools, 0, 0, 0755, $(I2C_TOOLS_DIR)/tools/i2cset, /sbin/i2cset) + @$(call install_copy, i2c-tools, 0, 0, 0755, $(I2C_TOOLS_DIR)/tools/i2cget, /sbin/i2cget) + + @$(call install_finish, i2c-tools) + + @$(call touch) + +# ---------------------------------------------------------------------------- +# Clean +# ---------------------------------------------------------------------------- + +i2c-tools_clean: + rm -rf $(STATEDIR)/i2c-tools.* + rm -rf $(IMAGEDIR)/i2c-tools_* + rm -rf $(I2C_TOOLS_DIR) + +# vim: syntax=make |