This patch adds support for the I2C Lua binding. The I2C Lua binding
allows Lua scripts to control I2C slave devices on I2C busses supported
by the kernel.
Sourceforge project page: http://sourceforge.net/projects/i2c-lua
Hope I am doing this right (first time submitting a patch here).
Thanks,
Frank
Signed-off-by: Frank Edelhaeuser <fe...@users.sourceforge.net>
Index: package/i2c-lua/Makefile
===================================================================
--- package/i2c-lua/Makefile (attitude_adjustment)
+++ package/i2c-lua/Makefile (working copy)
@@ -0,0 +1,43 @@
+#
+# Copyright (C) 2007-2014 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-lua
+PKG_VERSION:=1.0.0
+PKG_RELEASE:=1
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=@SF/i2c-lua
+PKG_MD5SUM:=7098577f101410b201cd43a7467e408d
+
+PKG_LICENSE:=MIT
+PKG_LICENSE_FILES:=COPYING
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/i2c-lua
+ SUBMENU:=Lua
+ SECTION:=lang
+ CATEGORY:=Languages
+ TITLE:=I2C Lua binding
+ DEPENDS:=+liblua +kmod-i2c-core
+ MAINTAINER:=Frank Edelhaeuser <fe...@users.sourceforge.net>
+endef
+
+define Package/i2c-lua/description
+ This is the Lua binding for I2C. It provides access to I2C
slaves supported by the kernel.
+endef
+
+define Package/i2c-lua/install
+ $(INSTALL_DIR) $(1)/usr/lib/lua
+ $(INSTALL_DIR) $(1)/usr/lib/lua/i2c
+ $(INSTALL_BIN) $(PKG_BUILD_DIR)/i2c.so $(1)/usr/lib/lua
+ $(INSTALL_DATA) $(PKG_BUILD_DIR)/examples/* $(1)/usr/lib/lua/i2c
+endef
+
+$(eval $(call BuildPackage,i2c-lua))
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel