blob: 266c5838f51386fc59e414fbc1f15522829ede0f [file] [log] [blame]
developer8fb759f2022-02-21 16:39:38 +08001include $(TOPDIR)/rules.mk
2
3PKG_NAME:=mwctl
4PKG_RELEASE=1
5
6PKG_LICENSE:=GPLv2
7PKG_LICENSE_FILES:=
8
9include $(INCLUDE_DIR)/package.mk
10include $(INCLUDE_DIR)/cmake.mk
11include $(INCLUDE_DIR)/kernel.mk
12
13CMAKE_SOURCE_DIR:=$(PKG_BUILD_DIR)
14CMAKE_BINARY_DIR:=$(PKG_BUILD_DIR)
15
16define Package/mwctl
17 SECTION:=devel
18 CATEGORY:=Development
19 TITLE:=vendor cmd for logan/mt76 driver
20 DEPENDS:=+libnl-tiny
21endef
22
23TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include/libnl-tiny
24TARGET_CFLAGS += -I$(LINUX_DIR)/include/uapi/linux/mtk_nl80211_inc
25
26define Package/mwctl/install
27 mkdir -p $(1)/usr/sbin
28 $(INSTALL_BIN) $(PKG_BUILD_DIR)/mwctl $(1)/usr/sbin
29endef
30
31$(eval $(call BuildPackage,mwctl))