Skip to content

Commit

Permalink
Update build-kernel.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
WuXing90 authored Aug 15, 2024
1 parent 76bb1c5 commit 892a87d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/build-kernel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,13 @@ jobs:
- name: Setup Configuration for Kernel
run: |
cd $GITHUB_WORKSPACE/kernel_workspace/android-kernel
export PATH=$GITHUB_WORKSPACE/clang/bin:$PATH
export ARCH=${{ env.ARCH }}
export SUBARCH=${{ env.ARCH }}
export KBUILD_COMPILER_STRING="$(clang --version | head -n 1 | perl -pe 's/\(http.*?\)//gs' | sed -e 's/ */ /g' -e 's/[[:space:]]*$//')"
export KBUILD_BUILD_HOST=Wuxin-Builds
export KBUILD_BUILD_USER=$(echo ${{ github.actor }} | tr A-Z a-z)
make -j$(nproc --all) O=out ARCH=${{ env.ARCH }} CC=clang ${{ env.KERNEL_CONFIG }}
if [ ${{ env.APPLY_KSU_PATCH }} = true ]; then
bash $GITHUB_WORKSPACE/patches.sh
if grep -q "CONFIG_KSU" arch/${{ env.ARCH }}/configs/${{ env.KERNEL_CONFIG }}; then
Expand Down

0 comments on commit 892a87d

Please sign in to comment.