Skip to content

Commit

Permalink
We need to exit compiling if an error occurred.
Browse files Browse the repository at this point in the history
  • Loading branch information
ravindu644 authored Mar 20, 2024
1 parent c384540 commit 197b1db
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions build_kernel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ clean_build() {
fi

make ${ARGS} "$exynos_defconfig"
make ${ARGS} -j"$(nproc)" || exit
make ${ARGS} -j"$(nproc)" || exit 1
dtb_img
mv "$work_dir/arch/arm64/boot/Image" "$dt_tool/AIK/split_img/boot.img-kernel"
export SELINUX_STATUS="Enforcing"
Expand All @@ -161,7 +161,7 @@ clean_build() {
dirty_build() {
cd "$work_dir"
make ${ARGS} "$exynos_defconfig"
make ${ARGS} -j"$(nproc)" || exit
make ${ARGS} -j"$(nproc)" || exit 1
dtb_img
mv "$work_dir/arch/arm64/boot/Image" "$dt_tool/AIK/split_img/boot.img-kernel"
checks
Expand All @@ -187,7 +187,7 @@ build_ksu(){
cd "$work_dir"
echo -e "\n\n[+] Compiling KernelSU + Enforcing..\n\n"
make ${ARGS} "$exynos_defconfig"
make ${ARGS} -j"$(nproc)" || exit
make ${ARGS} -j"$(nproc)" || exit 1
dtb_img
mv "$work_dir/arch/arm64/boot/Image" "$dt_tool/AIK/split_img/boot.img-kernel"
checks_ksu
Expand All @@ -206,7 +206,7 @@ build_ksu(){
cd "$work_dir"
echo -e "\n\n[+] Compiling KernelSU + Permissive..\n\n"
make ${ARGS} "$exynos_defconfig"
make ${ARGS} -j"$(nproc)" || exit
make ${ARGS} -j"$(nproc)" || exit 1
dtb_img
mv "$work_dir/arch/arm64/boot/Image" "$dt_tool/AIK/split_img/boot.img-kernel"
checks_ksu
Expand Down

0 comments on commit 197b1db

Please sign in to comment.