Add GPT loader tests
Adds a disk image that encodes the reference partition configuration
used for block_store testing in a GPT. This is used for testing GPT
loading.
Signed-off-by: Julian Hall <julian.hall@arm.com>
Change-Id: Icb1fc6f408d9889a0dc263375addf89faa4ae20a
diff --git a/components/media/disk/disk_images/component.cmake b/components/media/disk/disk_images/component.cmake
new file mode 100644
index 0000000..5e4538c
--- /dev/null
+++ b/components/media/disk/disk_images/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}/ref_partition.c"
+ )