blob: f4246dbf44101c6c5e4bc395556e41997515af4c [file] [log] [blame]
developer22c7ab62022-01-24 11:13:32 +08001include $(TOPDIR)/rules.mk
2
3PKG_NAME:=atenl
4PKG_RELEASE=1
5
6PKG_LICENSE:=GPLv2
7PKG_LICENSE_FILES:=
8
9PKG_MAINTAINER:=Shayne Chen <shayne.chen@mediatek.com>
10PKG_BUILD_PARALLEL:=1
11
12include $(INCLUDE_DIR)/package.mk
13include $(INCLUDE_DIR)/cmake.mk
14
15CMAKE_SOURCE_DIR:=$(PKG_BUILD_DIR)
16CMAKE_BINARY_DIR:=$(PKG_BUILD_DIR)
17
18define Package/atenl
19 SECTION:=MTK Properties
20 CATEGORY:=MTK Properties
21 TITLE:=testmode daemon for nl80211
22 SUBMENU:=Applications
developerf0677ad2024-11-15 19:28:25 +080023 DEPENDS:=+libnl-tiny +libblkid
developer22c7ab62022-01-24 11:13:32 +080024endef
25
26TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include/libnl-tiny
developerf0677ad2024-11-15 19:28:25 +080027TARGET_CFLAGS += -lblkid
developer22c7ab62022-01-24 11:13:32 +080028
29define Package/atenl/install
30 mkdir -p $(1)/usr/sbin
31 $(INSTALL_BIN) $(PKG_BUILD_DIR)/atenl $(1)/usr/sbin
32 $(INSTALL_BIN) ./files/ated.sh $(1)/usr/sbin/ated
33 $(INSTALL_BIN) ./files/iwpriv.sh $(1)/usr/sbin/iwpriv
developerbb73fa22022-12-28 22:40:23 +080034 $(INSTALL_BIN) ./files/iwpriv.sh $(1)/usr/sbin/mwctl
developer22c7ab62022-01-24 11:13:32 +080035endef
36
37$(eval $(call BuildPackage,atenl))