diff options
author | Jason M. Bills <jason.m.bills@linux.intel.com> | 2021-03-09 01:14:22 +0300 |
---|---|---|
committer | Jason M. Bills <jason.m.bills@linux.intel.com> | 2021-03-09 02:20:11 +0300 |
commit | 0cfc19e6565d8e3a1aa563c59edb347f9128026f (patch) | |
tree | 7146561723137e206a983483b06466d7ab5a9e2a /meta-openbmc-mods/meta-common/recipes-phosphor/flash | |
parent | 930df2e58b9725756edbccf99fd4979026fc28fd (diff) | |
download | openbmc-0cfc19e6565d8e3a1aa563c59edb347f9128026f.tar.xz |
Update to internal 0.35
Signed-off-by: Jason M. Bills <jason.m.bills@linux.intel.com>
Diffstat (limited to 'meta-openbmc-mods/meta-common/recipes-phosphor/flash')
2 files changed, 29 insertions, 18 deletions
diff --git a/meta-openbmc-mods/meta-common/recipes-phosphor/flash/phosphor-software-manager/0005-Modified-firmware-activation-to-launch-fwupd.sh-thro.patch b/meta-openbmc-mods/meta-common/recipes-phosphor/flash/phosphor-software-manager/0005-Modified-firmware-activation-to-launch-fwupd.sh-thro.patch index 85ef5afcf..82ec8431d 100644 --- a/meta-openbmc-mods/meta-common/recipes-phosphor/flash/phosphor-software-manager/0005-Modified-firmware-activation-to-launch-fwupd.sh-thro.patch +++ b/meta-openbmc-mods/meta-common/recipes-phosphor/flash/phosphor-software-manager/0005-Modified-firmware-activation-to-launch-fwupd.sh-thro.patch @@ -1,7 +1,7 @@ -From 32d90301c494c1b43f8e1d74ac9e7c1dc2fe486a Mon Sep 17 00:00:00 2001 +From 05b893222a8586c51e6f66320067f13b2a89dd46 Mon Sep 17 00:00:00 2001 From: Jennifer Lee <jennifer1.lee@intel.com> Date: Mon, 10 Dec 2018 10:36:44 -0800 -Subject: [PATCH 1/1] Modified firmware activation to launch fwupd.sh through +Subject: [PATCH] Modified firmware activation to launch fwupd.sh through non-ubi fs code path to match more closely to the upstream design - Added option FWUPD_SCRIPT to saperate intel customized code - Adopted @@ -12,15 +12,15 @@ Signed-off-by: Jennifer Lee <jennifer1.lee@intel.com> Signed-off-by: James Feist <james.feist@linux.intel.com> --- - activation.cpp | 45 +++++++++++++++++++++++++++++++++++++++++++++ + activation.cpp | 45 ++++++++++++++++++++++++++++++++++++++++++++- meson.build | 1 + meson_options.txt | 3 +++ - static/flash.cpp | 41 +++++++++++++++++++++++++++++++++++++++-- + static/flash.cpp | 42 ++++++++++++++++++++++++++++++++++++++++-- ubi/flash.cpp | 9 +++------ - 5 files changed, 91 insertions(+), 8 deletions(-) + 5 files changed, 91 insertions(+), 9 deletions(-) diff --git a/activation.cpp b/activation.cpp -index 291ce7c..f76018d 100644 +index c82e297..d690a39 100644 --- a/activation.cpp +++ b/activation.cpp @@ -88,7 +88,50 @@ auto Activation::activation(Activations value) -> Activations @@ -36,7 +36,7 @@ index 291ce7c..f76018d 100644 + + activationProgress = + std::make_unique<ActivationProgress>(bus, path); -+ + +#ifdef WANT_SIGNATURE_VERIFY + fs::path uploadDir(IMG_UPLOAD_DIR); + if (!verifySignature(uploadDir / versionId, SIGNED_IMAGE_CONF_PATH)) @@ -60,7 +60,7 @@ index 291ce7c..f76018d 100644 + redundancyPriority = + std::make_unique<RedundancyPriority>(bus, path, *this, 0); + } - ++ + // Remove version object from image manager + Activation::deleteImageManagerObject(); + @@ -91,7 +91,7 @@ index 291ce7c..f76018d 100644 else { diff --git a/meson.build b/meson.build -index 62b9aeb..08d6f71 100644 +index c74a927..0e5f963 100644 --- a/meson.build +++ b/meson.build @@ -54,6 +54,7 @@ conf.set('MMC_LAYOUT', get_option('bmc-layout').contains('mmc')) @@ -103,7 +103,7 @@ index 62b9aeb..08d6f71 100644 # Configurable variables conf.set('ACTIVE_BMC_MAX_ALLOWED', get_option('active-bmc-max-allowed')) diff --git a/meson_options.txt b/meson_options.txt -index c9b7b33..4f7e62a 100644 +index d37e681..d86371b 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -22,6 +22,9 @@ option('oe-sdk', type: 'feature', description: 'Enable OE SDK') @@ -117,7 +117,7 @@ index c9b7b33..4f7e62a 100644 option( 'active-bmc-max-allowed', type: 'integer', diff --git a/static/flash.cpp b/static/flash.cpp -index 9bb2bba..c4ff002 100644 +index 101828b..5506a59 100644 --- a/static/flash.cpp +++ b/static/flash.cpp @@ -22,9 +22,11 @@ namespace updater @@ -132,7 +132,7 @@ index 9bb2bba..c4ff002 100644 // 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. -@@ -36,11 +38,46 @@ void Activation::flashWrite() +@@ -36,11 +38,47 @@ void Activation::flashWrite() fs::copy_file(uploadDir / versionId / bmcImage, toPath / bmcImage, fs::copy_options::overwrite_existing); } @@ -146,7 +146,8 @@ index 9bb2bba..c4ff002 100644 } -void Activation::onStateChanges(sdbusplus::message::message& /*msg*/) -+void Activation::onStateChanges(sdbusplus::message::message& msg) ++void Activation::onStateChanges(__attribute__((unused)) ++ sdbusplus::message::message& msg) { - // Empty +#ifndef FWUPD_SCRIPT @@ -182,7 +183,7 @@ index 9bb2bba..c4ff002 100644 } // namespace updater diff --git a/ubi/flash.cpp b/ubi/flash.cpp -index 5af2a17..ffa9348 100644 +index a263bfb..c58eefc 100644 --- a/ubi/flash.cpp +++ b/ubi/flash.cpp @@ -15,13 +15,10 @@ void Activation::flashWrite() diff --git a/meta-openbmc-mods/meta-common/recipes-phosphor/flash/phosphor-software-manager/0016-Process-PLDM-image-type.patch b/meta-openbmc-mods/meta-common/recipes-phosphor/flash/phosphor-software-manager/0016-Process-PLDM-image-type.patch index c353a09b2..bc94f00af 100644 --- a/meta-openbmc-mods/meta-common/recipes-phosphor/flash/phosphor-software-manager/0016-Process-PLDM-image-type.patch +++ b/meta-openbmc-mods/meta-common/recipes-phosphor/flash/phosphor-software-manager/0016-Process-PLDM-image-type.patch @@ -1,4 +1,4 @@ -From aaebe1c3db71b7addbd3f1d1b2b5f83d7cba14e3 Mon Sep 17 00:00:00 2001 +From a78b7a609f58ac82623c357426ef0590d6d76971 Mon Sep 17 00:00:00 2001 From: Ayushi Smriti <smriti.ayushi@intel.com> Date: Mon, 9 Nov 2020 23:04:58 +0530 Subject: [PATCH] Process PLDM image type @@ -24,15 +24,15 @@ intf got added. Signed-off-by: Ayushi Smriti <smriti.ayushi@intel.com> --- - item_updater.cpp | 1 + + item_updater.cpp | 4 +- pfr_image_manager.cpp | 95 +++++++++++++++++++++++++++++++++++++++++-- pfr_image_manager.hpp | 6 +-- pldm.hpp | 21 ++++++++++ - 4 files changed, 117 insertions(+), 6 deletions(-) + 4 files changed, 119 insertions(+), 7 deletions(-) create mode 100644 pldm.hpp diff --git a/item_updater.cpp b/item_updater.cpp -index db255d6..2ed2a3c 100644 +index db255d6..7af80e3 100644 --- a/item_updater.cpp +++ b/item_updater.cpp @@ -67,6 +67,7 @@ void ItemUpdater::createActivation(sdbusplus::message::message& msg) @@ -43,6 +43,16 @@ index db255d6..2ed2a3c 100644 value == VersionPurpose::Other) { purpose = value; +@@ -397,7 +398,8 @@ void ItemUpdater::deleteAll() + } + + ItemUpdater::ActivationStatus +- ItemUpdater::validateSquashFSImage(const std::string& filePath) ++ ItemUpdater::validateSquashFSImage(__attribute__((unused)) ++ const std::string& filePath) + { + #ifndef PFR_UPDATE + bool valid = true; diff --git a/pfr_image_manager.cpp b/pfr_image_manager.cpp index 178367f..c923494 100644 --- a/pfr_image_manager.cpp |