
include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/kernel.mk

PKG_NAME:=appe
PKG_VERSION:=1.0
PKG_RELEASE:=1

include $(INCLUDE_DIR)/package.mk

#
# definition shared by all modules
#
define KernelPackage/$(PKG_NAME)
	SUBMENU:=Draytek Other Module
	TITLE:=APP Enforcement
	DEPENDS:=@LINUX_2_6
	MAINTAINER:=EricLien
	FILES:=$(PKG_BUILD_DIR)/binary/lib/modules/$(LINUX_VERSION)/$(PKG_NAME).$(LINUX_KMOD_SUFFIX)
	AUTOLOAD:=$(call AutoLoad,25,appe)
endef

#
#install stuffs
#
define KernelPackage/appe/install
	@echo "Install.................."
	$(CP) $(PKG_BUILD_DIR)/binary/* $(1)
endef

#
# canned command sequence for building
#
define Build/Compile
	@echo "Compiling...................."
	$(INSTALL_DIR) $(PKG_BUILD_DIR)/binary
	tar xzfO kmod-$(PKG_NAME)_$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE)_arm.ipk ./data.tar.gz | tar -C $(PKG_BUILD_DIR)/binary -xzf -
endef

#
#evaluate all variables we defined 
#
$(eval $(call KernelPackage,appe))

