blob: 6b4da9932db25d9077481c8e9196a3dbccadf3a1 [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
developer5434fed2022-08-09 10:43:01 +080027 ln -s /usr/sbin/mt76-vendor $(1)/usr/sbin/mwctl
developerfd40db22021-04-29 10:08:25 +080028endef
29
30$(eval $(call BuildPackage,mt76-vendor))