diff options
Diffstat (limited to 'platform/providers/ts/mock/platform.cmake')
-rw-r--r-- | platform/providers/ts/mock/platform.cmake | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/platform/providers/ts/mock/platform.cmake b/platform/providers/ts/mock/platform.cmake new file mode 100644 index 000000000..601974a7e --- /dev/null +++ b/platform/providers/ts/mock/platform.cmake @@ -0,0 +1,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" +) |