# Copyright (c) 2023 Advanced Micro Devices, Inc. All Rights Reserved.
# SPDX-License-Identifier: MIT
add_subdirectory(common)
if(("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "cortexa72")
	OR ("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "cortexa78")
	OR ("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "cortexa53")
	OR ("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "cortexa53-32")
	OR ("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "aarch64"))
add_subdirectory(ARMv8)
elseif(("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "cortexr5")
	OR ("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "cortexr52"))
add_subdirectory(cortexr5)
elseif("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "cortexa9")
add_subdirectory(cortexa9)
else()
add_subdirectory(${CMAKE_SYSTEM_PROCESSOR})
endif()

if("${CMAKE_MACHINE}" STREQUAL "VersalNet")
add_subdirectory(platform)
endif()
