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
|
2023-04-11 22:52:56 +00:00
|
|
|
PKG_RELEASE=1
|
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
|
2023-04-11 22:52:56 +00:00
|
|
|
PKG_SOURCE_DATE:=2023-03-11
|
|
|
|
PKG_SOURCE_VERSION:=c916ac13376d1b0801f3f787277fa47ce6b694eb
|
|
|
|
PKG_MIRROR_HASH:=b95001b60fe5c28f08be5a52b65276d99877be57e567ad7afab95860f6aff57d
|
2014-12-25 22:26:43 +00:00
|
|
|
|
|
|
|
PKG_MAINTAINER:=Imre Kaloz <kaloz@openwrt.org>
|
|
|
|
PKG_BUILD_PARALLEL:=1
|
2021-03-24 09:47:12 +00:00
|
|
|
PKG_FLAGS:=nonshared
|
2014-12-25 22:26:43 +00:00
|
|
|
|
|
|
|
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
|
2022-11-26 11:58:21 +00:00
|
|
|
DEPENDS:=+kmod-mac80211 +@DRIVER_11AC_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
|
|
|
|
|
2021-03-18 06:22:11 +00:00
|
|
|
NOSTDINC_FLAGS := \
|
|
|
|
$(KERNEL_NOSTDINC_FLAGS) \
|
2014-12-25 22:26:43 +00:00
|
|
|
-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 \
|
2022-12-10 11:36:44 +00:00
|
|
|
-include backport/backport.h \
|
|
|
|
-Wno-unused-result
|
2014-12-25 22:26:43 +00:00
|
|
|
|
|
|
|
define Build/Compile
|
2022-12-14 21:34:19 +00:00
|
|
|
+$(KERNEL_MAKE) $(PKG_JOBS) \
|
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))
|