aboutsummaryrefslogtreecommitdiff
path: root/platform/providers/ts/mock/platform.cmake
blob: 601974a7e4a54658333fc14984f7d089a8d47228 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#-------------------------------------------------------------------------------
# Copyright (c) 2021, Arm Limited and Contributors. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#
# Platform definition for the 'mock' platform.  This platform provides
# mock implementations for all platform driver dependences.  This should
# never be used for a production build but is useful build testing and for
# running tests that don't rely on hardware backed peripherals.
#-------------------------------------------------------------------------------
if (NOT DEFINED TGT)
	message(FATAL_ERROR "mandatory parameter TGT is not defined.")
endif()

get_property(_platform_driver_dependencies TARGET ${TGT}
	PROPERTY TS_PLATFORM_DRIVER_DEPENDENCIES
)

target_sources(${TGT} PRIVATE
	"${TS_ROOT}/platform/drivers/mock/mock_entropy.c"
)