Skip to content

Commit 370f779

Browse files
committed
sm: launcher: runtimes: implement boot runtime
Signed-off-by: Mykhailo Lohvynenko <mykhailo_lohvynenko@epam.com> Reviewed-by: Mykola Kobets <mykola_kobets@epam.com> Reviewed-by: Mykola Solianko <mykola_solianko@epam.com> Reviewed-by: Oleksandr Grytsov <oleksandr_grytsov@epam.com>
1 parent d14ac09 commit 370f779

5 files changed

Lines changed: 1250 additions & 21 deletions

File tree

src/sm/launcher/runtimes.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ Error Runtimes::Init(const Config& config, iamclient::CurrentNodeInfoProviderItf
4040
} else if (runtimeConfig.mPlugin == cRuntimeBoot) {
4141
auto runtime = std::make_unique<BootRuntime>();
4242

43-
if (auto err = runtime->Init(runtimeConfig, currentNodeInfoProvider); !err.IsNone()) {
43+
if (auto err = runtime->Init(
44+
runtimeConfig, currentNodeInfoProvider, itemInfoProvider, ociSpec, statusReceiver, systemdConn);
45+
!err.IsNone()) {
4446
return AOS_ERROR_WRAP(err);
4547
}
4648

src/sm/launcher/runtimes/boot/CMakeLists.txt

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,16 @@ pkg_check_modules(BLKID blkid REQUIRED)
2626
pkg_check_modules(EFIVAR efivar REQUIRED)
2727
pkg_check_modules(EFIBOOT efiboot REQUIRED)
2828

29-
set(LIBRARIES Poco::JSON aos::common::utils aos::core::common::tools ${BLKID_LIBRARIES} ${EFIVAR_LIBRARIES}
30-
${EFIBOOT_LIBRARIES}
29+
set(LIBRARIES
30+
Poco::JSON
31+
aos::common::utils
32+
aos::sm::config
33+
aos::sm::utils
34+
aos::sm::runtimes::utils
35+
aos::core::common::tools
36+
${BLKID_LIBRARIES}
37+
${EFIVAR_LIBRARIES}
38+
${EFIBOOT_LIBRARIES}
3139
)
3240

3341
# ######################################################################################################################

0 commit comments

Comments
 (0)