2007-11-04 17:42:16 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2007 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=i2c-tools
|
2008-07-05 12:29:33 +00:00
|
|
|
PKG_VERSION:=3.0.1
|
2007-11-04 17:42:16 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
2008-07-05 12:29:33 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
2007-11-04 17:42:16 +00:00
|
|
|
PKG_SOURCE_URL:=http://dl.lm-sensors.org/i2c-tools/releases/
|
2008-07-05 12:29:33 +00:00
|
|
|
PKG_MD5SUM:=0f5c7ce5fd3c65113909db0ef3a3a8c8
|
2007-11-04 17:42:16 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/i2c-tools
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
|
|
|
TITLE:=I2C tools for Linux
|
|
|
|
DEPENDS:=@LINUX_2_6
|
2009-06-13 17:01:55 +00:00
|
|
|
URL:=http://www.lm-sensors.org/wiki/I2CTools
|
2007-11-04 17:42:16 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/i2c-tools/description
|
|
|
|
This package contains an heterogeneous set of I2C tools for Linux. These tools
|
|
|
|
were originally part of the lm-sensors package.
|
|
|
|
Includes:
|
|
|
|
- i2cdetect
|
|
|
|
- i2cdump
|
|
|
|
- i2cget
|
|
|
|
- i2cset
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
LINUX="$(LINUX_DIR)" \
|
|
|
|
CC="$(TARGET_CC)" \
|
|
|
|
STAGING_DIR="$(STAGING_DIR)"
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/i2c-tools/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/tools/i2cdetect $(1)/usr/sbin/
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/tools/i2cdump $(1)/usr/sbin/
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/tools/i2cset $(1)/usr/sbin/
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/tools/i2cget $(1)/usr/sbin/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,i2c-tools))
|