Add fdt helper component

Add a new component that implements helper functions on top of libfdt.

Signed-off-by: Balint Dobszay <balint.dobszay@arm.com>
Change-Id: I43a4562433b6e81d5f5e4944c2161d5b542f537b
diff --git a/components/common/fdt/component.cmake b/components/common/fdt/component.cmake
new file mode 100644
index 0000000..77656e9
--- /dev/null
+++ b/components/common/fdt/component.cmake
@@ -0,0 +1,15 @@
+#-------------------------------------------------------------------------------
+# 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}/fdt_helpers.c"
+)
+
+include(../../../external/libfdt/libfdt.cmake)