Skip to content

Commit e754bf7

Browse files
committed
build: Add initial snapshot to repack into AK3
Signed-off-by: Saalim Quadri <danascape@gmail.com>
1 parent ee6df22 commit e754bf7

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/build.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,13 @@ check_kernel()
4848

4949
}
5050

51+
do_anykernel()
52+
{
53+
branch="$1"
54+
ANYKERNEL_LINK="https://github.com/stormbreaker-project/AnyKernel3"
55+
git clone -b $branch $ANYKERNEL_LINK
56+
}
57+
5158
do_kernel_modules()
5259
{
5360
mkdir out/dist/modules
@@ -227,6 +234,17 @@ kernel_build()
227234
fi
228235
fi
229236

237+
if [[ -n "$do_anykernel" ]]; then
238+
if [[ -n "$anykernel_branch" ]]; then
239+
log_info "sworkflow: Cloning Anykernel3"
240+
do_anykernel $anykernel_branch
241+
else
242+
log_error "error: Define Anykernel Branch!"
243+
log_error "error: Check Documentation for more"
244+
fi
245+
fi
246+
247+
230248
end=$(date +%s)
231249

232250
time=$((end - start))

0 commit comments

Comments
 (0)