ソースを参照

Enhance build workflow with ntsync support

Add ntsync input and job to apply ntsync patches in build workflow.
jimsterino98 5 ヶ月 前
コミット
0dcc25b19c
1 ファイル変更17 行追加0 行削除
  1. 17 0
      .github/workflows/build.yml

+ 17 - 0
.github/workflows/build.yml

@@ -36,6 +36,9 @@ on:
       logs:
         required: true
         type: string
+      ntsync:
+        required: true
+        type: string
 
 jobs:
   build-samsung-gki:
@@ -489,6 +492,20 @@ jobs:
           CONFIG_MAGIC_SYSRQ=n
           EOF
 
+      - name: Add ntsync
+        if: inputs.ntsync == 'true'
+        run: |
+          cd "$COMMON"
+          echo "applying ntsync patches"
+          cp "$KERNEL_PATCHES/common/ntsync/ntsync_base.patch" .
+          cp "$KERNEL_PATCHES/common/ntsync/ntsync_compat_${{ inputs.android_version }}-${{ inputs.kernel_version }}.patch" .
+          patch -p1 < ntsync_base.patch || true
+          patch -p1 < ntsync_compat_${{ inputs.android_version }}-${{ inputs.kernel_version }}.patch
+          
+          cat >> "$DEFCONFIG" << 'EOF'
+          CONFIG_NTSYNC=y
+          EOF
+
       - name: Change Kernel Name and remove protected exports
         run: |
           cd "$COMMON"