remove meson.options
The only option in this repository is configuring the location
of the persistent file location. This is not ever leveraged
by anyone. Reduce the complexity of maintaining a meson.option
to hold a string and just move it to a constant in a header.
Change-Id: I066d88d2831d1d04fd53b47e26cd6fbcabf863d2
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/src/manager.cpp b/src/manager.cpp
index 3cb96f5..5d771ea 100644
--- a/src/manager.cpp
+++ b/src/manager.cpp
@@ -311,12 +311,13 @@
}
Manager::Manager(sdbusplus::asio::object_server& objectServer,
- std::shared_ptr<sdbusplus::asio::connection>& systemBus) :
+ std::shared_ptr<sdbusplus::asio::connection>& systemBus,
+ std::string persistPath) :
sdbusplus::xyz::openbmc_project::BIOSConfig::server::Manager(
*systemBus, objectPath),
objServer(objectServer), systemBus(systemBus)
{
- fs::path biosDir(BIOS_PERSIST_PATH);
+ fs::path biosDir(persistPath);
fs::create_directories(biosDir);
biosFile = biosDir / biosPersistFile;
deserialize(biosFile, *this);