meta-openpower: Add libekb support

This library contains a copy of hardware procedures provided by
the hardware team and OpenBMC specific platform code.
The platform code is essentially required for the hardware
procedure execution. Library from this repository will provide
interfaces for executing the HWP from the OpenBMC.

libekb library is based on Hardware Procedure Framework.

Framework: This is the set of code providing an environment
in which the Hardware (HW) Procedure runs.
It consists of:
   - A standard set of interfaces which the HW Procedure is
   designed and coded to use
   - A platform/environment-specific implementation of the
     standard interfaces which allows the common HW Procedure
     to run in the target environment.

Hardware Procedure (HWP): This is the common code which runs
inside a Framework and provides the hardware-specific logic
for controlling some portion of the system hardware.

Invocation Environment: This is the platform/environment-specific
path(s) in which a HWP may be executed.

This commits enables the HWP execution environment with help of
OpenPOWER pdbg and pub-ekb repository provided back-ends.

Repository: https://github.com/open-power/libekb_p10

Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
Change-Id: I11e2fb6b9f94f87dad17173d20f7ca2e0e96af41
diff --git a/meta-openpower/recipes-bsp/libekb/libekb_git.bb b/meta-openpower/recipes-bsp/libekb/libekb_git.bb
new file mode 100644
index 0000000..ac650a4
--- /dev/null
+++ b/meta-openpower/recipes-bsp/libekb/libekb_git.bb
@@ -0,0 +1,27 @@
+HOMEPAGE =  "https://github.com/open-power/libekb_p10"
+
+SUMMARY     = "Hardware Procedure Framework"
+DESCRIPTION = "Provides infrastructure to run hardware procedures"
+PR = "r1"
+PV = "1.0+git${SRCPV}"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://${S}/LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
+
+S = "${WORKDIR}/git"
+
+require recipes-bsp/ekb/ekb.inc
+
+inherit autotools \
+        python3native \
+        perlnative
+
+SRCREV_FORMAT = "libekb_ekb"
+
+SRCREV_libekb = "a68c2f610243d3f128f561c4451135241aedbf6b"
+SRCREV_ekb = "${EKB_REV}"
+
+SRC_URI = "git://git@github.com/open-power/libekb_p10;branch="main";name=libekb \
+           ${EKB_URI};name=ekb;destsuffix=git/ekb \
+           "
+
+DEPENDS = "pdbg libxml-simple-perl-native"