2014-12-25 22:26:43 +00:00
|
|
|
#
|
2016-01-08 19:23:16 +00:00
|
|
|
# Copyright (C) 2014-2016 OpenWrt.org
|
2014-12-25 22:26:43 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=mwlwifi
|
2019-08-18 00:04:00 +00:00
|
|
|
PKG_RELEASE=2
|
2014-12-25 22:26:43 +00:00
|
|
|
|
|
|
|
PKG_LICENSE:=ISC
|
|
|
|
PKG_LICENSE_FILES:=
|
|
|
|
|
|
|
|
PKG_SOURCE_URL:=https://github.com/kaloz/mwlwifi
|
|
|
|
PKG_SOURCE_PROTO:=git
|
2019-03-03 20:53:23 +00:00
|
|
|
PKG_SOURCE_DATE:=2019-03-02
|
|
|
|
PKG_SOURCE_VERSION:=31d9386079b91cc699658c19294e139b62b512bc
|
|
|
|
PKG_MIRROR_HASH:=7bdd05765d8215a9c293cdcb028d63a04c9e55b337eaac9e8d3659bd86218321
|
2014-12-25 22:26:43 +00:00
|
|
|
|
|
|
|
PKG_MAINTAINER:=Imre Kaloz <kaloz@openwrt.org>
|
|
|
|
PKG_BUILD_PARALLEL:=1
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/kernel.mk
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define KernelPackage/mwlwifi
|
|
|
|
SUBMENU:=Wireless Drivers
|
2018-06-14 18:39:22 +00:00
|
|
|
TITLE:=Marvell 88W8864/88W8897/88W8964/88W8997 wireless driver
|
2016-12-19 18:17:38 +00:00
|
|
|
DEPENDS:=+kmod-mac80211 +@DRIVER_11N_SUPPORT +@DRIVER_11AC_SUPPORT +@DRIVER_11W_SUPPORT @PCI_SUPPORT @TARGET_mvebu
|
2014-12-25 22:26:43 +00:00
|
|
|
FILES:=$(PKG_BUILD_DIR)/mwlwifi.ko
|
2017-11-03 10:11:21 +00:00
|
|
|
AUTOLOAD:=$(call AutoLoad,50,mwlwifi)
|
2014-12-25 22:26:43 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
NOSTDINC_FLAGS = \
|
|
|
|
-I$(PKG_BUILD_DIR) \
|
|
|
|
-I$(STAGING_DIR)/usr/include/mac80211-backport/uapi \
|
|
|
|
-I$(STAGING_DIR)/usr/include/mac80211-backport \
|
|
|
|
-I$(STAGING_DIR)/usr/include/mac80211/uapi \
|
|
|
|
-I$(STAGING_DIR)/usr/include/mac80211 \
|
|
|
|
-include backport/backport.h
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
+$(MAKE) $(PKG_JOBS) -C "$(LINUX_DIR)" \
|
2017-10-13 09:10:03 +00:00
|
|
|
$(KERNEL_MAKE_FLAGS) \
|
2020-01-20 14:42:00 +00:00
|
|
|
M="$(PKG_BUILD_DIR)" \
|
2014-12-25 22:26:43 +00:00
|
|
|
NOSTDINC_FLAGS="$(NOSTDINC_FLAGS)" \
|
|
|
|
modules
|
|
|
|
endef
|
|
|
|
|
2018-01-30 17:19:51 +00:00
|
|
|
define Package/mwlwifi-firmware-default
|
|
|
|
SECTION:=firmware
|
|
|
|
CATEGORY:=Firmware
|
|
|
|
TITLE:=Marvell $(1) firmware
|
|
|
|
DEPENDS:=+kmod-mwlwifi @TARGET_mvebu
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/mwlwifi-firmware/install
|
2014-12-25 22:26:43 +00:00
|
|
|
$(INSTALL_DIR) $(1)/lib/firmware
|
2015-03-23 12:45:19 +00:00
|
|
|
$(INSTALL_DIR) $(1)/lib/firmware/mwlwifi
|
2018-01-30 17:19:51 +00:00
|
|
|
$(CP) $(PKG_BUILD_DIR)/bin/firmware/$(2) $(1)/lib/firmware/mwlwifi/
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/bin/firmware/Marvell_license.txt $(1)/lib/firmware/mwlwifi/$(2).Marvell_license.txt
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/mwlwifi-firmware-88w8864
|
|
|
|
$(call Package/mwlwifi-firmware-default,88W8864)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/mwlwifi-firmware-88w8864/install
|
|
|
|
$(call Package/mwlwifi-firmware/install,$(1),88W8864.bin)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/mwlwifi-firmware-88w8897
|
|
|
|
$(call Package/mwlwifi-firmware-default,88W8897)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/mwlwifi-firmware-88w8897/install
|
|
|
|
$(call Package/mwlwifi-firmware/install,$(1),88W8897.bin)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/mwlwifi-firmware-88w8964
|
|
|
|
$(call Package/mwlwifi-firmware-default,88W8964)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/mwlwifi-firmware-88w8964/install
|
|
|
|
$(call Package/mwlwifi-firmware/install,$(1),88W8964.bin)
|
2014-12-25 22:26:43 +00:00
|
|
|
endef
|
|
|
|
|
2018-06-14 18:39:22 +00:00
|
|
|
define Package/mwlwifi-firmware-88w8997
|
|
|
|
$(call Package/mwlwifi-firmware-default,88W8997)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/mwlwifi-firmware-88w8997/install
|
|
|
|
$(call Package/mwlwifi-firmware/install,$(1),88W8997.bin)
|
|
|
|
endef
|
|
|
|
|
2014-12-25 22:26:43 +00:00
|
|
|
$(eval $(call KernelPackage,mwlwifi))
|
2018-01-30 17:19:51 +00:00
|
|
|
$(eval $(call BuildPackage,mwlwifi-firmware-88w8864))
|
|
|
|
$(eval $(call BuildPackage,mwlwifi-firmware-88w8897))
|
|
|
|
$(eval $(call BuildPackage,mwlwifi-firmware-88w8964))
|
2018-06-14 18:39:22 +00:00
|
|
|
$(eval $(call BuildPackage,mwlwifi-firmware-88w8997))
|