firmware: imx: depend on MAILBOX for EdgeLock Enclave driver
PATCH 1/1 firmware: imx: depend on MAILBOX for EdgeLock Enclave driver
The EdgeLock Enclave driver uses mailbox core APIs such as mbox_request_channel_byname(), mbox_free_channel(), and mbox_send_message(). The current Kconfig allows the driver to be built with COMPILE_TEST even when MAILBOX is disabled, which leads to linker failures from unresolved mailbox symbols.
Require MAILBOX explicitly so COMPILE_TEST builds still include the mailbox core when this driver is selected.
Reported-by kernel test robot <[email protected]>
Signed-off-by Pankaj Gupta <[email protected]>
--- drivers/firmware/imx/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/firmware/imx/Kconfig +1 -1
@@ -58,7 +58,7 @@ config IMX_SCMI_MISC_DRV config IMX_SEC_ENCLAVE tristate "i.MX Embedded Secure Enclave - EdgeLock Enclave Firmware driver." - depends on (IMX_MBOX && ARCH_MXC && ARM64) || COMPILE_TEST + depends on MAILBOX && ((IMX_MBOX && ARCH_MXC && ARM64) || COMPILE_TEST) select FW_LOADER default m if ARCH_MXC
Signature · 1 line
2.43.0