Hi,
I downloaded the Android 15.0.0_1.0.0 (L6.6.52_2.2.0 BSP) source from the NXP site and attempted to build it. However, I encountered the following error while compiling several .cpp files:
~/imx-android-15/android_build$ lunch evk_8mp-trunk_staging-userdebug
~/imx-android-15/android_build$ ./imx-make.sh -j11 2>&1
(...)
d3d346dec8/obj/hardware/nxp/wlan/wifi_hal/wifi_hal.o.d -o out/soong/.intermediates/hardware/nxp/wlan/wifi_hal/libwifi-hal-nxp/android_vendor_arm64_armv8-a_cortex-a53_static_cfi/e560d7b19ebf7276b3e850d3d346dec8/obj/hardware/nxp/wlan/wifi_hal/wifi_hal.o hardware/nxp/wlan/wifi_hal/wifi_hal.cpp
In file included from hardware/nxp/wlan/wifi_hal/wifi_hal.cpp:43:
hardware/nxp/wlan/wifi_hal/common.h:22:10: fatal error: 'wifi_hal.h' file not found
22 | #include "wifi_hal.h"
| ^~~~~~~~~~~~
1 error generated.
[ 2% 1044/42576] //frameworks/opt/net/wifi/libwifi_system_iface:libwifi-system-iface clang++ interface_tool.cpp
ninja: build stopped: subcommand failed.
09:56:02 ninja failed with: exit status 1
#### failed to build some targets (02:05 (mm:ss)) ####* Build Host: Ubuntu Desktop 22.04 LTS
* EVK : i.MX 8M Plus
It seems that the issue is caused by the absence of the wifi_hal.h file in the hardware/nxp/wlan/wifi_hal directory.
Could you please provide guidance on how to resolve this issue?
Hi, Harvey,
I followed your instructions, and the build succeeded.
Thanks,
Best regards,
David KS
Hi,
Please follow up the guide - ANDROID_USERS_GUIDE
Configuration example as below
i.MX 8M Plus EVK board $ lunch evk_8mp-nxp_stable-userdebug
Regards
Harvey