mario Sangalli

iMX8 Android9 fails to build a new target

Discussion created by mario Sangalli on Sep 11, 2019
Latest reply on Sep 16, 2019 by Tai Vuong

Hi, all, I've succesflully build the imx-p9.0.0_1.1.0-ga for evk_8mm demo board: now I will want to build a new target.

I've started coping  the android_build\device\fsl\imx8m\evk_8mm into android_build\device\fsl\imx8m\my_8mm and

changed, and just only the out directory reference in makefile (


builds fails with this messages:

hardware/qcom/bt/msm8992/libbt-vendor/src/hci_uart.c:215:65: error: use of undeclared identifier 'BT_HS_UART_DEVICE'
    snprintf(vnd_userial.port_name, VND_PORT_NAME_MAXLEN, "%s", BT_HS_UART_DEVICE);
hardware/qcom/bt/msm8992/libbt-vendor/src/hci_uart.c:376:71: error: use of undeclared identifier 'BT_HS_UART_DEVICE'
        ALOGE( "%s: uart port(%s) has not been opened", __FUNCTION__, BT_HS_UART_DEVICE )


If I disable the Qualcomm BT


compilation will be completed, Androis starts  but BTdon't works.

I've not found any differenve between evk_8mm and my_8mm target: anyway compilation fails

if BOARD_HAVE_BLUETOOTH_QCOM is true... any suggestion on how to fix this problem?

Thanks in advance

M. Sangalli