Add media top-level directory for storage medium access components

Introduces the top-level media directory for components concerned
with accessing storage media using well-known formats. Reuses
external source code from TF-A where possible.

Signed-off-by: Julian Hall <julian.hall@arm.com>
Change-Id: I5fa2cb24aa33f019df5108e80ccd78f0170e4c0b
diff --git a/components/media/partition_table/component.cmake b/components/media/partition_table/component.cmake
new file mode 100644
index 0000000..0cb3125
--- /dev/null
+++ b/components/media/partition_table/component.cmake
@@ -0,0 +1,19 @@
+#-------------------------------------------------------------------------------
+# 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()
+
+#-------------------------------------------------------------------------------
+# Depends on the tf-a external component
+#-------------------------------------------------------------------------------
+set(_DISK_UEFI_DIR "${TFA_SOURCE_DIR}/drivers/partition")
+
+target_sources(${TGT} PRIVATE
+	"${_DISK_UEFI_DIR}/gpt.c"
+	"${_DISK_UEFI_DIR}/partition.c"
+)
\ No newline at end of file