Add libcper recipe

Design doc is located at:
https://github.com/openbmc/docs/blob/master/designs/cper-records.md

Change-Id: I9a510b5fc2bc2b14e32d7777e6036aacb33e20b8
Signed-off-by: Ed Tanous <etanous@nvidia.com>
diff --git a/meta-phosphor/recipes-phosphor/libcper/libcper_git.bb b/meta-phosphor/recipes-phosphor/libcper/libcper_git.bb
new file mode 100644
index 0000000..cf971c5
--- /dev/null
+++ b/meta-phosphor/recipes-phosphor/libcper/libcper_git.bb
@@ -0,0 +1,22 @@
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=a832eda17114b48ae16cda6a500941c2"
+
+DEPENDS = " \
+    json-c \
+    ${@bb.utils.contains('PTEST_ENABLED', '1', 'gtest', '', d)} \
+    ${@bb.utils.contains('PTEST_ENABLED', '1', 'gmock', '', d)} \
+    "
+
+PV = "1.0+git${SRCPV}"
+SRCREV = "4482c48b6e2ccf85f03f680a59e0d4ad0ab4e3c5"
+
+SRC_URI = "git://git@github.com/openbmc/libcper.git;protocol=ssh;branch=main"
+
+S = "${WORKDIR}/git"
+
+inherit pkgconfig meson ptest
+
+EXTRA_OEMESON = " \
+    -Dtests=${@bb.utils.contains('PTEST_ENABLED', '1', 'enabled', 'disabled', d)} \
+"
+