mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-29 04:34:45 -04:00
There is a new build failure with MT7996E=m MT76_CORE=y and NET_AIROHA_NPU=m:
ld.lld: error: undefined symbol: airoha_npu_get
ld.lld: error: undefined symbol: airoha_npu_put
>>> referenced by npu.c
>>> drivers/net/wireless/mediatek/mt76/npu.o:(mt76_npu_init) in archive vmlinux.a
Fix this by reworking the dependency for the MT7996_NPU to only
allow enabling that when mt76_core can link against the npu driver.
To make sure this gets caught more easily in the future when additional
mt76 variants need the same dependency, also turn CONFIG_MT76_NPU into
a tristate symbol that has the same dependency.
Fixes: 7fb554b1b6 ("wifi: mt76: Introduce the NPU generic layer")
Acked-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://patch.msgid.link/20260612201519.4054683-1-arnd@kernel.org
Signed-off-by: Felix Fietkau <nbd@nbd.name>
52 lines
1.1 KiB
Plaintext
52 lines
1.1 KiB
Plaintext
# SPDX-License-Identifier: BSD-3-Clause-Clear
|
|
config MT76_CORE
|
|
tristate
|
|
select PAGE_POOL
|
|
|
|
config MT76_LEDS
|
|
bool
|
|
depends on MT76_CORE
|
|
depends on LEDS_CLASS=y || MT76_CORE=LEDS_CLASS
|
|
default y
|
|
|
|
config MT76_USB
|
|
tristate
|
|
depends on MT76_CORE
|
|
|
|
config MT76_SDIO
|
|
tristate
|
|
depends on MT76_CORE
|
|
|
|
config MT76x02_LIB
|
|
tristate
|
|
select MT76_CORE
|
|
|
|
config MT76x02_USB
|
|
tristate
|
|
select MT76_USB
|
|
|
|
config MT76_CONNAC_LIB
|
|
tristate
|
|
select MT76_CORE
|
|
|
|
config MT792x_LIB
|
|
tristate
|
|
select MT76_CONNAC_LIB
|
|
|
|
config MT792x_USB
|
|
tristate
|
|
select MT76_USB
|
|
|
|
config MT76_NPU
|
|
tristate
|
|
depends on NET_AIROHA_NPU=y || MT76_CORE=NET_AIROHA_NPU
|
|
|
|
source "drivers/net/wireless/mediatek/mt76/mt76x0/Kconfig"
|
|
source "drivers/net/wireless/mediatek/mt76/mt76x2/Kconfig"
|
|
source "drivers/net/wireless/mediatek/mt76/mt7603/Kconfig"
|
|
source "drivers/net/wireless/mediatek/mt76/mt7615/Kconfig"
|
|
source "drivers/net/wireless/mediatek/mt76/mt7915/Kconfig"
|
|
source "drivers/net/wireless/mediatek/mt76/mt7921/Kconfig"
|
|
source "drivers/net/wireless/mediatek/mt76/mt7996/Kconfig"
|
|
source "drivers/net/wireless/mediatek/mt76/mt7925/Kconfig"
|