developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 1 | include $(TOPDIR)/rules.mk |
| 2 | |
| 3 | PKG_NAME:=mt76-vendor |
| 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 | |
| 12 | CMAKE_SOURCE_DIR:=$(PKG_BUILD_DIR) |
| 13 | CMAKE_BINARY_DIR:=$(PKG_BUILD_DIR) |
| 14 | |
| 15 | define Package/mt76-vendor |
| 16 | SECTION:=devel |
| 17 | CATEGORY:=Development |
| 18 | TITLE:=vendor cmd for mt76 |
| 19 | DEPENDS:=+libnl-tiny |
| 20 | endef |
| 21 | |
| 22 | TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include/libnl-tiny |
| 23 | |
| 24 | define Package/mt76-vendor/install |
| 25 | mkdir -p $(1)/usr/sbin |
| 26 | $(INSTALL_BIN) $(PKG_BUILD_DIR)/mt76-vendor $(1)/usr/sbin |
developer | 1a4f42c | 2022-08-09 10:43:01 +0800 | [diff] [blame] | 27 | ln -s /usr/sbin/mt76-vendor $(1)/usr/sbin/mwctl |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 28 | endef |
| 29 | |
| 30 | $(eval $(call BuildPackage,mt76-vendor)) |