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