Переглянути джерело

fix(action): streamline sed command for task_mmu.c modifications

TheWildJames 4 місяців тому
батько
коміт
12a96caa2c
2 змінених файлів з 4 додано та 7 видалено
  1. 2 1
      .github/actions/misc/action.yml
  2. 2 6
      .github/actions/susfs/action.yml

+ 2 - 1
.github/actions/misc/action.yml

@@ -24,5 +24,6 @@ runs:
         CONFIG_KALLSYMS=y
         CONFIG_KALLSYMS_ALL=y
 
-        # CONFIG_TRIM_UNUSED_KSYMS is not set
         EOF
+        # CONFIG_TRIM_UNUSED_KSYMS is not set
+        # add this here for later

+ 2 - 6
.github/actions/susfs/action.yml

@@ -162,12 +162,8 @@ runs:
         #fi
         if [ "${{ inputs.sublevel }}" -le "58" ]; then
           echo "Applying task_mmu.c Android 15 6.6 Fake Patch"
-          sed -i '/int ret.*= 0, copied.*= 0;/{
-          /int ret.*= 0, copied.*= 0;/!d
-          a\
-                unsigned int nr_subpages = __PAGE_SIZE / PAGE_SIZE;\
-          			pagemap_entry_t *res = NULL;
-          }' fs/proc/task_mmu.c
+          sed -i "/int ret.*= 0, copied.*= 0;/a unsigned int nr_subpages = __PAGE_SIZE \/ PAGE_SIZE;" fs/proc/task_mmu.c
+          sed -i "/unsigned int nr_subpages = __PAGE_SIZE \/ PAGE_SIZE;/a pagemap_entry_t *res = NULL;" fs/proc/task_mmu.c        fi
         fi
         cat fs/proc/task_mmu.c
         if [ "${{ inputs.sublevel }}" -le "92" ]; then