2022-01-06 05:14:13 +08:00
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
2023-10-19 21:05:48 +08:00
|
|
|
|
|
|
|
# 3.17 required: foreach(<loop_var>... IN ZIP_LISTS <lists>)
|
|
|
|
cmake_minimum_required(VERSION 3.17)
|
|
|
|
|
2022-04-22 07:52:35 +08:00
|
|
|
add_custom_target(topologies2)
|
2022-01-06 05:14:13 +08:00
|
|
|
|
2022-08-18 03:59:39 +08:00
|
|
|
# Check alsatplg version and build topology2 if alsatplg version is
|
|
|
|
# 1.2.7 or greater, see https://github.com/thesofproject/sof/issues/5323
|
2023-10-20 07:12:41 +08:00
|
|
|
alsatplg_version(STATUS ALSATPLG_VERSION_NUMBER)
|
|
|
|
|
|
|
|
if(NOT STATUS EQUAL 0)
|
|
|
|
message(WARNING "alsatplg error: ${STATUS}; topology2 will be skipped")
|
|
|
|
else()
|
2022-08-18 03:59:39 +08:00
|
|
|
if(${ALSATPLG_VERSION_NUMBER} VERSION_LESS "1.2.7")
|
2023-10-20 07:12:41 +08:00
|
|
|
message(WARNING "topology2 skipped. Minimum alsatplg version 1.2.7,\
|
|
|
|
found ${ALSATPLG_VERSION_NUMBER}.")
|
2022-01-06 05:14:13 +08:00
|
|
|
else()
|
|
|
|
add_dependencies(topologies topologies2)
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
2022-11-15 02:35:42 +08:00
|
|
|
# generate ABI for IPC4
|
|
|
|
add_custom_command(OUTPUT abi.conf
|
|
|
|
COMMAND > abi.conf ${CMAKE_CURRENT_SOURCE_DIR}/get_abi.sh ${SOF_ROOT_SOURCE_DIRECTORY} "ipc4"
|
|
|
|
DEPENDS ${SOF_ROOT_SOURCE_DIRECTORY}/src/include/kernel/abi.h
|
|
|
|
)
|
|
|
|
add_custom_target(abi_target
|
|
|
|
DEPENDS abi.conf
|
|
|
|
)
|
|
|
|
|
2022-12-20 17:49:14 +08:00
|
|
|
add_dependencies(topologies2 topology2_cavs topology2_ace topology2_dev)
|
2022-11-15 02:35:42 +08:00
|
|
|
add_subdirectory(avs-tplg)
|
2022-12-20 17:49:14 +08:00
|
|
|
add_subdirectory(development)
|
2022-11-15 02:35:42 +08:00
|
|
|
add_subdirectory(sof-ace-tplg)
|