Skip to content

Commit

Permalink
workflows: Use correct source for mainline
Browse files Browse the repository at this point in the history
Signed-off-by: Saalim Quadri <[email protected]>
  • Loading branch information
danascape committed Jul 21, 2024
1 parent 75d4823 commit f3ca3b8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 18 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/android_kernel_compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,12 @@ jobs:
- name: Install sworkflow
run: |
git clone https://github.com/danascape/sworkflow $HOME/sworkflow
./setup.sh i
- name: Check sworkflow
run: |
which sw
- name: Compile Kernel
run: |
bash tests/build/arm64_compile_test.sh
5 changes: 4 additions & 1 deletion .github/workflows/mainline_kernel_compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,11 @@ jobs:
- name: Install sworkflow
run: |
git clone https://github.com/danascape/sworkflow $HOME/sworkflow
./setup.sh i
- name: Check sworkflow
run: |
which sw
- name: Compile Kernel
run: |
Expand Down
19 changes: 3 additions & 16 deletions tests/build/mainline_compile_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,16 @@
# SPDX-License-Identifier: Apache-2.0 license
#

mkdir tc
export TC_DIR="$PWD/tc"
export WORK_DIR="$PWD"

clone_kernel()
{
git clone --depth 1 -b master https://github.com/stormbreaker-project/linux-asus-x00p-3.18 X00P
}

clone_toolchains()
{
git clone --depth=1 https://github.com/stormbreaker-project/aarch64-linux-android-4.9 "$TC_DIR"/gcc > /dev/null 2>&1
git clone --depth=1 https://github.com/stormbreaker-project/arm-linux-androideabi-4.9 "$TC_DIR"/gcc_32 > /dev/null 2>&1
git clone --depth=1 -b aosp-11.0.5 https://github.com/sohamxda7/llvm-stable "$TC_DIR"/clang > /dev/null 2>&1
git clone --depth 1 -b master https://github.com/torvalds/linux linux
}

compile_kernel()
{
export PATH="$PWD/tc/clang/bin:$PWD/tc/gcc/bin:$PWD/tc/gcc_32/bin:${PATH}"
cd X00P || exit 1
"$WORK_DIR"/sw b X00P-3.18
cd linux || exit 1
sw b mainline
}

clone_kernel
clone_toolchains
compile_kernel

0 comments on commit f3ca3b8

Please sign in to comment.