2008-06-24 11:55:37 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# i2c-tools
|
|
|
|
#
|
|
|
|
#############################################################
|
2011-01-07 18:42:48 +01:00
|
|
|
|
|
|
|
I2C_TOOLS_VERSION = 3.0.3
|
|
|
|
I2C_TOOLS_SOURCE = i2c-tools-$(I2C_TOOLS_VERSION).tar.bz2
|
|
|
|
I2C_TOOLS_SITE = http://dl.lm-sensors.org/i2c-tools/releases/
|
2008-06-24 11:55:37 +02:00
|
|
|
|
2009-11-06 19:36:34 +01:00
|
|
|
define I2C_TOOLS_BUILD_CMDS
|
|
|
|
$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D)
|
|
|
|
endef
|
2008-06-24 11:55:37 +02:00
|
|
|
|
2009-11-06 19:36:34 +01:00
|
|
|
define I2C_TOOLS_INSTALL_TARGET_CMDS
|
2008-06-24 11:55:37 +02:00
|
|
|
for i in i2cdump i2cget i2cset i2cdetect; \
|
|
|
|
do \
|
2010-12-09 10:55:03 +01:00
|
|
|
$(INSTALL) -m 755 -D $(@D)/tools/$$i $(TARGET_DIR)/usr/bin/$$i; \
|
2008-06-24 11:55:37 +02:00
|
|
|
done
|
2009-11-06 19:36:34 +01:00
|
|
|
endef
|
2008-08-26 16:01:37 +02:00
|
|
|
|
2009-11-06 19:36:34 +01:00
|
|
|
$(eval $(call GENTARGETS,package,i2c-tools))
|