2014-07-09 19:44:00 +02:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
include $(INCLUDE_DIR)/target.mk
|
|
|
|
|
|
|
|
PKG_NAME:=lua-platform-info
|
|
|
|
PKG_VERSION:=1
|
|
|
|
|
|
|
|
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/lua-platform-info
|
|
|
|
SECTION:=luci
|
|
|
|
CATEGORY:=LuCi
|
|
|
|
TITLE:=Lua hardware platform information library
|
2014-07-11 11:38:06 +02:00
|
|
|
DEPENDS:=lua @TARGET_ar71xx_generic
|
2014-07-09 19:44:00 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/lua-platform-info/description
|
|
|
|
Lua library to obtain some generic information about the runtime platform
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Prepare
|
|
|
|
mkdir -p $(PKG_BUILD_DIR)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Configure
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/lua-platform-info/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/lua
|
|
|
|
$(INSTALL_DATA) ./files/$(BOARD)$(if $(SUBTARGET),/$(SUBTARGET))/platform_info.lua $(1)/usr/lib/lua/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,lua-platform-info))
|