blob: b0b47448bd8a3ac985bb29ffd2943753d4bd0fa5 [file] [log] [blame]
include $(TOPDIR)/rules.mk
PKG_NAME:=atenl
PKG_RELEASE=1
PKG_LICENSE:=GPLv2
PKG_LICENSE_FILES:=
PKG_MAINTAINER:=Shayne Chen <shayne.chen@mediatek.com>
PKG_BUILD_PARALLEL:=1
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk
CMAKE_SOURCE_DIR:=$(PKG_BUILD_DIR)
CMAKE_BINARY_DIR:=$(PKG_BUILD_DIR)
define Package/atenl
SECTION:=MTK Properties
CATEGORY:=MTK Properties
TITLE:=testmode daemon for nl80211
SUBMENU:=Applications
DEPENDS:=+libnl-tiny
endef
TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include/libnl-tiny
define Package/atenl/install
mkdir -p $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/atenl $(1)/usr/sbin
$(INSTALL_BIN) ./files/ated.sh $(1)/usr/sbin/ated
$(INSTALL_BIN) ./files/iwpriv.sh $(1)/usr/sbin/iwpriv
$(INSTALL_BIN) ./files/iwpriv.sh $(1)/usr/sbin/mwctl
endef
$(eval $(call BuildPackage,atenl))