Skip to content

Commit

Permalink
Reclone kernel on other variants
Browse files Browse the repository at this point in the history
If the kernel is not a git repo, other variants will fail to build after building stoney. Remove the kernel sources in this scenario
  • Loading branch information
wiredsis committed Jul 26, 2023
1 parent 32bd27f commit 09eb983
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ function build_kernel {
cd $kernel_source_dir
patch -p1 < ../patches/stoney/*
else
if [[ ! -d ${kernel_source_dir}/.git ]]; then
rm -rf $kernel_source_dir
fi
if [[ ! -d $kernel_source_dir ]]; then
git clone $kernel_source_url $kernel_source_dir
fi
Expand Down

0 comments on commit 09eb983

Please sign in to comment.