pnor: Add updatable association to active PNOR FW
Add 'updateable' association to the active PNOR
firmware version object. This 'updateable' association
can be used to mark all the firmware components
which can be programmable from pnor interfaces like
Redfish.
Signed-off-by: Miguel Gomez <mgomez@mx1.ibm.com>
Change-Id: I33f7ac70c8bfa446aeb045c65c741e2d72ce108a
diff --git a/static/item_updater_static.cpp b/static/item_updater_static.cpp
index e867a83..21b418c 100644
--- a/static/item_updater_static.cpp
+++ b/static/item_updater_static.cpp
@@ -275,6 +275,10 @@
createActiveAssociation(path);
}
+ // All updateable firmware components must expose the updateable
+ // association.
+ createUpdateableAssociation(path);
+
// Create Activation instance for this version.
activations.insert(std::make_pair(
id, std::make_unique<ActivationStatic>(bus, path, *this, id,