blob: 2b2f41528e78920a24fb7d20511fa9ec437c392d [file] [log] [blame]
developerfd40db22021-04-29 10:08:25 +08001include $(TOPDIR)/rules.mk
2
3PKG_NAME:=mt76-vendor
4PKG_RELEASE=1
5
6PKG_LICENSE:=GPLv2
7PKG_LICENSE_FILES:=
8
9include $(INCLUDE_DIR)/package.mk
10include $(INCLUDE_DIR)/cmake.mk
11
12CMAKE_SOURCE_DIR:=$(PKG_BUILD_DIR)
13CMAKE_BINARY_DIR:=$(PKG_BUILD_DIR)
14
15define Package/mt76-vendor
16 SECTION:=devel
17 CATEGORY:=Development
18 TITLE:=vendor cmd for mt76
19 DEPENDS:=+libnl-tiny
20endef
21
22TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include/libnl-tiny
23
24define Package/mt76-vendor/install
25 mkdir -p $(1)/usr/sbin
26 $(INSTALL_BIN) $(PKG_BUILD_DIR)/mt76-vendor $(1)/usr/sbin
developer5c1303e2022-07-26 17:37:18 +080027 ln -s $(1)/usr/sbin/mt76-vendor $(1)/usr/sbin/mwctl
developerfd40db22021-04-29 10:08:25 +080028endef
29
30$(eval $(call BuildPackage,mt76-vendor))