developer | 1ee54d0 | 2022-08-30 13:15:07 +0800 | [diff] [blame^] | 1 | From c10a255caf19008afd1394c645759c40f83d52e0 Mon Sep 17 00:00:00 2001 |
developer | 463adb3 | 2022-07-14 08:42:19 +0800 | [diff] [blame] | 2 | From: Evelyn Tsai <evelyn.tsai@mediatek.com> |
developer | 1ee54d0 | 2022-08-30 13:15:07 +0800 | [diff] [blame^] | 3 | Date: Tue, 30 Aug 2022 10:45:21 +0800 |
| 4 | Subject: [PATCH] rrr |
developer | 6b966f5 | 2022-03-25 02:46:17 +0800 | [diff] [blame] | 5 | |
| 6 | --- |
developer | 1ee54d0 | 2022-08-30 13:15:07 +0800 | [diff] [blame^] | 7 | package/kernel/mt76/Makefile | 52 +++++++++++++++++++++++++++++++++--- |
| 8 | 1 file changed, 49 insertions(+), 3 deletions(-) |
developer | 6b966f5 | 2022-03-25 02:46:17 +0800 | [diff] [blame] | 9 | |
developer | ef832a5 | 2022-07-13 16:05:35 +0800 | [diff] [blame] | 10 | diff --git a/package/kernel/mt76/Makefile b/package/kernel/mt76/Makefile |
developer | 1ee54d0 | 2022-08-30 13:15:07 +0800 | [diff] [blame^] | 11 | index ff58d27..8098cbf 100644 |
developer | ef832a5 | 2022-07-13 16:05:35 +0800 | [diff] [blame] | 12 | --- a/package/kernel/mt76/Makefile |
| 13 | +++ b/package/kernel/mt76/Makefile |
developer | 1ee54d0 | 2022-08-30 13:15:07 +0800 | [diff] [blame^] | 14 | @@ -220,7 +220,7 @@ endef |
developer | 6b966f5 | 2022-03-25 02:46:17 +0800 | [diff] [blame] | 15 | |
| 16 | define KernelPackage/mt7915e |
| 17 | $(KernelPackage/mt76-default) |
| 18 | - TITLE:=MediaTek MT7915e wireless driver |
| 19 | + TITLE:=MediaTek MT7915e/MT7986/MT7916 wireless driver |
| 20 | DEPENDS+=@PCI_SUPPORT +kmod-mt7615-common +kmod-hwmon-core +kmod-thermal +@DRIVER_11AX_SUPPORT +@KERNEL_RELAY |
| 21 | FILES:= $(PKG_BUILD_DIR)/mt7915/mt7915e.ko |
| 22 | AUTOLOAD:=$(call AutoProbe,mt7915e) |
developer | 1ee54d0 | 2022-08-30 13:15:07 +0800 | [diff] [blame^] | 23 | @@ -228,10 +228,18 @@ endef |
| 24 | |
| 25 | define KernelPackage/mt7986-firmware |
| 26 | $(KernelPackage/mt76-default) |
| 27 | - DEPENDS:=@TARGET_mediatek_filogic |
| 28 | + DEPENDS:=+@TARGET_mediatek_mt7986 |
| 29 | TITLE:=MediaTek MT7986 firmware |
developer | 6b966f5 | 2022-03-25 02:46:17 +0800 | [diff] [blame] | 30 | endef |
| 31 | |
developer | cbf91b3 | 2022-06-23 22:15:56 +0800 | [diff] [blame] | 32 | +define KernelPackage/besra |
developer | 6b966f5 | 2022-03-25 02:46:17 +0800 | [diff] [blame] | 33 | + $(KernelPackage/mt76-default) |
| 34 | + TITLE:=MediaTek MT7902/MT7990 wireless driver |
developer | b237e3a | 2022-06-10 11:48:11 +0800 | [diff] [blame] | 35 | + DEPENDS+=@PCI_SUPPORT +kmod-mt76-core +kmod-mt76-connac +kmod-hwmon-core +kmod-thermal +@DRIVER_11AX_SUPPORT +@DRIVER_11BE_SUPPORT |
developer | cbf91b3 | 2022-06-23 22:15:56 +0800 | [diff] [blame] | 36 | + FILES:= $(PKG_BUILD_DIR)/besra/besra.ko |
| 37 | + AUTOLOAD:=$(call AutoProbe,besra) |
developer | 6b966f5 | 2022-03-25 02:46:17 +0800 | [diff] [blame] | 38 | +endef |
| 39 | + |
| 40 | define KernelPackage/mt7921-common |
| 41 | $(KernelPackage/mt76-default) |
| 42 | TITLE:=MediaTek MT7615 wireless driver common code |
developer | 1ee54d0 | 2022-08-30 13:15:07 +0800 | [diff] [blame^] | 43 | @@ -287,6 +295,11 @@ ifdef CONFIG_PACKAGE_MAC80211_MESH |
developer | 6b966f5 | 2022-03-25 02:46:17 +0800 | [diff] [blame] | 44 | NOSTDINC_FLAGS += -DCONFIG_MAC80211_MESH |
| 45 | endif |
| 46 | |
| 47 | +ifdef CONFIG_PACKAGE_MAC80211_DEBUGFS |
| 48 | + NOSTDINC_FLAGS += -DCONFIG_MAC80211_DEBUGFS |
| 49 | + PKG_MAKE_FLAGS += CONFIG_MAC80211_DEBUGFS=y |
| 50 | +endif |
| 51 | + |
| 52 | ifdef CONFIG_PACKAGE_CFG80211_TESTMODE |
| 53 | NOSTDINC_FLAGS += -DCONFIG_NL80211_TESTMODE |
| 54 | PKG_MAKE_FLAGS += CONFIG_NL80211_TESTMODE=y |
developer | 1ee54d0 | 2022-08-30 13:15:07 +0800 | [diff] [blame^] | 55 | @@ -349,11 +362,14 @@ ifdef CONFIG_PACKAGE_kmod-mt7663u |
developer | 6b966f5 | 2022-03-25 02:46:17 +0800 | [diff] [blame] | 56 | endif |
| 57 | ifdef CONFIG_PACKAGE_kmod-mt7915e |
| 58 | PKG_MAKE_FLAGS += CONFIG_MT7915E=m |
developer | 1ee54d0 | 2022-08-30 13:15:07 +0800 | [diff] [blame^] | 59 | - ifdef CONFIG_TARGET_mediatek_filogic |
| 60 | + ifdef CONFIG_TARGET_mediatek_mt7986 |
| 61 | PKG_MAKE_FLAGS += CONFIG_MT7986_WMAC=y |
| 62 | NOSTDINC_FLAGS += -DCONFIG_MT7986_WMAC |
| 63 | endif |
| 64 | endif |
developer | cbf91b3 | 2022-06-23 22:15:56 +0800 | [diff] [blame] | 65 | +ifdef CONFIG_PACKAGE_kmod-besra |
| 66 | + PKG_MAKE_FLAGS += CONFIG_BESRA=m |
developer | 1ee54d0 | 2022-08-30 13:15:07 +0800 | [diff] [blame^] | 67 | +endif |
developer | 6b966f5 | 2022-03-25 02:46:17 +0800 | [diff] [blame] | 68 | ifdef CONFIG_PACKAGE_kmod-mt7921-common |
| 69 | PKG_MAKE_FLAGS += CONFIG_MT7921_COMMON=m |
developer | 1ee54d0 | 2022-08-30 13:15:07 +0800 | [diff] [blame^] | 70 | endif |
| 71 | @@ -457,6 +473,12 @@ define KernelPackage/mt7915e/install |
developer | 6b966f5 | 2022-03-25 02:46:17 +0800 | [diff] [blame] | 72 | $(PKG_BUILD_DIR)/firmware/mt7915_wa.bin \ |
| 73 | $(PKG_BUILD_DIR)/firmware/mt7915_wm.bin \ |
| 74 | $(PKG_BUILD_DIR)/firmware/mt7915_rom_patch.bin \ |
| 75 | + $(PKG_BUILD_DIR)/firmware/mt7916_wa.bin \ |
| 76 | + $(PKG_BUILD_DIR)/firmware/mt7916_wm.bin \ |
| 77 | + $(PKG_BUILD_DIR)/firmware/mt7916_rom_patch.bin \ |
developer | 6b966f5 | 2022-03-25 02:46:17 +0800 | [diff] [blame] | 78 | + $(PKG_BUILD_DIR)/firmware/mt7916_eeprom.bin \ |
| 79 | + $(PKG_BUILD_DIR)/firmware/mt7915_eeprom.bin \ |
| 80 | + $(PKG_BUILD_DIR)/firmware/mt7915_eeprom_dbdc.bin \ |
developer | 1609265 | 2022-03-31 00:34:47 +0800 | [diff] [blame] | 81 | $(1)/lib/firmware/mediatek |
developer | 1ee54d0 | 2022-08-30 13:15:07 +0800 | [diff] [blame^] | 82 | endef |
| 83 | |
| 84 | @@ -470,9 +492,32 @@ define KernelPackage/mt7986-firmware/install |
| 85 | $(PKG_BUILD_DIR)/firmware/mt7986_rom_patch.bin \ |
| 86 | $(PKG_BUILD_DIR)/firmware/mt7986_eeprom_mt7975_dual.bin \ |
| 87 | $(PKG_BUILD_DIR)/firmware/mt7986_eeprom_mt7976_dual.bin \ |
| 88 | + $(PKG_BUILD_DIR)/firmware/mt7986_eeprom_mt7975.bin \ |
developer | 6b966f5 | 2022-03-25 02:46:17 +0800 | [diff] [blame] | 89 | + $(PKG_BUILD_DIR)/firmware/mt7986_eeprom_mt7976.bin \ |
| 90 | + $(PKG_BUILD_DIR)/firmware/mt7986_eeprom_mt7976_dbdc.bin \ |
developer | 6b966f5 | 2022-03-25 02:46:17 +0800 | [diff] [blame] | 91 | + $(1)/lib/firmware/mediatek |
developer | 1609265 | 2022-03-31 00:34:47 +0800 | [diff] [blame] | 92 | +ifdef CONFIG_NET_MEDIATEK_SOC_WED |
| 93 | + cp \ |
| 94 | + $(PKG_BUILD_DIR)/firmware/mt7986_wo_0.bin \ |
| 95 | + $(PKG_BUILD_DIR)/firmware/mt7986_wo_1.bin \ |
developer | 1ee54d0 | 2022-08-30 13:15:07 +0800 | [diff] [blame^] | 96 | $(1)/lib/firmware/mediatek |
developer | 049f58d | 2022-04-04 18:16:16 +0800 | [diff] [blame] | 97 | +endif |
developer | 1609265 | 2022-03-31 00:34:47 +0800 | [diff] [blame] | 98 | endef |
| 99 | |
developer | cbf91b3 | 2022-06-23 22:15:56 +0800 | [diff] [blame] | 100 | +ifdef CONFIG_PACKAGE_kmod-besra |
| 101 | +define KernelPackage/besra/install |
developer | 1609265 | 2022-03-31 00:34:47 +0800 | [diff] [blame] | 102 | + $(INSTALL_DIR) $(1)/lib/firmware/mediatek |
| 103 | + cp \ |
| 104 | + $(PKG_BUILD_DIR)/firmware/mt7902_wa.bin \ |
| 105 | + $(PKG_BUILD_DIR)/firmware/mt7902_wm.bin \ |
| 106 | + $(PKG_BUILD_DIR)/firmware/mt7902_rom_patch.bin \ |
| 107 | + $(PKG_BUILD_DIR)/firmware/mt7902_wf_rom.bin \ |
| 108 | + $(PKG_BUILD_DIR)/firmware/mt7902_wf_rom_sram.bin \ |
| 109 | + $(PKG_BUILD_DIR)/firmware/mt7902_eeprom.bin \ |
| 110 | + $(1)/lib/firmware/mediatek |
| 111 | +endef |
developer | 6b966f5 | 2022-03-25 02:46:17 +0800 | [diff] [blame] | 112 | +endif |
developer | 1609265 | 2022-03-31 00:34:47 +0800 | [diff] [blame] | 113 | + |
developer | 6b966f5 | 2022-03-25 02:46:17 +0800 | [diff] [blame] | 114 | define KernelPackage/mt7921e/install |
| 115 | $(INSTALL_DIR) $(1)/lib/firmware/mediatek |
developer | 1609265 | 2022-03-31 00:34:47 +0800 | [diff] [blame] | 116 | cp \ |
developer | 1ee54d0 | 2022-08-30 13:15:07 +0800 | [diff] [blame^] | 117 | @@ -513,5 +558,6 @@ $(eval $(call KernelPackage,mt7921-common)) |
developer | 1609265 | 2022-03-31 00:34:47 +0800 | [diff] [blame] | 118 | $(eval $(call KernelPackage,mt7921u)) |
| 119 | $(eval $(call KernelPackage,mt7921s)) |
| 120 | $(eval $(call KernelPackage,mt7921e)) |
developer | cbf91b3 | 2022-06-23 22:15:56 +0800 | [diff] [blame] | 121 | +$(eval $(call KernelPackage,besra)) |
developer | 1609265 | 2022-03-31 00:34:47 +0800 | [diff] [blame] | 122 | $(eval $(call KernelPackage,mt76)) |
| 123 | $(eval $(call BuildPackage,mt76-test)) |
developer | 6b966f5 | 2022-03-25 02:46:17 +0800 | [diff] [blame] | 124 | -- |
developer | 1ee54d0 | 2022-08-30 13:15:07 +0800 | [diff] [blame^] | 125 | 2.36.1 |
developer | 6b966f5 | 2022-03-25 02:46:17 +0800 | [diff] [blame] | 126 | |