Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

standalone-kernel: test install target #383

Merged
merged 1 commit into from
Mar 7, 2025
Merged
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
15 changes: 12 additions & 3 deletions standalone-kernel/compile_kernel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -97,19 +97,28 @@ do_compile_kernel()
exit 1
fi

echo "::group::Run CMake${variant_info}"
echo "::group::Run cmake${variant_info}"
( # run in sub shell
set -x
cmake -G Ninja -B ${build_folder} -C ${config_file} ${toolchain_flags} ${extra_params}
cmake -G Ninja -B ${build_folder} \
-DCMAKE_INSTALL_PREFIX="${build_folder}/install" \
-C ${config_file} ${toolchain_flags} ${extra_params}
)
echo "::endgroup::"

echo "::group::Run Ninja${variant_info}"
echo "::group::Run${variant_info}: ninja"
( # run in sub shell
set -x
ninja -C ${build_folder} kernel.elf
)
echo "::endgroup::"

echo "::group::Run${variant_info}: ninja install"
( # run in sub shell
set -x
ninja -C ${build_folder} install
)
echo "::endgroup::"
}

# build standard kernel
Expand Down