blob: 6b4da9932db25d9077481c8e9196a3dbccadf3a1 [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 /usr/sbin/mt76-vendor $(1)/usr/sbin/mwctl
endef
$(eval $(call BuildPackage,mt76-vendor))