summaryrefslogtreecommitdiffstats
path: root/package/i2c-tools/i2c-tools.mk
blob: d2019b032e12db0db95eadc2309a9eb7b608a741 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#############################################################
#
# i2c-tools
#
#############################################################
I2C_TOOLS_VERSION:=3.0.1
I2C_TOOLS_SOURCE:=i2c-tools-$(I2C_TOOLS_VERSION).tar.bz2
I2C_TOOLS_SITE:=http://dl.lm-sensors.org/i2c-tools/releases/
I2C_TOOLS_AUTORECONF = NO
I2C_TOOLS_INSTALL_STAGING = YES
I2C_TOOLS_CONF_ENV =
I2C_TOOLS_CONF_OPT =
I2C_TOOLS_MAKE_OPT = $(TARGET_CONFIGURE_OPTS)
I2C_TOOLS_DEPENDENCIES =

$(eval $(call AUTOTARGETS,package,i2c-tools))

$(I2C_TOOLS_TARGET_CONFIGURE):
	touch $@

$(I2C_TOOLS_TARGET_INSTALL_TARGET):
	for i in i2cdump i2cget i2cset i2cdetect; \
	do \
		$(INSTALL) -m 755 $(I2C_TOOLS_DIR)/tools/$$i $(TARGET_DIR)/usr/bin; \
		$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/bin/$$i; \
	done
	touch $@