mpreboot: Adding PDBG device tree environment variable
Change:
- This commit sets PDBG device tree environment variable in
mpreboot services, for custom device tree usage in libpdbg
and is a pre requisite for pHAL feature usage.
For phal feature disabled build the pdbg environment variable
won't be set.
Signed-off-by: Chirag Sharma <chirshar@in.ibm.com>
Change-Id: I7ba7823099f5e9c26103a3dc89e865512dc4ec7a
diff --git a/op-enter-mpreboot@.service.in b/op-enter-mpreboot@.service.in
index 3543946..4d39aa0 100644
--- a/op-enter-mpreboot@.service.in
+++ b/op-enter-mpreboot@.service.in
@@ -6,6 +6,7 @@
Conflicts=obmc-host-startmin@%i.target
[Service]
+@ENABLE_PHAL_TRUE@Environment="PDBG_DTB=/var/lib/phosphor-software-manager/pnor/rw/DEVTREE"
RemainAfterExit=yes
Type=oneshot
ExecStart=/usr/bin/openpower-proc-control enterMpReboot