| commit | 269bff30da8dfabe84d29d6a510bf3b5fdb51fee | [log] [tgz] |
|---|---|---|
| author | Lei YU <mine260309@gmail.com> | Tue Aug 21 15:21:40 2018 +0800 |
| committer | Lei YU <mine260309@gmail.com> | Thu Aug 30 03:03:05 2018 +0000 |
| tree | 6e9913e1815080af21c8f01af609fbb75676dd66 | |
| parent | e4c063293af32e59f893bea9016522e7753413d4 [diff] |
Make MEDIA_DIR configurable
MEDIA_DIR was configured as "/media", it works on ubi-fs systems.
On static layout systems, "/media" is in rwfs, and thus is persistent
after BMC reboot or code update (if rwfs is not updated).
This makes the dirs/files in MEDIA_DIR persistent, and it causes an
issue that BMC uses the incorrect versionId of the image that is the
persistent one in MEDIA_DIR, while it should generate the versionID from
the functional BMC version.
Making MEDIA_DIR configurable, so static layout system could configure
it to a tmpfs, and the above issue is fixed.
Partly resolves openbmc/phosphor-bmc-code-mgmt#3
Tested: Verify that MEDIA_DIR could be configured via configure
argument.
Change-Id: I10d46ea00b79677bec16ac69d2a3375597665f0c
Signed-off-by: Lei YU <mine260309@gmail.com>
Phosphor BMC Code Management provides a set of system software management applications. More information can be found at Software Architecture
To build this package, do the following steps:
1. ./bootstrap.sh
2. ./configure ${CONFIGURE_FLAGS}
3. make
To clean the repository run `./bootstrap.sh clean`.