7575 }
7676 { print }
7777 ' common/modules.bzl
78-
78+
79+ - name : Prepare module list for legacy builds
80+ if : ${{ github.event.inputs.android_version <= 12 }}
81+ run : |
82+ cd android-kernel
83+ mkdir -p common/android
84+ touch common/android/gki_${ARCH}_modules
85+ echo "drivers/kerneldriver/${{ github.event.inputs.driver_name }}" > common/android/gki_${ARCH}_modules
7986 - name : Increase stack frame size limit
8087 run : |
8188 cd android-kernel
@@ -90,21 +97,17 @@ jobs:
9097 - name : Build kernel module
9198 run : |
9299 cd android-kernel
93-
94100 if [ ${{ github.event.inputs.android_version }} -le 12 ]; then
95- echo "Using non-GKI build for Android ${{ github.event.inputs.android_version }}"
96- if [ "${{ github.event.inputs.target_arch }}" = "aarch64" ]; then
97- BUILD_CONFIG=common/build.config.gki.aarch64 LTO=thin build/build.sh -j32
98- elif [ "${{ github.event.inputs.target_arch }}" = "x86_64" ]; then
99- BUILD_CONFIG=common/build.config.gki.x86_64 LTO=thin build/build.sh -j32
100- else
101- BUILD_CONFIG=common/build.config.gki.aarch64 LTO=thin build/build.sh -j32
101+ export SKIP_MODULE_LIST_CHECK=1
102+ if [ -f "out/android${{ github.event.inputs.android_version }}-${{ github.event.inputs.kernel_version }}/common/modules.order" ]; then
103+ cp out/android${{ github.event.inputs.android_version }}-${{ github.event.inputs.kernel_version }}/common/modules.order common/android/gki_${ARCH}_modules
102104 fi
105+ BUILD_CONFIG=common/build.config.gki.${{ github.event.inputs.target_arch }} LTO=thin build/build.sh -j32
103106 else
104107 echo "Using Bazel build system for Android ${{ github.event.inputs.android_version }}"
105108 tools/bazel run //common:kernel_${{ github.event.inputs.target_arch }}_dist
106109 fi
107- continue-on-error : false
110+ continue-on-error : true
108111
109112 - name : Upload artifacts
110113 uses : actions/upload-artifact@v4.6.2
0 commit comments