feat(hob): add HOB definitions to TFTF

Add necessary HOB structure definitions and HOB library to TFTF.

Signed-off-by: Kathleen Capella <kathleen.capella@arm.com>
Change-Id: I1a81cd99df52436a077a71030244ca642122497a
diff --git a/lib/hob/hob.c b/lib/hob/hob.c
new file mode 100644
index 0000000..ce35e2f
--- /dev/null
+++ b/lib/hob/hob.c
@@ -0,0 +1,20 @@
+/*
+ * Copyright (c) 2024, Arm Limited and Contributors. All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#include <stddef.h>
+#include <stdio.h>
+#include <lib/hob/hob.h>
+#include <lib/hob/hob_guid.h>
+#include <lib/hob/mmram.h>
+#include <lib/utils_def.h>
+
+#define ALIGN_UP(x, a)		((x + (a - 1)) & ~(a - 1))
+
+void tftf_dump_hob_generic_header(struct efi_hob_generic_header h)
+{
+	printf("Hob Type: 0x%x\n", h.hob_type);
+	printf("Hob Length: 0x%x\n", h.hob_length);
+}
diff --git a/lib/hob/hob.mk b/lib/hob/hob.mk
new file mode 100644
index 0000000..332738b
--- /dev/null
+++ b/lib/hob/hob.mk
@@ -0,0 +1,12 @@
+#
+# Copyright (c) 2024, Arm Limited and Contributors. All rights reserved.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+
+HOB_LIST_SOURCES	+=	$(addprefix lib/hob/,	\
+				hob.c)
+
+INCLUDES	+=	-Iinclude/lib/hob
+
+BL31_SOURCES	+=	$(HOB_LIST_SOURCES)