From 46defb82cee091f68827bb0f369660b03eb4e649 Mon Sep 17 00:00:00 2001 From: Gabor Juhos Date: Sun, 4 Nov 2007 17:42:16 +0000 Subject: [PATCH] [packages] add i2c-tools package from #2468, thanks to bifferos (closes: #2468) SVN-Revision: 9499 --- utils/i2c-tools/Makefile | 55 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 utils/i2c-tools/Makefile diff --git a/utils/i2c-tools/Makefile b/utils/i2c-tools/Makefile new file mode 100644 index 0000000000..27fae20710 --- /dev/null +++ b/utils/i2c-tools/Makefile @@ -0,0 +1,55 @@ +# +# 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 +PKG_VERSION:=3.0.0 +PKG_RELEASE:=1 + +PKG_SOURCE:=i2c-tools-$(PKG_VERSION).tar.bz2 +PKG_SOURCE_URL:=http://dl.lm-sensors.org/i2c-tools/releases/ +PKG_MD5SUM:=aeaa1d5d7b35faf096e5663c5fd823dc + +PKG_BUILD_DIR:=$(BUILD_DIR)/i2c-tools-$(PKG_VERSION) + +include $(INCLUDE_DIR)/package.mk + +define Package/i2c-tools + SECTION:=utils + CATEGORY:=Utilities + TITLE:=I2C tools for Linux + DEPENDS:=@LINUX_2_6 + URL:=http://www.lm-sensors.org/ +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)) -- 2.30.2