summaryrefslogtreecommitdiff
path: root/meta-openpower/recipes-bsp/pdata/files/power-target.sh
diff options
context:
space:
mode:
authorJayanth Othayoth <ojayanth@in.ibm.com>2021-06-21 15:23:09 +0300
committerJayanth Othayoth <ojayanth@in.ibm.com>2021-06-30 16:35:28 +0300
commit942f57f515ba3761fb2051c225111172d9dc5d2e (patch)
treeb18bd9dab664e3038a559217b55bb53e597693ca /meta-openpower/recipes-bsp/pdata/files/power-target.sh
parentc938513efee90b856b135e6be55e94ac45b07733 (diff)
downloadopenbmc-942f57f515ba3761fb2051c225111172d9dc5d2e.tar.xz
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
Diffstat (limited to 'meta-openpower/recipes-bsp/pdata/files/power-target.sh')
-rwxr-xr-xmeta-openpower/recipes-bsp/pdata/files/power-target.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/meta-openpower/recipes-bsp/pdata/files/power-target.sh b/meta-openpower/recipes-bsp/pdata/files/power-target.sh
new file mode 100755
index 000000000..10c985050
--- /dev/null
+++ b/meta-openpower/recipes-bsp/pdata/files/power-target.sh
@@ -0,0 +1,6 @@
+# Command line debug tools like pdbg and ecmd requires
+# PDBG_DTB environment variable.
+# attributes tool required both PDBG_DTB and PDATA_INFODB.
+
+export PDBG_DTB=/var/lib/phosphor-software-manager/pnor/rw/DEVTREE
+export PDATA_INFODB=/usr/share/pdata/attributes_info.db