When build with the psa_crypto_driver, it will try to include common.h of mbedtls, but actually include the common.h from hostap, and causes build error of undefined symbol. Now link the library of hostap to use the header file in /utils path, to fix the build error. Signed-off-by: Maochen Wang <maochen.wang@nxp.com>
10 lines
278 B
CMake
10 lines
278 B
CMake
# Copyright 2022-2024 NXP
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
if (CONFIG_WIFI_NXP)
|
|
|
|
zephyr_library_sources(nxp_wifi_drv.c)
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_NXP_WIFI_SHELL nxp_wifi_shell.c)
|
|
zephyr_library_link_libraries_ifdef(CONFIG_WIFI_NM_WPA_SUPPLICANT hostap)
|
|
endif()
|