Sfoglia il codice sorgente

fix(action): add kernel configuration for 5.10 to adjust IP set max value

TheWildJames 4 mesi fa
parent
commit
62ece0ff0f
2 ha cambiato i file con 13 aggiunte e 13 eliminazioni
  1. 7 0
      .github/actions/networking/action.yml
  2. 6 13
      .github/workflows/build.yml

+ 7 - 0
.github/actions/networking/action.yml

@@ -77,4 +77,11 @@ runs:
         CONFIG_DEFAULT_TCP_CONG="bbr"
         CONFIG_NET_SCH_FQ=y
         EOF
+
+    - name: Apply Kernel Config for 5.10
+      shell: bash
+      working-directory: ${{ github.workspace }}/kernel/common
+      if: inputs.kernel_version == '5.10'
+      run: |
+        sed -i 's/CONFIG_IP_SET_MAX/256/g' net/netfilter/ipset/ip_set_core.c
         

+ 6 - 13
.github/workflows/build.yml

@@ -73,7 +73,6 @@ jobs:
         patches_commit: ${{ inputs.patches_commit }}
         anykernel_commit: ${{ inputs.anykernel_commit }}
           
-
     - name: Download Kernel Repository
       uses: ./.github/actions/download-kernel
       with:
@@ -122,6 +121,12 @@ jobs:
         kernel_version: ${{ steps.parse.outputs.kernel_version }}
         android_version: ${{ steps.parse.outputs.android_version }}
 
+    - name: Setup Misc Configs
+      uses: ./.github/actions/misc
+      with:
+        kernel_version: ${{ steps.parse.outputs.kernel_version }}
+        android_version: ${{ steps.parse.outputs.android_version }}
+
     - name: Apply Module Check Bypass
       if: ${{ matrix.variant == 'Bypass' }}
       uses: ./.github/actions/module-check-bypass
@@ -133,18 +138,6 @@ jobs:
       with:
         kernel_version: ${{ steps.parse.outputs.kernel_version }}
 
-    - name: Setup Networking Configs
-      uses: ./.github/actions/networking
-      with:
-        kernel_version: ${{ steps.parse.outputs.kernel_version }}
-        android_version: ${{ steps.parse.outputs.android_version }}
-
-    - name: Setup Misc Configs
-      uses: ./.github/actions/misc
-      with:
-        kernel_version: ${{ steps.parse.outputs.kernel_version }}
-        android_version: ${{ steps.parse.outputs.android_version }}
-
     - name: Apply ABI Compare Bypass
       if: false
       working-directory: ${{ github.workspace }}/kernel