set(soc_scene_list "ascend310rc" "helper310p")
set(product_list "ascend310p" "ascend910" "ascend910B" "ascend310B")
if ((${PRODUCT} STREQUAL ascend950) OR (${PRODUCT} STREQUAL ascend950esl) OR (${PRODUCT} STREQUAL ascend910_55) OR (${PRODUCT} STREQUAL ascend910_55esl) OR (${PRODUCT} STREQUAL ascend910_96) OR (${PRODUCT} STREQUAL ascend910_96esl))
    set(asdrv_buff_depends asdrv_ub asdrv_dms asdrv_pbl)
elseif (${PRODUCT} IN_LIST soc_scene_list)
    set(asdrv_buff_depends asdrv_pbl asdrv_dms)
elseif (${PRODUCT} STREQUAL ascend310Brc)
    set(asdrv_buff_depends asdrv_pbl asdrv_dms)
elseif (${PRODUCT} IN_LIST product_list)
    set(asdrv_buff_depends asdrv_pbl asdrv_dms drv_pcie)
else ()
    set(asdrv_buff_depends asdrv_pbl asdrv_dms drv_pcie)
endif()

add_device_ko(LOCAL_MODULE asdrv_buff
              KO_SRC_FOLDER ${CMAKE_CURRENT_SOURCE_DIR}
              MAKE_ARGS ${MAKE_ARGS}
              TARGETE_DPENDS "${asdrv_buff_depends}")
