summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLei YU <mine260309@gmail.com>2018-07-17 17:04:34 +0800
committerLei YU <mine260309@gmail.com>2018-07-26 05:13:47 +0000
commitdd691576c829350dd9718909be6a36de70a42e27 (patch)
treebf6d5292abf821162e449ea9472561b716feecd4
parentbbcb7be18c21da6c5d82be7f744b777aea610f24 (diff)
downloadphosphor-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.hpp4
-rw-r--r--static/flash.cpp2
2 files changed, 1 insertions, 5 deletions
diff --git a/images.hpp b/images.hpp
index c82725f..eee7c34 100644
--- a/images.hpp
+++ b/images.hpp
@@ -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);
OpenPOWER on IntegriCloud