meta-openpower: Add pdata support
OpenPOWER systems uses devicetree based data structure
to manage CEC hardware information. Devicetree data
modelling mainly includes the hardware topology and attributes,
which includes the configuration data.
Devicetree data base is constructed during the build time,
based on the System specific MRW and hardware team provided
attributes, and packaged as part of Hostboot image.
pdata provides tools and libraries to manage the
phal(power hardware abstraction layer) devicetree.
Repository: https://github.com/open-power/pdata
Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
Change-Id: I2a7186210ca46d8ee99b457a2b6af61a9a8d8f96
diff --git a/meta-openpower/recipes-bsp/pdata/pdata_git.bb b/meta-openpower/recipes-bsp/pdata/pdata_git.bb
new file mode 100644
index 0000000..50f406d
--- /dev/null
+++ b/meta-openpower/recipes-bsp/pdata/pdata_git.bb
@@ -0,0 +1,27 @@
+HOMEPAGE = "https://github.com/open-power/pdata/"
+
+SUMMARY = "POWER Host data management"
+DESCRIPTION = "Devicetree based POWER host data management"
+PR = "r1"
+PV = "1.0+git${SRCPV}"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://${S}/LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
+
+S = "${WORKDIR}/git"
+
+inherit autotools \
+ perlnative
+
+SRC_URI = "git://git@github.com/open-power/pdata;branch="main""
+SRCREV = "a617306c59c81b879aeb1a3d271b5f633895efd0"
+
+DEPENDS = "pdbg \
+ libxml-simple-perl-native \
+ libxml-libxml-perl-native \
+ ekb-native \
+ autoconf-archive"
+
+PDATA_CONFARG = "CHIP=p10"
+EXTRA_OECONF = "--enable-gen_attrsinfo ${PDATA_CONFARG}"
+
+EXTRA_OEMAKE = "EKB=${STAGING_DATADIR_NATIVE}/ekb/"