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

add MCS for standalone kernel compile action #240

Merged
merged 2 commits into from
Nov 17, 2022
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
21 changes: 18 additions & 3 deletions standalone-kernel/compile_kernel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ echo "Comp: $INPUT_COMPILER"

set -e

mkdir build
cd build

extra_config=""

case $INPUT_ARCH in
Expand Down Expand Up @@ -54,6 +51,8 @@ case $INPUT_ARCH in
esac

echo "::group::Run CMake"
mkdir build
cd build
set -x
cmake -DCMAKE_TOOLCHAIN_FILE="$INPUT_COMPILER".cmake -G Ninja -C ../configs/"$INPUT_ARCH"_verified.cmake $extra_config ../
set +x
Expand All @@ -64,3 +63,19 @@ set -x
ninja kernel.elf
set +x
echo "::endgroup::"

echo "::group::Run CMake (MCS)"
cd ..
rm -rf build
mkdir build
cd build
set -x
cmake -DCMAKE_TOOLCHAIN_FILE="$INPUT_COMPILER".cmake -G Ninja -C ../configs/"$INPUT_ARCH"_verified.cmake $extra_config -DKernelIsMCS=TRUE ../
set +x
echo "::endgroup::"

echo "::group::Run Ninja (MCS)"
set -x
ninja kernel.elf
set +x
echo "::endgroup::"