I'm encountering a challenge while configuring the USBIP core in AOSP Android 11 for my NXP IMX8mp device. I've followed the steps outlined below, but USBIP-related kernel object files like usbip-core.ko and usbip-host.ko are not being generated in the expected output directory.
Steps Taken:
Kernel Build Environment Setup:
Executedmake mrproperto clean the build directory.
Set environment variables:
ARCH=arm64(assuming a 64-bit ARM architecture)
CLANG_PATH=/opt/prebuilt-android-clang(path to your prebuilt Android Clang compiler)
CROSS_COMPILE=/opt/gcc-arm-9.2-2019.12-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-(path to your ARM cross-compilation toolchain)
Kernel Configuration:
Generated an initial kernel configuration usingmake imx_v8_android_defconfig.
Opened the configuration usingmake menuconfig(or a similar tool if you prefer a text-based interface).
USBIP Core Configuration:
Enabled the following options (assuming they were not already enabled):
CONFIG_USBIP_CORE=y(enables the USBIP core)
CONFIG_USBIP_VHCI_HCD=y(enables the VHCI host controller driver)
CONFIG_USBIP_VHCI_HC_PORTS=8(sets the number of VHCI host controller ports; adjust as needed)
CONFIG_USBIP_VHCI_NR_HCS=1(sets the number of VHCI host controllers; adjust as needed)
CONFIG_USBIP_VUDC=y(enables the USB gadget driver for USBIP)
CONFIG_USBIP_DEBUG=y(enables USBIP debugging output; consider enabling only for troubleshooting)
Saved the configuration (make savedefconfig).
Kernel Build:
Executed./imx-make.sh kernel -c -j4(assumingimx-make.shis your build script; adjust the command if necessary) to build the kernel with the configured options.
I appreciate your assistance in resolving this issue.