mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-19 21:58:04 +00:00
4f2fd0215b
74dedf9352c5 mt76: mt7615: fix skb use-after-free on mac reset
7201290eda43 mt76: mt7921: Fix out of order process by invalid event pkt
ca1b57e9971a mt76: mt7915: add a missing HT flag for GI parsing
4932c5d80153 of: net: pass the dst buffer to of_get_mac_address()
51d9eb3e6f52 mt76: mt7915: fix endianness warnings in mu radiotap
833ca13014ab mt76: mt7921: Add mt7922 support
8f8ed44d026e mt76: mt7915: add control knobs for thermal throttling
16f18bab6b11 mt76: mt7915: send EAPOL frames at lowest rate
affea639c586 mt76: mt7921: send EAPOL frames at lowest rate
ac00fed412d4 mt76: mt7915: fix potential overflow of eeprom page index [update]
e576ddb76dfa mt76: mt7915: switch proper tx arbiter mode in testmode
222847c3d5eb mt76: mt7915: fix bit fields for HT rate idx
d04814366c83 mt76: add support for setting mcast rate
4602acc9271a mt76: mt7921: fix dma hang in rmmod
ec2cf3bf96fd mt76: connac: fix GTK rekey offload failure on WPA mixed mode
2fdb9d621431 mt76: connac: add support for limiting to maximum regulatory Tx power
489ace63d42c mt76: mt7921: get rid of monitor_vif
22da8d28fcc8 mt76: mt7921: get rid of mt7921_mac_set_beacon_filter
c94130519786 mt76: mt7921: introduce mt7921_mcu_set_beacon_filter utility routine
51cff39d7ad3 mt76: overwrite default reg_ops if necessary
da11c1c6edef mt76: mt7615: move mt7615_mcu_set_p2p_oppps in mt76_connac module
47f50b0aa4b8 mt76: mt7921: report HE MU radiotap
4f48ba4b0254 mt76: mt7915: checkpatch cleanup
bc7ee7d7bdea mt76: mt7915: add HE-LTF into fixed rate command
6a19e40820aa mt76: mt7921: continue to probe driver when fw already downloaded
8b3d8e2de084 mt76: mt7921: fix firmware usage of RA info using legacy rates
17305a54b166 mt76: mt7921: fix kernel warning from cfg80211_calculate_bitrate
801c15577293 mt76: mt7921: fix endianness warnings in mt7921_mac_decode_he_mu_radiotap
0182a5b99a7a mt76: mt7915: update mac timing settings
e2ee9d0a33ed mt76: use IEEE80211_OFFLOAD_ENCAP_ENABLED instead of MT_DRV_AMSDU_OFFLOAD
fa6504aceb4f Revert "mt76: mt7915: checkpatch cleanup"
56b842b72a72 mt76: mt7915: fix wmm index on DBDC cards
8044311f5de5 mt76: mt7915: fix potential NPE in TXS processing
28da4baec7c5 mt76: mt7915: fix he_mcs capabilities for 160mhz
f7088ebe7452 mt76: mt7915: add LED support
ee019046284d mt76: mt7915: introduce bss coloring support
9848094e4bb5 mt76: mt7921: Fix fall-through warning for Clang
5710d0643418 mt76: add a bound check in mt76_calculate_default_rate()
a509cf2b654e mt76: mt7921: move mt7921_queue_rx_skb to mac.c
5a0f2382fcfe mt76: mt7915: rework debugfs queue info
62ffc31f4d7b mt76: mt7915: rename debugfs tx-queues
4750b5c918e5 mt76: mt7921: always wake device if necessary in debugfs
ac6adf74b3f2 mt76: mt7921: update mib counters dumping phy stats
eb75b9266ce6 net🛜mt76: fix boolreturn.cocci warnings
d7c4698435b3 mt76: mt7921: fix the inconsistent state between bind and unbind
9dcfba3169c4 mt76: switch from 'pci_' to 'dma_' API
d8b5e42c9a73 mt76: fill boottime_ns in Rx path
8ee6446075f2 mt76: disable BH around napi_schedule() calls
e17d730bf2f6 mt76: mt7915: add LED support [update to v3]
80fe40c9457e mt76: mt7915: enable configured beacon tx rate
c8f0d1d81d05 mt76: mt7915: fix hwmon temp sensor mem use-after-free
3b9ba7e02076 mt76: mt7615: fix hwmon temp sensor mem use-after-free
5e82eceb45cb mt76: mt7921: start reworking tx rate reporting
eb66b5c9ff77 mt76: mt7921: add support for tx status reporting
c8010f170e76 mt76: mt7921: report tx rate directly from tx status
4dc7f3db572b mt76: mt7921: remove mcu rate reporting code
db89c6f86724 mt76: mt7921: remove mt7921_sta_stats
6bb8b4267dbe mt76: move spin_lock_bh to spin_lock in tasklet
0eacf41985da mt76: mt7915: honor all possible error conditions in mt7915_mcu_init()
4dfff296ee6e mt76: mt7915: fix possible infinite loop release semaphore
537ed88dd2d0 mt76: mt7921: robustify hardware initialization flow
e0b846159221 mt76: mt7921: fix retrying release semaphore without end
c55dedcea268 mt76: mt7915: add ethtool stats support
d1d5e8cd3a3e mt76: mt7915: add tx stats gathered from tx-status callbacks
1687189d68b7 mt76: mt7915: add some per-station tx stats to ethtool
f4dde5f765af mt76: mt7915: add tx mu/su counters to mib
9752bf0643c9 mt76: mt7915: add more MIB registers
4727415017c9 mt76: mt7915: add mib counters to ethtool stats
4ca80a749e7f mt76: connac: set 6G phymode in mt76_connac_get_phy_mode{,v2}
3f2a5d39631e mt76: connac: enable 6GHz band for hw scan
817a41826bd7 mt76: connac: add 6GHz support to mt76_connac_mcu_set_channel_domain
a6ab81c21080 mt76: connac: set 6G phymode in single-sku support
ca4f47028a44 mt76: connac: add 6GHz support to mt76_connac_mcu_sta_tlv
d2e192ea81e2 mt76: connac: add 6GHz support to mt76_connac_mcu_uni_add_bss
c3dd12b4c8ae mt76: connac: enable hw amsdu @ 6GHz
91ed2b256c20 mt76: add 6GHz support
de8c4f92621f mt76: mt7921: add 6GHz support
f143aedc1d57 mt76: introduce packet_id idr
bcc8d9e03a5d mt76: remove mt76_wcid pointer from mt76_tx_status_check signature
ccbd84763153 mt76: substitute sk_buff_head status_list with spinlock_t status_lock
69bb59df894c mt76: schedule status timeout at dma completion
03a992645310 mt76: support reading EEPROM data embedded in fdt
75615480b3fe mt76: introduce __mt76_mcu_send_firmware routine
e8e2eae41f94 mt76: drop MCU header size from buffer size in __mt76_mcu_send_firmware
4c455e8b1a20 mt76: mt7915: introduce __mt7915_get_tsf routine
9d49c611a2d7 mt76: mt7915: introduce mt7915_mcu_twt_agrt_update mcu command
f44ca79c9aed mt76: mt7915: introduce mt7915_mac_add_twt_setup routine
2f9555a2f18f mt76: mt7915: enable twt responder capability
440e2db8d541 mt76: mt7915: add twt_stats knob in debugfs
eb5f640f8afa mt76: debugfs: improve queue node readability
53d7eb3b4884 mt76: mt7615: fix monitor mode tear down crash
2aa3d4414826 mt76: mt7921: add delay config for sched scan
47e8e96e8e4d mt76: use a separate CCMP PN receive counter for management frames
5560b08f8e2d mt76: do not access 802.11 header in ccmp check for 802.3 rx skbs
Signed-off-by: Felix Fietkau <nbd@nbd.name>
448 lines
12 KiB
Makefile
448 lines
12 KiB
Makefile
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=mt76
|
|
PKG_RELEASE=4
|
|
|
|
PKG_LICENSE:=GPLv2
|
|
PKG_LICENSE_FILES:=
|
|
|
|
PKG_SOURCE_URL:=https://github.com/openwrt/mt76
|
|
PKG_SOURCE_PROTO:=git
|
|
PKG_SOURCE_DATE:=2021-10-11
|
|
PKG_SOURCE_VERSION:=5560b08f8e2dfe92aa920a9cf3c5655a309dd25b
|
|
PKG_MIRROR_HASH:=36359a85325a60230838e38e087f9aecc49cf7abca0ef55b2dbee86cf9194425
|
|
|
|
PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
|
|
PKG_USE_NINJA:=0
|
|
PKG_BUILD_PARALLEL:=1
|
|
|
|
PKG_CONFIG_DEPENDS += \
|
|
CONFIG_PACKAGE_kmod-mt76-usb \
|
|
CONFIG_PACKAGE_kmod-mt76x02-common \
|
|
CONFIG_PACKAGE_kmod-mt76x0-common \
|
|
CONFIG_PACKAGE_kmod-mt76x0u \
|
|
CONFIG_PACKAGE_kmod-mt76x2-common \
|
|
CONFIG_PACKAGE_kmod-mt76x2 \
|
|
CONFIG_PACKAGE_kmod-mt76x2u \
|
|
CONFIG_PACKAGE_kmod-mt7603 \
|
|
CONFIG_PACKAGE_CFG80211_TESTMODE
|
|
|
|
STAMP_CONFIGURED_DEPENDS := $(STAGING_DIR)/usr/include/mac80211-backport/backport/autoconf.h
|
|
|
|
include $(INCLUDE_DIR)/kernel.mk
|
|
include $(INCLUDE_DIR)/package.mk
|
|
include $(INCLUDE_DIR)/cmake.mk
|
|
|
|
CMAKE_SOURCE_DIR:=$(PKG_BUILD_DIR)/tools
|
|
CMAKE_BINARY_DIR:=$(PKG_BUILD_DIR)/tools
|
|
|
|
define KernelPackage/mt76-default
|
|
SUBMENU:=Wireless Drivers
|
|
DEPENDS:= \
|
|
+kmod-mac80211 \
|
|
+@DRIVER_11AC_SUPPORT +@DRIVER_11N_SUPPORT
|
|
endef
|
|
|
|
define KernelPackage/mt76
|
|
SUBMENU:=Wireless Drivers
|
|
TITLE:=MediaTek MT76x2/MT7603 wireless driver (metapackage)
|
|
DEPENDS:= \
|
|
+kmod-mt76-core +kmod-mt76x2 +kmod-mt7603
|
|
endef
|
|
|
|
define KernelPackage/mt76-core
|
|
$(KernelPackage/mt76-default)
|
|
TITLE:=MediaTek MT76xx wireless driver
|
|
HIDDEN:=1
|
|
FILES:=\
|
|
$(PKG_BUILD_DIR)/mt76.ko
|
|
endef
|
|
|
|
define KernelPackage/mt76-usb
|
|
$(KernelPackage/mt76-default)
|
|
TITLE:=MediaTek MT76xx wireless driver USB support
|
|
DEPENDS += +kmod-usb-core +kmod-mt76-core
|
|
HIDDEN:=1
|
|
FILES:=\
|
|
$(PKG_BUILD_DIR)/mt76-usb.ko
|
|
endef
|
|
|
|
define KernelPackage/mt76x02-usb
|
|
$(KernelPackage/mt76-default)
|
|
TITLE:=MediaTek MT76x0/MT76x2 USB wireless driver common code
|
|
DEPENDS+=+kmod-mt76-usb +kmod-mt76x02-common
|
|
HIDDEN:=1
|
|
FILES:=$(PKG_BUILD_DIR)/mt76x02-usb.ko
|
|
endef
|
|
|
|
define KernelPackage/mt76x02-common
|
|
$(KernelPackage/mt76-default)
|
|
TITLE:=MediaTek MT76x0/MT76x2 wireless driver common code
|
|
DEPENDS+=+kmod-mt76-core
|
|
HIDDEN:=1
|
|
FILES:=$(PKG_BUILD_DIR)/mt76x02-lib.ko
|
|
endef
|
|
|
|
define KernelPackage/mt76x0-common
|
|
$(KernelPackage/mt76-default)
|
|
TITLE:=MediaTek MT76x0 wireless driver common code
|
|
DEPENDS+=+kmod-mt76x02-common
|
|
HIDDEN:=1
|
|
FILES:=$(PKG_BUILD_DIR)/mt76x0/mt76x0-common.ko
|
|
endef
|
|
|
|
define KernelPackage/mt76x0e
|
|
$(KernelPackage/mt76-default)
|
|
TITLE:=MediaTek MT76x0E wireless driver
|
|
DEPENDS+=@PCI_SUPPORT +kmod-mt76x0-common
|
|
FILES:=\
|
|
$(PKG_BUILD_DIR)/mt76x0/mt76x0e.ko
|
|
AUTOLOAD:=$(call AutoProbe,mt76x0e)
|
|
endef
|
|
|
|
define KernelPackage/mt76x0u
|
|
$(KernelPackage/mt76-default)
|
|
TITLE:=MediaTek MT76x0U wireless driver
|
|
DEPENDS+=+kmod-mt76x0-common +kmod-mt76x02-usb
|
|
FILES:=\
|
|
$(PKG_BUILD_DIR)/mt76x0/mt76x0u.ko
|
|
AUTOLOAD:=$(call AutoProbe,mt76x0u)
|
|
endef
|
|
|
|
define KernelPackage/mt76x2-common
|
|
$(KernelPackage/mt76-default)
|
|
TITLE:=MediaTek MT76x2 wireless driver common code
|
|
DEPENDS+=+kmod-mt76-core +kmod-mt76x02-common
|
|
HIDDEN:=1
|
|
FILES:=$(PKG_BUILD_DIR)/mt76x2/mt76x2-common.ko
|
|
endef
|
|
|
|
define KernelPackage/mt76x2u
|
|
$(KernelPackage/mt76-default)
|
|
TITLE:=MediaTek MT76x2U wireless driver
|
|
DEPENDS+=+kmod-mt76x2-common +kmod-mt76x02-usb
|
|
FILES:=\
|
|
$(PKG_BUILD_DIR)/mt76x2/mt76x2u.ko
|
|
AUTOLOAD:=$(call AutoProbe,mt76x2u)
|
|
endef
|
|
|
|
define KernelPackage/mt76x2
|
|
$(KernelPackage/mt76-default)
|
|
TITLE:=MediaTek MT76x2 wireless driver
|
|
DEPENDS+=@PCI_SUPPORT +kmod-mt76x2-common
|
|
FILES:=\
|
|
$(PKG_BUILD_DIR)/mt76x2/mt76x2e.ko
|
|
AUTOLOAD:=$(call AutoProbe,mt76x2e)
|
|
endef
|
|
|
|
define KernelPackage/mt7603
|
|
$(KernelPackage/mt76-default)
|
|
TITLE:=MediaTek MT7603 wireless driver
|
|
DEPENDS+=@PCI_SUPPORT +kmod-mt76-core
|
|
FILES:=\
|
|
$(PKG_BUILD_DIR)/mt7603/mt7603e.ko
|
|
AUTOLOAD:=$(call AutoProbe,mt7603e)
|
|
endef
|
|
|
|
define KernelPackage/mt76-connac
|
|
$(KernelPackage/mt76-default)
|
|
TITLE:=MediaTek MT7615/MT79xx wireless driver common code
|
|
HIDDEN:=1
|
|
DEPENDS+=+kmod-mt76-core
|
|
FILES:= $(PKG_BUILD_DIR)/mt76-connac-lib.ko
|
|
endef
|
|
|
|
define KernelPackage/mt7615-common
|
|
$(KernelPackage/mt76-default)
|
|
TITLE:=MediaTek MT7615 wireless driver common code
|
|
HIDDEN:=1
|
|
DEPENDS+=@PCI_SUPPORT +kmod-mt76-core +kmod-mt76-connac +kmod-hwmon-core
|
|
FILES:= $(PKG_BUILD_DIR)/mt7615/mt7615-common.ko
|
|
endef
|
|
|
|
define KernelPackage/mt7615-firmware
|
|
$(KernelPackage/mt76-default)
|
|
TITLE:=MediaTek MT7615e firmware
|
|
DEFAULT:=PACKAGE_kmod-mt7615e
|
|
endef
|
|
|
|
define KernelPackage/mt7615e
|
|
$(KernelPackage/mt76-default)
|
|
TITLE:=MediaTek MT7615e wireless driver
|
|
DEPENDS+=@PCI_SUPPORT +kmod-mt7615-common
|
|
FILES:= $(PKG_BUILD_DIR)/mt7615/mt7615e.ko
|
|
AUTOLOAD:=$(call AutoProbe,mt7615e)
|
|
endef
|
|
|
|
define KernelPackage/mt7663-firmware-ap
|
|
$(KernelPackage/mt76-default)
|
|
TITLE:=MediaTek MT7663e firmware (optimized for AP)
|
|
endef
|
|
|
|
define KernelPackage/mt7663-firmware-sta
|
|
$(KernelPackage/mt76-default)
|
|
TITLE:=MediaTek MT7663e firmware (client mode offload)
|
|
endef
|
|
|
|
define KernelPackage/mt7663-usb-sdio
|
|
$(KernelPackage/mt76-default)
|
|
TITLE:=MediaTek MT7663 USB/SDIO shared code
|
|
DEPENDS+=+kmod-mt7615-common
|
|
HIDDEN:=1
|
|
FILES:= \
|
|
$(PKG_BUILD_DIR)/mt7615/mt7663-usb-sdio-common.ko
|
|
endef
|
|
|
|
define KernelPackage/mt7663s
|
|
$(KernelPackage/mt76-default)
|
|
TITLE:=MediaTek MT7663s wireless driver
|
|
DEPENDS+=+kmod-mmc +kmod-mt7615-common +kmod-mt7663-usb-sdio
|
|
FILES:= \
|
|
$(PKG_BUILD_DIR)/mt76-sdio.ko \
|
|
$(PKG_BUILD_DIR)/mt7615/mt7663s.ko
|
|
AUTOLOAD:=$(call AutoProbe,mt7663s)
|
|
endef
|
|
|
|
define KernelPackage/mt7663u
|
|
$(KernelPackage/mt76-default)
|
|
TITLE:=MediaTek MT7663u wireless driver
|
|
DEPENDS+=+kmod-mt76-usb +kmod-mt7615-common +kmod-mt7663-usb-sdio
|
|
FILES:= $(PKG_BUILD_DIR)/mt7615/mt7663u.ko
|
|
AUTOLOAD:=$(call AutoProbe,mt7663u)
|
|
endef
|
|
|
|
define KernelPackage/mt7915e
|
|
$(KernelPackage/mt76-default)
|
|
TITLE:=MediaTek MT7915e wireless driver
|
|
DEPENDS+=@PCI_SUPPORT +kmod-mt7615-common +kmod-hwmon-core +kmod-thermal +@DRIVER_11AX_SUPPORT
|
|
FILES:= $(PKG_BUILD_DIR)/mt7915/mt7915e.ko
|
|
AUTOLOAD:=$(call AutoProbe,mt7915e)
|
|
endef
|
|
|
|
define KernelPackage/mt7921e
|
|
$(KernelPackage/mt76-default)
|
|
TITLE:=MediaTek MT7921e wireless driver
|
|
DEPENDS+=@PCI_SUPPORT +kmod-mt76-connac
|
|
FILES:= $(PKG_BUILD_DIR)/mt7921/mt7921e.ko
|
|
AUTOLOAD:=$(call AutoProbe,mt7921e)
|
|
endef
|
|
|
|
define Package/mt76-test
|
|
SECTION:=devel
|
|
CATEGORY:=Development
|
|
TITLE:=mt76 testmode CLI
|
|
DEPENDS:=kmod-mt76-core +libnl-tiny
|
|
endef
|
|
|
|
TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include/libnl-tiny
|
|
|
|
NOSTDINC_FLAGS := \
|
|
$(KERNEL_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/autoconf.h \
|
|
-include backport/backport.h
|
|
|
|
ifdef CONFIG_PACKAGE_MAC80211_MESH
|
|
NOSTDINC_FLAGS += -DCONFIG_MAC80211_MESH
|
|
endif
|
|
|
|
ifdef CONFIG_PACKAGE_CFG80211_TESTMODE
|
|
NOSTDINC_FLAGS += -DCONFIG_NL80211_TESTMODE
|
|
PKG_MAKE_FLAGS += CONFIG_NL80211_TESTMODE=y
|
|
endif
|
|
|
|
ifdef CONFIG_PACKAGE_kmod-mt76-usb
|
|
PKG_MAKE_FLAGS += CONFIG_MT76_USB=m
|
|
endif
|
|
ifdef CONFIG_PACKAGE_kmod-mt76x02-common
|
|
PKG_MAKE_FLAGS += CONFIG_MT76x02_LIB=m
|
|
endif
|
|
ifdef CONFIG_PACKAGE_kmod-mt76x02-usb
|
|
PKG_MAKE_FLAGS += CONFIG_MT76x02_USB=m
|
|
endif
|
|
ifdef CONFIG_PACKAGE_kmod-mt76x0-common
|
|
PKG_MAKE_FLAGS += CONFIG_MT76x0_COMMON=m
|
|
endif
|
|
ifdef CONFIG_PACKAGE_kmod-mt76x0e
|
|
PKG_MAKE_FLAGS += CONFIG_MT76x0E=m
|
|
endif
|
|
ifdef CONFIG_PACKAGE_kmod-mt76x0u
|
|
PKG_MAKE_FLAGS += CONFIG_MT76x0U=m
|
|
endif
|
|
ifdef CONFIG_PACKAGE_kmod-mt76x2-common
|
|
PKG_MAKE_FLAGS += CONFIG_MT76x2_COMMON=m
|
|
endif
|
|
ifdef CONFIG_PACKAGE_kmod-mt76x2
|
|
PKG_MAKE_FLAGS += CONFIG_MT76x2E=m
|
|
endif
|
|
ifdef CONFIG_PACKAGE_kmod-mt76x2u
|
|
PKG_MAKE_FLAGS += CONFIG_MT76x2U=m
|
|
endif
|
|
ifdef CONFIG_PACKAGE_kmod-mt7603
|
|
PKG_MAKE_FLAGS += CONFIG_MT7603E=m
|
|
endif
|
|
ifdef CONFIG_PACKAGE_kmod-mt76-connac
|
|
PKG_MAKE_FLAGS += CONFIG_MT76_CONNAC_LIB=m
|
|
endif
|
|
ifdef CONFIG_PACKAGE_kmod-mt7615-common
|
|
PKG_MAKE_FLAGS += CONFIG_MT7615_COMMON=m
|
|
endif
|
|
ifdef CONFIG_PACKAGE_kmod-mt7615e
|
|
PKG_MAKE_FLAGS += CONFIG_MT7615E=m
|
|
ifdef CONFIG_TARGET_mediatek_mt7622
|
|
PKG_MAKE_FLAGS += CONFIG_MT7622_WMAC=y
|
|
NOSTDINC_FLAGS += -DCONFIG_MT7622_WMAC
|
|
endif
|
|
endif
|
|
ifdef CONFIG_PACKAGE_kmod-mt7663-usb-sdio
|
|
PKG_MAKE_FLAGS += CONFIG_MT7663_USB_SDIO_COMMON=m
|
|
endif
|
|
ifdef CONFIG_PACKAGE_kmod-mt7663s
|
|
PKG_MAKE_FLAGS += CONFIG_MT76_SDIO=m
|
|
PKG_MAKE_FLAGS += CONFIG_MT7663S=m
|
|
endif
|
|
ifdef CONFIG_PACKAGE_kmod-mt7663u
|
|
PKG_MAKE_FLAGS += CONFIG_MT7663U=m
|
|
endif
|
|
ifdef CONFIG_PACKAGE_kmod-mt7915e
|
|
PKG_MAKE_FLAGS += CONFIG_MT7915E=m
|
|
endif
|
|
ifdef CONFIG_PACKAGE_kmod-mt7921e
|
|
PKG_MAKE_FLAGS += CONFIG_MT7921E=m
|
|
endif
|
|
|
|
define Build/Compile
|
|
+$(MAKE) $(PKG_JOBS) -C "$(LINUX_DIR)" \
|
|
$(KERNEL_MAKE_FLAGS) \
|
|
$(PKG_MAKE_FLAGS) \
|
|
M="$(PKG_BUILD_DIR)" \
|
|
NOSTDINC_FLAGS="$(NOSTDINC_FLAGS)" \
|
|
modules
|
|
$(MAKE) -C $(PKG_BUILD_DIR)/tools
|
|
endef
|
|
|
|
define Build/Install
|
|
:
|
|
endef
|
|
|
|
define Package/kmod-mt76/install
|
|
true
|
|
endef
|
|
|
|
define KernelPackage/mt76x0-common/install
|
|
$(INSTALL_DIR) $(1)/lib/firmware/mediatek
|
|
cp \
|
|
$(PKG_BUILD_DIR)/firmware/mt7610e.bin \
|
|
$(1)/lib/firmware/mediatek
|
|
endef
|
|
|
|
define KernelPackage/mt76x2-common/install
|
|
$(INSTALL_DIR) $(1)/lib/firmware
|
|
cp \
|
|
$(PKG_BUILD_DIR)/firmware/mt7662_rom_patch.bin \
|
|
$(PKG_BUILD_DIR)/firmware/mt7662.bin \
|
|
$(1)/lib/firmware
|
|
endef
|
|
|
|
define KernelPackage/mt76x0u/install
|
|
$(INSTALL_DIR) $(1)/lib/firmware/mediatek
|
|
ln -sf mt7610e.bin $(1)/lib/firmware/mediatek/mt7610u.bin
|
|
endef
|
|
|
|
define KernelPackage/mt76x2u/install
|
|
$(INSTALL_DIR) $(1)/lib/firmware/mediatek
|
|
ln -sf ../mt7662.bin $(1)/lib/firmware/mediatek/mt7662u.bin
|
|
ln -sf ../mt7662_rom_patch.bin $(1)/lib/firmware/mediatek/mt7662u_rom_patch.bin
|
|
endef
|
|
|
|
define KernelPackage/mt7603/install
|
|
$(INSTALL_DIR) $(1)/lib/firmware
|
|
cp $(if $(CONFIG_TARGET_ramips_mt76x8), \
|
|
$(PKG_BUILD_DIR)/firmware/mt7628_e1.bin \
|
|
$(PKG_BUILD_DIR)/firmware/mt7628_e2.bin \
|
|
,\
|
|
$(PKG_BUILD_DIR)/firmware/mt7603_e1.bin \
|
|
$(PKG_BUILD_DIR)/firmware/mt7603_e2.bin \
|
|
) \
|
|
$(1)/lib/firmware
|
|
endef
|
|
|
|
define KernelPackage/mt7615-firmware/install
|
|
$(INSTALL_DIR) $(1)/lib/firmware/mediatek
|
|
cp \
|
|
$(PKG_BUILD_DIR)/firmware/mt7615_cr4.bin \
|
|
$(PKG_BUILD_DIR)/firmware/mt7615_n9.bin \
|
|
$(PKG_BUILD_DIR)/firmware/mt7615_rom_patch.bin \
|
|
$(if $(CONFIG_TARGET_mediatek_mt7622), \
|
|
$(PKG_BUILD_DIR)/firmware/mt7622_n9.bin \
|
|
$(PKG_BUILD_DIR)/firmware/mt7622_rom_patch.bin) \
|
|
$(1)/lib/firmware/mediatek
|
|
endef
|
|
|
|
define KernelPackage/mt7663-firmware-ap/install
|
|
$(INSTALL_DIR) $(1)/lib/firmware/mediatek
|
|
cp \
|
|
$(PKG_BUILD_DIR)/firmware/mt7663_n9_rebb.bin \
|
|
$(PKG_BUILD_DIR)/firmware/mt7663pr2h_rebb.bin \
|
|
$(1)/lib/firmware/mediatek
|
|
endef
|
|
|
|
define KernelPackage/mt7663-firmware-sta/install
|
|
$(INSTALL_DIR) $(1)/lib/firmware/mediatek
|
|
cp \
|
|
$(PKG_BUILD_DIR)/firmware/mt7663_n9_v3.bin \
|
|
$(PKG_BUILD_DIR)/firmware/mt7663pr2h.bin \
|
|
$(1)/lib/firmware/mediatek
|
|
endef
|
|
|
|
define KernelPackage/mt7915e/install
|
|
$(INSTALL_DIR) $(1)/lib/firmware/mediatek
|
|
cp \
|
|
$(PKG_BUILD_DIR)/firmware/mt7915_wa.bin \
|
|
$(PKG_BUILD_DIR)/firmware/mt7915_wm.bin \
|
|
$(PKG_BUILD_DIR)/firmware/mt7915_rom_patch.bin \
|
|
$(1)/lib/firmware/mediatek
|
|
endef
|
|
|
|
define KernelPackage/mt7921e/install
|
|
$(INSTALL_DIR) $(1)/lib/firmware/mediatek
|
|
cp \
|
|
$(PKG_BUILD_DIR)/firmware/WIFI_MT7961_patch_mcu_1_2_hdr.bin \
|
|
$(PKG_BUILD_DIR)/firmware/WIFI_RAM_CODE_MT7961_1.bin \
|
|
$(1)/lib/firmware/mediatek
|
|
endef
|
|
|
|
define Package/mt76-test/install
|
|
mkdir -p $(1)/usr/sbin
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/tools/mt76-test $(1)/usr/sbin
|
|
endef
|
|
|
|
$(eval $(call KernelPackage,mt76-core))
|
|
$(eval $(call KernelPackage,mt76-usb))
|
|
$(eval $(call KernelPackage,mt76x02-usb))
|
|
$(eval $(call KernelPackage,mt76x02-common))
|
|
$(eval $(call KernelPackage,mt76x0-common))
|
|
$(eval $(call KernelPackage,mt76x0e))
|
|
$(eval $(call KernelPackage,mt76x0u))
|
|
$(eval $(call KernelPackage,mt76x2-common))
|
|
$(eval $(call KernelPackage,mt76x2u))
|
|
$(eval $(call KernelPackage,mt76x2))
|
|
$(eval $(call KernelPackage,mt7603))
|
|
$(eval $(call KernelPackage,mt76-connac))
|
|
$(eval $(call KernelPackage,mt7615-common))
|
|
$(eval $(call KernelPackage,mt7615-firmware))
|
|
$(eval $(call KernelPackage,mt7615e))
|
|
$(eval $(call KernelPackage,mt7663-firmware-ap))
|
|
$(eval $(call KernelPackage,mt7663-firmware-sta))
|
|
$(eval $(call KernelPackage,mt7663-usb-sdio))
|
|
$(eval $(call KernelPackage,mt7663u))
|
|
$(eval $(call KernelPackage,mt7663s))
|
|
$(eval $(call KernelPackage,mt7915e))
|
|
$(eval $(call KernelPackage,mt7921e))
|
|
$(eval $(call KernelPackage,mt76))
|
|
$(eval $(call BuildPackage,mt76-test))
|