# -*-makefile-*- # # 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.1.2 I2C_TOOLS_MD5 := 7104a1043d11a5e2c7b131614eb1b962 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) http://jdelvare.nerim.net/mirror/i2c-tools/$(I2C_TOOLS).$(I2C_TOOLS_SUFFIX) I2C_TOOLS_SOURCE := $(SRCDIR)/$(I2C_TOOLS).$(I2C_TOOLS_SUFFIX) I2C_TOOLS_DIR := $(BUILDDIR)/$(I2C_TOOLS) I2C_TOOLS_LICENSE := GPL-2.0+ # ---------------------------------------------------------------------------- # Prepare # ---------------------------------------------------------------------------- I2C_TOOLS_PATH := PATH=$(CROSS_PATH) I2C_TOOLS_ENV := $(CROSS_ENV) I2C_TOOLS_MAKE_OPT := \ prefix=/usr \ KERNELVERSION=$(KERNEL_HEADER_VERSION) \ $(CROSS_ENV_CC) # install the header files to include/i2c-tools # this way they don't collide with the toolchain's i2c headers I2C_TOOLS_INSTALL_OPT := \ $(I2C_TOOLS_MAKE_OPT) \ incdir="\$$(prefix)/include/i2c-tools" \ install $(STATEDIR)/i2c-tools.prepare: @$(call targetinfo) @$(call touch) # ---------------------------------------------------------------------------- # Target-Install # ---------------------------------------------------------------------------- $(STATEDIR)/i2c-tools.targetinstall: @$(call targetinfo) @$(call install_init, i2c-tools) @$(call install_fixup, i2c-tools,PRIORITY,optional) @$(call install_fixup, i2c-tools,SECTION,base) @$(call install_fixup, i2c-tools,AUTHOR,"Robert Schwebel ") @$(call install_fixup, i2c-tools,DESCRIPTION,missing) @$(call install_copy, i2c-tools, 0, 0, 0755, -, /usr/sbin/i2cdetect) @$(call install_copy, i2c-tools, 0, 0, 0755, -, /usr/sbin/i2cdump) @$(call install_copy, i2c-tools, 0, 0, 0755, -, /usr/sbin/i2cset) @$(call install_copy, i2c-tools, 0, 0, 0755, -, /usr/sbin/i2cget) @$(call install_finish, i2c-tools) @$(call touch) # vim: syntax=make