mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-23 23:42:43 +00:00
e045e40671
833b9d7fcf7f mt76: allow drivers to drop rx packets early f703084f31cb mt76: mt7915: process txfree and txstatus without allocating skbs 047b9a9e78b3 mt76: mt7615: in debugfs queue stats, skip wmm index 3 on mt7663 fea36e02075c mt76: only kick tx queue if frames were queued 8381e54ebfb5 linux-firmware: update firmware for MT7921 WiFi device d57dadb8c861 Revert "mt76: only kick tx queue if frames were queued" 3a21d6e2153b mt76: mt7663: disable 4addr capability f1d66cf7a6c5 mt76: connac: fix possible NULL pointer dereference in mt76_connac_get_phy_mode_v2 c9a4146404d4 sync with upstream 4ed8c910b94e mt76: mt7921: fix possible resume failure bf105aa6cd2f mt76: mt7921: fix network buffer leak by txs missing e2b454b6fb30 mt76: connac: introduce MCU_EXT macros 5a87f5497c9b mt76: connac: align MCU_EXT definitions with 7915 driver 720ddc32507d mt76: connac: remove MCU_FW_PREFIX bit da5128a59eda mt76: connac: introduce MCU_UNI_CMD macro 116109bee7cb mt76: connac: introduce MCU_CE_CMD macro f96fbdf038d5 mt76: connac: rely on MCU_CMD macro 922f0d408413 mt76: mt7915: rely on mt76_connac definitions b4ae1da1d1e0 mt76: mt7921: reduce log severity levels for informative messages db105a722b87 mt76: mt7921s: make pm->suspended usage consistent e2cc063238c0 mt76: mt7921s: fix suspend error with enlarging mcu timeout value 812b73f2f1e0 mt76: mt7915: introduce mt76_vif in mt7915_vif b041a8a30055 mt76: mt7915: add mu-mimo and ofdma debugfs knobs b851a3e7839d mt76: mt7921: remove dead definitions 266c7a9f2994 mt76: connac: rely on le16_add_cpu in mt76_connac_mcu_add_nested_tlv 19cc7d83190c mt76: mt7921: clear pm->suspended in mt7921_mac_reset_work 928c4550e413 mt76: mt7921s: make pm->suspended usage consistent [update] 8d6c68a7d0d1 mt76: mt7921: fix possible resume failure [update] 26fb105e538c mt76: mt7921s: fix cmd timeout in throughput test 9db482264389 mt76: mt7921: fix build regression 3edb87cdf138 mt7915: formatting change to sync with upstream 5cad38ba247d mt76: mt7915: add mt7915_mmio_probe() as a common probing function 15f9f88b362a mt76: mt7915: refine register definition de49cf43ef34 mt76: add MT_RXQ_MAIN_WA for mt7916 6032c35f1306 mt76: mt7915: rework dma.c to adapt mt7916 changes 074d7c5381ed mt76: mt7915: add firmware support for mt7916 27b3253318e7 mt76: mt7915: rework eeprom.c to adapt mt7916 changes 030540246088 mt76: mt7915: enlarge wcid size to 544 400129c69f91 mt76: mt7915: add txfree event v3 cbbb3f65fcd0 mt76: mt7915: update rx rate reporting for mt7916 eb51c4deef0e mt76: mt7915: update mt7915_chan_mib_offs for mt7916 fb4709222028 mt76: mt7915: add mt7916 calibrated data support e758feeaf1d6 mt76: mt7915: add device id for mt7916 115ea27a5cab mt76: connac: fix sta_rec_wtbl tag len b3f922266685 mt76: mt7915: rely on mt76_connac_mcu_alloc_sta_req bac5eda1f5b2 mt76: mt7915: rely on mt76_connac_mcu_alloc_wtbl_req b44485d5c8ac mt76: mt7915: rely on mt76_connac_mcu_add_tlv routine 9cc58e254d53 mt76: connac: move mt76_connac_mcu_get_cipher in common code 60dcd9f09ff6 mt76: connac: move mt76_connac_chan_bw in common code a8d0b7d0cc60 mt76: mt7915: rely on mt76_connac_get_phy utilities 4441db30c1c1 mt76: connac: move mt76_connac_mcu_add_key in connac module 794b6f18d0fb mt76: mt7915: fix code defect 9d2a01b6cb60 mt76: set wlan_idx_hi on mt7916 2c89977b32c2 mt76: mt7915: fix kernel build warning 6c4874839830 mt76: make mt76_sar_capa static 215fdcc7ca6c mt76: mt7915: use proper aid value in mt7915_mcu_wtbl_generic_tlv in sta mode bc254718b40e mt76: mt7915: use proper aid value in mt7915_mcu_sta_basic_tlv 22fcff5ff21a mt76: sdio: lock sdio when it is needed 4669882aa595 mt76: mt7921s: clear MT76_STATE_MCU_RUNNING immediately after reset 944545855e0f mt76: mt7921s: update mt7921s_wfsys_reset sequence 854c8d076a34 mt76: mt7915: move pci specific code back to pci.c a77da27796f2 mt76: mt7915: fix warning: variable 'base' is used uninitialized 7b5e69961c71 mt76: mt7915: fix warning: variable 'flags' set but not used b5138e7b89f9 mt76: mt7921: fix a possible race enabling/disabling runtime-pm af218fbe2500 linux-firmware: update firmware for MT7921 WiFi device 31c19c467950 mt76: mt7915: remove duplicated defs in mcu.h 9198eca1b16f mt76: connac: move mt76_connac_mcu_bss_omac_tlv in connac module 829d87a93a51 mt76: connac: move mt76_connac_mcu_bss_ext_tlv in connac module 50956cf17901 mt76: connac: move mt76_connac_mcu_bss_basic_tlv in connac module bda40f4e1d5e mt76: mt7915: rely on mt76_connac_mcu_sta_ba_tlv 4728939c1d48 mt76: mt7915: rely on mt76_connac_mcu_wtbl_ba_tlv e3ae1828068b mt76: mt7915: rely on mt76_connac_mcu_sta_ba d9e9989eca07 mt76: mt7915: rely on mt76_connac_mcu_wtbl_generic_tlv 168713595fff mt76: mt7915: rely on mt76_connac_mcu_sta_basic_tlv 60394d3e3504 mt76: mt7915: rely on mt76_connac_mcu_sta_uapsd 3a79454d078d mt76: mt7915: rely on mt76_connac_mcu_wtbl_smps_tlv 9ae9aa6c1aea mt76: mt7915: rely on mt76_connac_mcu_wtbl_ht_tlv fd8cdfab91e4 mt76: mt7915: rely on mt76_connac_mcu_wtbl_hdr_trans_tlv a92024c5a5b5 mt76: connac: move mt76_connac_mcu_wtbl_update_hdr_trans in connac module 6dc585a3a274 mt76: connac: introduce is_connac_v1 utility routine 0f29d2aa5a72 mt76: connac: move mt76_connac_mcu_set_pm in connac module dcf408ff8a5e mt76: mt7921: get rid of mt7921_mcu_get_eeprom 77b2a8601fc1 mt76: mt7915: rely on mt76_connac_mcu_start_firmware 65f78dee243a mt76: connac: move mt76_connac_mcu_restart in common module 5adf5b14040b mt76: mt7915: rely on mt76_connac_mcu_patch_sem_ctrl/mt76_connac_mcu_start_patch 69bf1dabe78f mt76: mt7915: rely on mt76_connac_mcu_init_download 951b1ddd370e mt76: connac: move mt76_connac_mcu_gen_dl_mode in mt76-connac module 0826b3992238 mt76: mt7915: rely on mt76_connac_mcu_set_rts_thresh 058de6d36fa9 mt76: connac: move mt76_connac_mcu_rdd_cmd in mt76-connac module aafda86aed2b mt76: mt7921e: make dev->fw_assert usage consistent def12bef91a3 mt76: mt7921: forbid the doze mode when coredump is in progress 009414d27d37 mt76: mt76_connac: fix MCU_CE_CMD_SET_ROC definition error 3c5856eca223 mt76: mt7921: set EDCA parameters with the MCU CE command 01a3d73b452e mt76: mt7615: fix a possible race enabling/disabling runtime-pm 123ed864d1ae mt76: mt7921e: process txfree and txstatus without allocating skbs 018f98abba68 mt76: connac: add support for passing the cipher field in bss_info 288e7443e35c mt76: mt7615: update bss_info with cipher after setting the group key 36e1577cb3d3 mt76: mt7915: update bss_info with cipher after setting the group key d42590d8fcc8 mt76: make cipher in struct mt76_vif u8 instead of enum 11602b8505c6 mt76: mt7615e: process txfree and txstatus without allocating skbs 2ef775c10bd3 linux-firmware: add firmware for MT7916 976ea3879730 mt76: mt7915: add support for passing chip/firmware debug data to user space d11bd7bd83f4 tools: add support for sending firmware debug data via udp dc8e2e8dcd34 mt76: mt7921: do not always disable fw runtime-pm 7063127f852b mt76: mt7921: fix a leftover race in runtime-pm f78f4334b0b2 mt76: mt7615: fix a leftover race in runtime-pm f1f94d19c160 mt76: mt7915: fix ht mcs in mt7915_mac_add_txs_skb() c2ff2f0d6d19 mt76: mt7921: fix ht mcs in mt7921_mac_add_txs_skb() 3e7954a0b32e mt76: mt7921s: fix mt7921s_mcu_[fw|drv]_pmctrl 3c2cc9034376 mt76: mt7921e: fix possible probe failure after reboot f7f6c6dcc6eb mt76: mt7921: fix crash when startup fails. 8656198c925b mt76: sdio: disable interrupt in mt76s_sdio_irq 6204d61ab821 mt76: mt7921: fix endianness issues in mt7921_mcu_set_tx() 68c5aa56f5f2 mt76: mt7921: toggle runtime-pm adding a monitor vif 541e4e8d3c3e mt76: mt7915: set bssinfo/starec command when adding interface 78770f741af9 mt76: mt7915: introduce mt7915_set_radar_background routine 93c03778f92e mt76: mt7915: enable radar trigger on rdd2 4c76a6c3a1f2 mt76: mt7915: introduce rdd_monitor debugfs node 5b94045f927e mt76: mt7915: report radar pattern if detected by rdd2 22094b27ff6a mt76: mt7915: enable radar background detection 4282ca57a143 mt76: connac: move mt76_connac_lmac_mapping in mt76-connac module 0f16c67657a2 mt76: mt7915: add missing DATA4_TB_SPTL_REUSE1 to mt7915_mac_decode_he_radiotap 9a16d33311a7 mt76: mt7921: remove duplicated code in mt7921_mac_decode_he_radiotap 639b55fdc95e mt76: mt7615: add support for LG LGSBWAC02 (MT7663BUN) ebbd2717a16e mt76: mt7663s: flush runtime-pm queue after waking up the device 37c3bf2256de mt76: mt7603: check sta_rates pointer in mt7603_sta_rate_tbl_update 96959bd15eef mt76: mt7615: check sta_rates pointer in mt7615_sta_rate_tbl_update 4e42e55ce636 mt76: stop the radar detector after leaving dfs channel 8b32439d5a86 mt76: mt7915: fix possible memory leak in mt7915_mcu_add_sta b4e6f0d6f15a mt76: mt7921s: fix a possible memory leak in mt7921_load_patch 15398f1e8385 mt76: mt7915: fix mcs_map in mt7915_mcu_set_sta_he_mcs() 607eda6eb032 mt76: mt7915: update max_mpdu_size in mt7915_mcu_sta_amsdu_tlv() 69d20f2e6cb0 mt76: mt7915: fix the nss setting in bitrates c3ffa536249a mt76: sdio: honor the largest Tx buffer the hardware can support e3e3562f8fa0 mt76: mt7921s: run sleep mode by default 553200cf63fd firmware: update mt7662 firmware to version 2.3 20d1fed838b9 mt76x02: improve mac error check/reset reliability 9b2ac62d6f31 mt76: mt76x02: improve tx hang detection fae295af31eb mt76: mt7915: fix/rewrite the dfs state handling logic e0f9479bf893 mt76: mt7615: fix/rewrite the dfs state handling logic 822e1135e7e1 mt76: mt76x02: use mt76_phy_dfs_state to determine radar detector state f8c0ed1e6bdf mt76: do not always copy ethhdr in reverse_frag0_hdr_trans ab9b8078427a mt76: dma: initialize skip_unmap in mt76_dma_rx_fill Signed-off-by: Felix Fietkau <nbd@nbd.name>
482 lines
13 KiB
Makefile
482 lines
13 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:=2022-02-03
|
|
PKG_SOURCE_VERSION:=ab9b8078427a9a886b11516d5725190f0e7763b0
|
|
PKG_MIRROR_HASH:=60562cf2ac2e97e654a8202bd6af2c928ca96b129edb168af29f227b6ffbc873
|
|
|
|
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/mt76-sdio
|
|
$(KernelPackage/mt76-default)
|
|
TITLE:=MediaTek MT7615/MT79xx SDIO driver common code
|
|
HIDDEN:=1
|
|
DEPENDS+=+kmod-mt76-core +kmod-mmc
|
|
FILES:= $(PKG_BUILD_DIR)/mt76-sdio.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-mt76-sdio +kmod-mt7615-common +kmod-mt7663-usb-sdio
|
|
FILES:= \
|
|
$(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 +@KERNEL_RELAY
|
|
FILES:= $(PKG_BUILD_DIR)/mt7915/mt7915e.ko
|
|
AUTOLOAD:=$(call AutoProbe,mt7915e)
|
|
endef
|
|
|
|
define KernelPackage/mt7921-common
|
|
$(KernelPackage/mt76-default)
|
|
TITLE:=MediaTek MT7615 wireless driver common code
|
|
HIDDEN:=1
|
|
DEPENDS+=+kmod-mt76-connac +@DRIVER_11AX_SUPPORT
|
|
FILES:= $(PKG_BUILD_DIR)/mt7921/mt7921-common.ko
|
|
endef
|
|
|
|
define KernelPackage/mt7921s
|
|
$(KernelPackage/mt76-default)
|
|
TITLE:=MediaTek MT7921s wireless driver
|
|
DEPENDS+=+kmod-mt76-sdio +kmod-mt7921-common
|
|
FILES:= $(PKG_BUILD_DIR)/mt7921/mt7921s.ko
|
|
AUTOLOAD:=$(call AutoProbe,mt7921s)
|
|
endef
|
|
|
|
define KernelPackage/mt7921e
|
|
$(KernelPackage/mt76-default)
|
|
TITLE:=MediaTek MT7921e wireless driver
|
|
DEPENDS+=@PCI_SUPPORT +kmod-mt7921-common
|
|
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-mt76-sdio
|
|
PKG_MAKE_FLAGS += CONFIG_MT76_SDIO=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_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-mt7921-common
|
|
PKG_MAKE_FLAGS += CONFIG_MT7921_COMMON=m
|
|
endif
|
|
ifdef CONFIG_PACKAGE_kmod-mt7921s
|
|
PKG_MAKE_FLAGS += CONFIG_MT7921S=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,mt76-sdio))
|
|
$(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,mt7921-common))
|
|
$(eval $(call KernelPackage,mt7921s))
|
|
$(eval $(call KernelPackage,mt7921e))
|
|
$(eval $(call KernelPackage,mt76))
|
|
$(eval $(call BuildPackage,mt76-test))
|