PLDM: System specific BIOS attributes
This commit adds code to populate BIOS attributes
based on the system type that is the platform.
The BIOS Jsons are installed based on the platform/
system type. The system type is populated by entity
manager.
TESTED on hardware across different platform/system type.
On systems where the compatible system interface is not
implemented or entity manager not running, then the BIOS
Jsons with default values are installed.
Signed-off-by: Sagar Srinivas <sagar.srinivas@ibm.com>
Change-Id: I179dad34537ed0d1fb263584d687a1b8cb64c335
diff --git a/common/test/mocked_utils.hpp b/common/test/mocked_utils.hpp
index f8f3665..71bc6e7 100644
--- a/common/test/mocked_utils.hpp
+++ b/common/test/mocked_utils.hpp
@@ -7,7 +7,6 @@
{
namespace utils
{
-
/** @brief helper function for parameter matching
* @param[in] lhs - left-hand side value
* @param[in] rhs - right-hand side value
@@ -36,4 +35,8 @@
MOCK_METHOD(pldm::utils::PropertyValue, getDbusPropertyVariant,
(const char*, const char*, const char*), (const override));
+
+ MOCK_METHOD(pldm::utils::GetSubTreeResponse, getSubtree,
+ (const std::string&, int, const std::vector<std::string>&),
+ (const override));
};
diff --git a/common/utils.hpp b/common/utils.hpp
index cc6db01..2ae7b86 100644
--- a/common/utils.hpp
+++ b/common/utils.hpp
@@ -138,7 +138,7 @@
using PropertyValue =
std::variant<bool, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t,
- uint64_t, double, std::string>;
+ uint64_t, double, std::string, std::vector<std::string>>;
using DbusProp = std::string;
using DbusChangedProps = std::map<DbusProp, PropertyValue>;
using DBusInterfaceAdded = std::vector<