Fix u-boot env var name for Rainier 2U
Change the value of the fitconfig u-boot environment
variable to 'conf@aspeed-bmc-ibm-rainier.dtb'.
This is to match the value used by u-boot to switch to the right
device tree for Rainier 2U.
This also adds Everest to the list of supported systems.
Signed-off-by: Santosh Puranik <santosh.puranik@in.ibm.com>
Change-Id: Ie52bffb1e50c0fd7d081038732e3c5676a69de03
diff --git a/ibm_vpd_app.cpp b/ibm_vpd_app.cpp
index 1c0b17e..83e2cd2 100644
--- a/ibm_vpd_app.cpp
+++ b/ibm_vpd_app.cpp
@@ -36,8 +36,9 @@
using namespace phosphor::logging;
static const deviceTreeMap deviceTreeSystemTypeMap = {
- {RAINIER_2U, "conf@aspeed-bmc-ibm-rainier-2u.dtb"},
- {RAINIER_4U, "conf@aspeed-bmc-ibm-rainier-4u.dtb"}};
+ {RAINIER_2U, "conf@aspeed-bmc-ibm-rainier.dtb"},
+ {RAINIER_4U, "conf@aspeed-bmc-ibm-rainier-4u.dtb"},
+ {EVEREST, "conf@aspeed-bmc-ibm-everest.dtb"}};
/**
* @brief Expands location codes
@@ -538,11 +539,14 @@
{
target = INVENTORY_JSON_4U;
}
-
else if (imValStr == RAINIER_2U) // 2U
{
target = INVENTORY_JSON_2U;
}
+ else if (imValStr == EVEREST)
+ {
+ target = INVENTORY_JSON_EVEREST;
+ }
// Create the directory for hosting the symlink
fs::create_directories(VPD_FILES_PATH);