mwlwifi: Expose the IEEE 802.11w support to hostapd
[openwrt/openwrt.git] / package / kernel / mwlwifi / Makefile
1 #
2 # Copyright (C) 2014-2016 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=mwlwifi
11 PKG_VERSION:=10.3.0.18-20160823-1
12 PKG_RELEASE=1
13
14 PKG_LICENSE:=ISC
15 PKG_LICENSE_FILES:=
16
17 PKG_SOURCE_URL:=https://github.com/kaloz/mwlwifi
18 PKG_SOURCE_PROTO:=git
19 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
20 PKG_SOURCE_VERSION:=af606563453c819fac156faf2b15b9caef844329
21 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.xz
22
23 PKG_MAINTAINER:=Imre Kaloz <kaloz@openwrt.org>
24 PKG_BUILD_PARALLEL:=1
25
26 include $(INCLUDE_DIR)/kernel.mk
27 include $(INCLUDE_DIR)/package.mk
28
29 define KernelPackage/mwlwifi
30 SUBMENU:=Wireless Drivers
31 TITLE:=Marvell 88W8864 wireless driver
32 DEPENDS:=+kmod-mac80211 +@DRIVER_11N_SUPPORT +@DRIVER_11W_SUPPORT @PCI_SUPPORT @TARGET_mvebu
33 FILES:=$(PKG_BUILD_DIR)/mwlwifi.ko
34 AUTOLOAD:=$(call AutoLoad,50,mac80211 mwlwifi)
35 endef
36
37 NOSTDINC_FLAGS = \
38 -I$(PKG_BUILD_DIR) \
39 -I$(STAGING_DIR)/usr/include/mac80211-backport/uapi \
40 -I$(STAGING_DIR)/usr/include/mac80211-backport \
41 -I$(STAGING_DIR)/usr/include/mac80211/uapi \
42 -I$(STAGING_DIR)/usr/include/mac80211 \
43 -include backport/backport.h
44
45 define Build/Compile
46 +$(MAKE) $(PKG_JOBS) -C "$(LINUX_DIR)" \
47 ARCH="$(LINUX_KARCH)" \
48 CROSS_COMPILE="$(TARGET_CROSS)" \
49 SUBDIRS="$(PKG_BUILD_DIR)" \
50 NOSTDINC_FLAGS="$(NOSTDINC_FLAGS)" \
51 modules
52 endef
53
54 define KernelPackage/mwlwifi/install
55 $(INSTALL_DIR) $(1)/lib/firmware
56 $(INSTALL_DIR) $(1)/lib/firmware/mwlwifi
57 $(CP) $(PKG_BUILD_DIR)/bin/firmware/88W8864.bin $(1)/lib/firmware/mwlwifi/
58 $(CP) $(PKG_BUILD_DIR)/bin/firmware/88W8897.bin $(1)/lib/firmware/mwlwifi/
59 $(CP) $(PKG_BUILD_DIR)/bin/firmware/Marvell_license.txt $(1)/lib/firmware/mwlwifi/
60 endef
61
62 $(eval $(call KernelPackage,mwlwifi))