blob: 92c162952dc161f324e5c0304ec93fb41e4d7f70 [file] [log] [blame]
include $(TOPDIR)/rules.mk
PKG_NAME:=mt76-vendor
PKG_RELEASE=1
PKG_LICENSE:=GPLv2
PKG_LICENSE_FILES:=
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk
CMAKE_SOURCE_DIR:=$(PKG_BUILD_DIR)
CMAKE_BINARY_DIR:=$(PKG_BUILD_DIR)
define Package/mt76-vendor
SECTION:=devel
CATEGORY:=Development
TITLE:=vendor cmd for mt76
DEPENDS:=+libnl-tiny
endef
TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include/libnl-tiny
define Package/mt76-vendor/install
mkdir -p $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/mt76-vendor $(1)/usr/sbin
ln -s $(1)/usr/sbin/mt76-vendor $(1)/usr/sbin/mwctrl
endef
$(eval $(call BuildPackage,mt76-vendor))