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/include/config.hpp b/include/config.hpp
new file mode 100644
index 0000000..41b2a49
--- /dev/null
+++ b/include/config.hpp
@@ -0,0 +1,3 @@
+#pragma once
+
+static constexpr auto BIOS_PERSIST_PATH = "/var/lib/bios-settings-manager";
diff --git a/include/manager.hpp b/include/manager.hpp
index 680ad6d..9c4bd50 100644
--- a/include/manager.hpp
+++ b/include/manager.hpp
@@ -15,8 +15,6 @@
*/
#pragma once
-#include "config.h"
-
#include <sdbusplus/asio/object_server.hpp>
#include <sdbusplus/server.hpp>
#include <xyz/openbmc_project/BIOSConfig/Manager/server.hpp>
@@ -79,7 +77,8 @@
* @param[in] systemBus - bus connection
*/
Manager(sdbusplus::asio::object_server& objectServer,
- std::shared_ptr<sdbusplus::asio::connection>& systemBus);
+ std::shared_ptr<sdbusplus::asio::connection>& systemBus,
+ std::string persistPath);
/** @brief Set the BIOS attribute with a new value, the new value is added
* to the PendingAttribute.
diff --git a/include/password.hpp b/include/password.hpp
index 358c4ef..2b320a5 100644
--- a/include/password.hpp
+++ b/include/password.hpp
@@ -14,8 +14,6 @@
// limitations under the License.
*/
#pragma once
-#include "config.h"
-
#include <openssl/evp.h>
#include <openssl/hmac.h>
#include <openssl/sha.h>