Преглед на файлове

Add ntsync integration action for kernel

This action integrates ntsync into the kernel by applying patches and enabling the ntsync configuration.
jimsterino98 преди 4 месеца
родител
ревизия
6c13d97497
променени са 1 файла, в които са добавени 26 реда и са изтрити 0 реда
  1. 26 0
      .github/actions/ntsync/action.yml

+ 26 - 0
.github/actions/ntsync/action.yml

@@ -0,0 +1,26 @@
+name: add ntsync
+description: integrate ntsync into kernel
+inputs:
+  android_version:
+    description: 'Android version (android14)'
+    required: true
+  kernel_version:
+    description: 'Kernel version (6.1)'
+    required: true
+
+runs:
+  using: composite
+  steps:
+   - name: apply ntsync patches
+     shell: bash
+     run: |
+      cd "$COMMON"
+      patch -p1 < "$KERNEL_PATCHES/common/ntsync/ntsync_base.patch"
+      patch -p1 < "$KERNEL_PATCHES/common/ntsync/ntsync_compat_${{ inputs.android_version }}-${{ inputs.kernel_version }}.patch"
+      
+   - name: enable ntsync config
+     shell: bash
+     run: |
+      cat >> "$GKI_DEFCONFIG" << 'EOF'
+      CONFIG_NTSYNC=y
+      EOF