if (("${PRODUCT}" STREQUAL "ascend910B") OR ("${PRODUCT}" STREQUAL "ascend310B"))
    set(drv_devdrv_host)
else()
    set(drv_devdrv_host drv_devdrv_host)
endif()

set(product_list "ascend310B" "ascend310p" "ascend910" "ascend910B")
if(${PRODUCT} IN_LIST product_list)
    set(drv_queue_host_depends drv_pcie_host drv_pcie_hdc_host ${drv_devdrv_host} asdrv_svm asdrv_pbl asdrv_dms drv_seclib_host asdrv_esched ascend_kernel_open_adapt)
elseif ( (${PRODUCT} STREQUAL ascend950esl) OR (${PRODUCT} STREQUAL ascend950))
    set(drv_queue_host_depends drv_pcie_host drv_pcie_hdc_host asdrv_svm asdrv_pbl asdrv_dms drv_seclib_host asdrv_esched ascend_kernel_open_adapt)
elseif ( (${PRODUCT} STREQUAL ascend910_5591) OR (${PRODUCT} STREQUAL ascend910_5591esl) OR (${PRODUCT} STREQUAL ascend910_96) OR (${PRODUCT} STREQUAL ascend910_96esl))
    set(drv_queue_host_depends drv_pcie_host drv_pcie_hdc_host asdrv_svm asdrv_pbl asdrv_dms drv_seclib_host asdrv_esched ascend_kernel_open_adapt)
else ()
    set(drv_queue_host_depends drv_pcie_host drv_pcie_hdc_host ${drv_devdrv_host} asdrv_svm asdrv_pbl asdrv_dms drv_seclib_host asdrv_esched ascend_kernel_open_adapt)
endif()

add_host_ko(LOCAL_MODULE asdrv_queue
            KO_SRC_FOLDER ${CMAKE_CURRENT_SOURCE_DIR}
            MAKE_ARGS ${MAKE_ARGS}
            TARGETE_DPENDS "${drv_queue_host_depends}")