mirror of
				git://git.openwrt.org/openwrt/openwrt.git
				synced 2025-11-03 14:34:27 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			61 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			61 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			Makefile
		
	
	
	
	
	
#
 | 
						|
# Copyright (C) 2014-2015 OpenWrt.org
 | 
						|
#
 | 
						|
# This is free software, licensed under the GNU General Public License v2.
 | 
						|
# See /LICENSE for more information.
 | 
						|
#
 | 
						|
 | 
						|
include $(TOPDIR)/rules.mk
 | 
						|
 | 
						|
PKG_NAME:=mwlwifi
 | 
						|
PKG_VERSION:=10.3.0.1-20150525
 | 
						|
PKG_RELEASE=1
 | 
						|
 | 
						|
PKG_LICENSE:=ISC
 | 
						|
PKG_LICENSE_FILES:=
 | 
						|
 | 
						|
PKG_SOURCE_URL:=https://github.com/kaloz/mwlwifi
 | 
						|
PKG_SOURCE_PROTO:=git
 | 
						|
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
 | 
						|
PKG_SOURCE_VERSION:=16abd45e409596803c597bfa32e0559f19109140
 | 
						|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.xz
 | 
						|
 | 
						|
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
 | 
						|
  DEPENDS:=+kmod-mac80211 +@DRIVER_11N_SUPPORT @PCI_SUPPORT @TARGET_mvebu
 | 
						|
  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
 | 
						|
	$(INSTALL_DIR) $(1)/lib/firmware/mwlwifi
 | 
						|
	$(CP) $(PKG_BUILD_DIR)/bin/firmware/88W8864.bin $(1)/lib/firmware/mwlwifi/
 | 
						|
endef
 | 
						|
 | 
						|
$(eval $(call KernelPackage,mwlwifi))
 |