Update Makefile

This commit is contained in:
padavanonly 2024-02-24 23:04:33 +08:00 committed by GitHub
parent b58c468729
commit 6f35f2b8e0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -8,7 +8,7 @@ include $(INCLUDE_DIR)/kernel.mk
PKG_NAME:=mt_wifi
MT7981_FW_DIR := mt7981-fw-20230411
MT7981_FW_DIR := mt7981-fw-20230330
MT7986_FW_DIR := mt7986-fw-20230808
ifeq ($(CONFIG_MTK_CHIP_MT7981),y)
@ -299,13 +299,6 @@ define KernelPackage/mt_wifi/config
source "$(SOURCE)/config.in"
endef
define FIXUP_NEW_MCU_FW_API
@if [ "$$(CONFIG_MTK_MT7981_NEW_FW)" = "y" ] || [ "$$(CONFIG_MTK_MT7986_NEW_FW)" = "y" ]; then \
echo "Fixup new mcu fw API"; \
patch -p1 -d $(PKG_BUILD_DIR) < ./files/fix-new-mcu-fw-api.patch; \
fi
endef
Hooks/Prepare/Post := FIXUP_NEW_MCU_FW_API
define Build/Compile