-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
executable file
·66 lines (50 loc) · 2.32 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#
# Copyright (C) 2006-2009 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/kernel.mk
PKG_NAME:=rt2860v2
PKG_REV:=2714
PKG_VERSION:=r$(PKG_REV)
PKG_RELEASE:=6
PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
include $(INCLUDE_DIR)/package.mk
PKG_KCONFIG:=RT2860V2_AP_V24_DATA_STRUCTURE RT2860V2_AP_LED RT2860V2_AP_WSC RT2860V2_AP_WSC_V2 RT2860V2_AP_LLTD RT2860V2_AP_WDS RT2860V2_AP_WMM_ACM RT2860V2_AP_MBSS RT2860V2_AP_APCLI RT2860V2_AP_MAC_REPEATER RT2860V2_AP_IGMP_SNOOP RT2860V2_AP_NETIF_BLOCK RT2860V2_AP_DFS RT2860V2_AP_CARRIER RT2860V2_AP_DLS RT2860V2_AP_IDS RT2860V2_HW_ANTENNA_DIVERSITY RT2860V2_AP_WAPI RT2860V2_AP_COC RT2860V2_AP_MEMORY_OPTIMIZATION RT2860V2_AP_VIDEO_TURBINE RT2860V2_AP_INTELLIGENT_RATE_ADAPTION RT2860V2_AP_TXBF RT2860V2_EXT_CHANNEL_LIST RT2860V2_KTHREAD RT2860V2_AUTO_CH_SELECT_ENHANCE RT2860V2_AP_80211N_DRAFT3 RT2860V2_AP_RTMP_INTERNAL_TX_ALC RT2860V2_ADJ_PWR_CONSUMPTION_SUPPORT RT2860V2_SINGLE_SKU RT2860V2_AP_RTMP_INTERNAL_TX_ALC RT2860V2_AP_RTMP_TEMPERATURE_COMPENSATION RT2860V2_80211R_FT RT2860V2_80211R_RR RT2860V2_MCAST_RATE_SPECIFIC RT2860V2_SNMP RA_CLASSIFIER
define KernelPackage/rt2860v2
CATEGORY:=MT7620
TITLE:=Driver for MT7620
DEPENDS:=@TARGET_ramips +wireless-tools +maccalc
DEFAULT:=y if (CONFIG_TARGET_ramips_mt7620n || CONFIG_TARGET_ramips_mt7620a)
FILES:=$(PKG_BUILD_DIR)/rt2860v2_ap/rt2860v2_ap.ko
AUTOLOAD:=$(call AutoLoad,50,rt2860v2_ap)
endef
define KernelPackage/rt2860v2/description
This package contains a driver for MT7620
endef
define KernelPackage/rt2860v2/config
source "$(SOURCE)/config.in"
endef
SOURCE_DIR:=$(PKG_BUILD_DIR)
export SOURCE_DIR
MAKEOPTS:= -C $(LINUX_DIR) \
ARCH="$(LINUX_KARCH)" \
CROSS_COMPILE="$(TARGET_CROSS)" \
M="$(PKG_BUILD_DIR)/rt2860v2_ap" \
CONFIG_RT2860V2_AP=m \
$(foreach c, $(PKG_KCONFIG),$(if $(CONFIG_$c),CONFIG_$(c)=y)) \
modules
define Build/Prepare
$(call Build/Prepare/Default)
$(CP) -r files/. $(PKG_BUILD_DIR)
endef
define Build/Compile
$(MAKE) $(MAKEOPTS)
endef
define KernelPackage/rt2860v2/install
$(INSTALL_DIR) $(1)/lib/wifi
$(INSTALL_DATA) ./files/rt2860v2.sh $(1)/lib/wifi
endef
$(eval $(call KernelPackage,rt2860v2))