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
|
2016-12-23 12:51:55 +00:00
|
|
|
PKG_VERSION:=10.3.2.0-20161222
|
2014-12-25 22:26:43 +00:00
|
|
|
PKG_RELEASE=1
|
|
|
|
|
|
|
|
PKG_LICENSE:=ISC
|
|
|
|
PKG_LICENSE_FILES:=
|
|
|
|
|
|
|
|
PKG_SOURCE_URL:=https://github.com/kaloz/mwlwifi
|
|
|
|
PKG_SOURCE_PROTO:=git
|
2016-12-23 12:51:55 +00:00
|
|
|
PKG_SOURCE_VERSION:=8edf53517b5e9a79b5a6c9a514db1883fd32c9d5
|
|
|
|
PKG_MIRROR_HASH:=83ca146145486a4b66eb937e586cadffe99435518dcb5c7f2afc5f2b3f0c81d8
|
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
|
|
|
|
TITLE:=Marvell 88W8864 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
|
|
|
|
AUTOLOAD:=$(call AutoLoad,50,mac80211 mwlwifi)
|
|
|
|
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)" \
|
|
|
|
ARCH="$(LINUX_KARCH)" \
|
|
|
|
CROSS_COMPILE="$(TARGET_CROSS)" \
|
|
|
|
SUBDIRS="$(PKG_BUILD_DIR)" \
|
|
|
|
NOSTDINC_FLAGS="$(NOSTDINC_FLAGS)" \
|
|
|
|
modules
|
|
|
|
endef
|
|
|
|
|
|
|
|
define KernelPackage/mwlwifi/install
|
|
|
|
$(INSTALL_DIR) $(1)/lib/firmware
|
2015-03-23 12:45:19 +00:00
|
|
|
$(INSTALL_DIR) $(1)/lib/firmware/mwlwifi
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/bin/firmware/88W8864.bin $(1)/lib/firmware/mwlwifi/
|
2015-08-18 11:22:47 +00:00
|
|
|
$(CP) $(PKG_BUILD_DIR)/bin/firmware/88W8897.bin $(1)/lib/firmware/mwlwifi/
|
2016-10-13 10:45:17 +00:00
|
|
|
$(CP) $(PKG_BUILD_DIR)/bin/firmware/88W8964.bin $(1)/lib/firmware/mwlwifi/
|
2015-08-18 11:22:47 +00:00
|
|
|
$(CP) $(PKG_BUILD_DIR)/bin/firmware/Marvell_license.txt $(1)/lib/firmware/mwlwifi/
|
2014-12-25 22:26:43 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call KernelPackage,mwlwifi))
|