File tree 8 files changed +11
-13
lines changed
8 files changed +11
-13
lines changed Original file line number Diff line number Diff line change
1
+ #pragma once
2
+
3
+ static constexpr auto BIOS_PERSIST_PATH = " /var/lib/bios-settings-manager" ;
Original file line number Diff line number Diff line change 15
15
*/
16
16
#pragma once
17
17
18
- #include " config.h"
19
-
20
18
#include < sdbusplus/asio/object_server.hpp>
21
19
#include < sdbusplus/server.hpp>
22
20
#include < xyz/openbmc_project/BIOSConfig/Manager/server.hpp>
@@ -79,7 +77,8 @@ class Manager : public Base
79
77
* @param[in] systemBus - bus connection
80
78
*/
81
79
Manager (sdbusplus::asio::object_server& objectServer,
82
- std::shared_ptr<sdbusplus::asio::connection>& systemBus);
80
+ std::shared_ptr<sdbusplus::asio::connection>& systemBus,
81
+ std::string persistPath);
83
82
84
83
/* * @brief Set the BIOS attribute with a new value, the new value is added
85
84
* to the PendingAttribute.
Original file line number Diff line number Diff line change 14
14
// limitations under the License.
15
15
*/
16
16
#pragma once
17
- #include " config.h"
18
-
19
17
#include < openssl/evp.h>
20
18
#include < openssl/hmac.h>
21
19
#include < openssl/sha.h>
Original file line number Diff line number Diff line change @@ -18,10 +18,6 @@ project(
18
18
# project uses the same compiler, we can safely ignmore these info notes.
19
19
add_project_arguments (' -Wno-psabi' , language : ' cpp' )
20
20
21
- conf_data = configuration_data ()
22
- conf_data.set_quoted(' BIOS_PERSIST_PATH' , get_option (' bios-persist-path' ))
23
- configure_file (output : ' config.h' , configuration : conf_data)
24
-
25
21
boost_args = [
26
22
' -DBOOST_ALL_NO_LIB' ,
27
23
' -DBOOST_ASIO_DISABLE_THREADS' ,
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 14
14
// limitations under the License.
15
15
*/
16
16
17
+ #include " config.hpp"
17
18
#include " manager.hpp"
18
19
#include " password.hpp"
19
20
@@ -38,7 +39,7 @@ int main()
38
39
* Object path : /xyz/openbmc_project/bios_config/manager
39
40
* Interface : xyz.openbmc_project.BIOSConfig.Manager
40
41
*/
41
- bios_config::Manager manager (objectServer, systemBus);
42
+ bios_config::Manager manager (objectServer, systemBus, BIOS_PERSIST_PATH );
42
43
43
44
/* *
44
45
* Password class is responsible for handling methods and signals under
Original file line number Diff line number Diff line change @@ -311,12 +311,13 @@ Manager::PendingAttributes Manager::pendingAttributes(PendingAttributes value)
311
311
}
312
312
313
313
Manager::Manager (sdbusplus::asio::object_server& objectServer,
314
- std::shared_ptr<sdbusplus::asio::connection>& systemBus) :
314
+ std::shared_ptr<sdbusplus::asio::connection>& systemBus,
315
+ std::string persistPath) :
315
316
sdbusplus::xyz::openbmc_project::BIOSConfig::server::Manager (
316
317
*systemBus, objectPath),
317
318
objServer (objectServer), systemBus(systemBus)
318
319
{
319
- fs::path biosDir (BIOS_PERSIST_PATH );
320
+ fs::path biosDir (persistPath );
320
321
fs::create_directories (biosDir);
321
322
biosFile = biosDir / biosPersistFile;
322
323
deserialize (biosFile, *this );
Original file line number Diff line number Diff line change 15
15
*/
16
16
#include " password.hpp"
17
17
18
+ #include " config.hpp"
18
19
#include " xyz/openbmc_project/BIOSConfig/Common/error.hpp"
19
20
#include " xyz/openbmc_project/Common/error.hpp"
20
21
You can’t perform that action at this time.
0 commit comments