Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/sm/launcher/runtimes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ Error Runtimes::Init(const Config& config, iamclient::CurrentNodeInfoProviderItf
} else if (runtimeConfig.mPlugin == cRuntimeBoot) {
auto runtime = std::make_unique<BootRuntime>();

if (auto err = runtime->Init(runtimeConfig, currentNodeInfoProvider); !err.IsNone()) {
if (auto err = runtime->Init(
runtimeConfig, currentNodeInfoProvider, itemInfoProvider, ociSpec, statusReceiver, systemdConn);
!err.IsNone()) {
return AOS_ERROR_WRAP(err);
}

Expand Down
20 changes: 18 additions & 2 deletions src/sm/launcher/runtimes/boot/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,29 @@ set(TARGET_NAME boot)
# Sources
# ######################################################################################################################

set(SOURCES boot.cpp)
set(SOURCES boot.cpp config.cpp efibootcontroller.cpp efivar.cpp partitionmanager.cpp)

# ######################################################################################################################
# Libraries
# ######################################################################################################################

set(LIBRARIES Poco::JSON aos::common::utils aos::core::common::tools)
find_package(PkgConfig REQUIRED)

pkg_check_modules(BLKID blkid REQUIRED)
pkg_check_modules(EFIVAR efivar REQUIRED)
pkg_check_modules(EFIBOOT efiboot REQUIRED)

set(LIBRARIES
Poco::JSON
aos::common::utils
aos::sm::config
aos::sm::utils
aos::sm::runtimes::utils
aos::core::common::tools
${BLKID_LIBRARIES}
${EFIVAR_LIBRARIES}
${EFIBOOT_LIBRARIES}
)

# ######################################################################################################################
# Target
Expand Down
Loading
Loading