diff options
author | Lei YU <mine260309@gmail.com> | 2018-07-17 17:04:34 +0800 |
---|---|---|
committer | Lei YU <mine260309@gmail.com> | 2018-07-26 05:13:47 +0000 |
commit | dd691576c829350dd9718909be6a36de70a42e27 (patch) | |
tree | bf6d5292abf821162e449ea9472561b716feecd4 | |
parent | bbcb7be18c21da6c5d82be7f744b777aea610f24 (diff) | |
download | phosphor-bmc-code-mgmt-dd691576c829350dd9718909be6a36de70a42e27.tar.gz phosphor-bmc-code-mgmt-dd691576c829350dd9718909be6a36de70a42e27.zip |
Use separated images for fixed flash layout
For fixed flash layout code update, it was using the whole image-bmc.
For future features like image verification during boot, it needs to use
separated images and separated keys.
So change the image-bmc to separated images.
Change-Id: I6cc56f82c786125bb4386af5ea1d931afed7901d
Tested: Do code update on Romulus without issue.
Signed-off-by: Lei YU <mine260309@gmail.com>
-rw-r--r-- | images.hpp | 4 | ||||
-rw-r--r-- | static/flash.cpp | 2 |
2 files changed, 1 insertions, 5 deletions
@@ -11,12 +11,8 @@ namespace image { // BMC flash image file name list. -#ifdef UBIFS_LAYOUT const std::vector<std::string> bmcImages = {"image-kernel", "image-rofs", "image-rwfs", "image-u-boot"}; -#else -const std::vector<std::string> bmcImages = {"image-bmc"}; -#endif } // namespace image } // namespace software diff --git a/static/flash.cpp b/static/flash.cpp index 3ca7bfc..6fc4563 100644 --- a/static/flash.cpp +++ b/static/flash.cpp @@ -21,7 +21,7 @@ namespace fs = std::experimental::filesystem; void Activation::flashWrite() { - // For static layout code update, just put image in /run/initramfs. + // For static layout code update, just put images in /run/initramfs. // It expects user to trigger a reboot and an updater script will program // the image to flash during reboot. fs::path uploadDir(IMG_UPLOAD_DIR); |