summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorMichael Tritz <mtritz@us.ibm.com>2017-07-29 23:32:21 -0500
committerMichael Tritz <mtritz@us.ibm.com>2017-07-30 15:27:12 -0500
commit60bc20fe36517be7c7ae4f2aac976ed3dd6acdc2 (patch)
tree7a27f078d4a9fa4bc10316b855383da4ec0c371c /configure.ac
parent4c5d744346499a927eee0ef0e1adb5218b33cc01 (diff)
downloadopenpower-pnor-code-mgmt-60bc20fe36517be7c7ae4f2aac976ed3dd6acdc2.tar.gz
openpower-pnor-code-mgmt-60bc20fe36517be7c7ae4f2aac976ed3dd6acdc2.zip
PNOR: Restore RedundancyPriority on reset
This commit extends the functionality of the PNOR software updater by preserving RedundancyPriority values through any kind of reset. This is accomplished by storing priority values in serial files in /var/lib/obmc/openpower-pnor-code-mgmt/ using the Cereal library. Each time a priority value is modified, the value in the corresponding version file is adjusted. When the item updater resets, it reads back the priority values from these files. Resolves openbmc/openbmc#2040 Change-Id: I908431801e541a1e5b39bcf49ae057f7e340eecc Signed-off-by: Michael Tritz <mtritz@us.ibm.com>
Diffstat (limited to 'configure.ac')
-rwxr-xr-xconfigure.ac3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index e6b0409af..48d359a4a 100755
--- a/configure.ac
+++ b/configure.ac
@@ -82,6 +82,8 @@ AC_DEFINE(PNOR_TOC_FILE, "pnor.toc",
[The name of the PNOR table of contents file])
AC_DEFINE(MEDIA_DIR, "/media/",
[The base dir where all PNOR RO AND RW partitions are mounted])
+AC_DEFINE(PERSIST_DIR, "/var/lib/obmc/openpower-pnor-code-mgmt/",
+ [The dir where activation data is stored in files])
AC_DEFINE(PNOR_RO_PREFIX, "/media/pnor-ro-",
[The prefix path for the versioned read-only pnor partitions])
AC_DEFINE(PNOR_RW_PREFIX, "/media/pnor-rw-",
@@ -99,4 +101,3 @@ AC_DEFINE(PNOR_PRSV_ACTIVE_PATH, "/var/lib/phosphor-software-manager/pnor/prsv",
AC_CONFIG_FILES([Makefile test/Makefile])
AC_OUTPUT
-
OpenPOWER on IntegriCloud