Add mock_fw_inspector
The mock_fw_inspector provides an implementation of the
fw_inspector interface to populate the fw_directory with
mock information about images that can be updated. Intended
only for test.
Signed-off-by: Julian Hall <julian.hall@arm.com>
Change-Id: I8706e76f3399f4a71fd2891982e2fcd0b1605a19
diff --git a/components/service/fwu/inspector/mock/component.cmake b/components/service/fwu/inspector/mock/component.cmake
new file mode 100644
index 0000000..fce467d
--- /dev/null
+++ b/components/service/fwu/inspector/mock/component.cmake
@@ -0,0 +1,13 @@
+#-------------------------------------------------------------------------------
+# Copyright (c) 2022, Arm Limited and Contributors. All rights reserved.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+#-------------------------------------------------------------------------------
+if (NOT DEFINED TGT)
+ message(FATAL_ERROR "mandatory parameter TGT is not defined.")
+endif()
+
+target_sources(${TGT} PRIVATE
+ "${CMAKE_CURRENT_LIST_DIR}/mock_fw_inspector.c"
+ )