Parcourir la source

Add m55 fix action to disable CRC checks

This action disables CRC checks and modifies the GKI configuration to force load kernel modules and enable Btrfs support.
jimsterino98 il y a 4 mois
Parent
commit
89874f2024
1 fichiers modifiés avec 28 ajouts et 0 suppressions
  1. 28 0
      .github/actions/m55-fix/action.yml

+ 28 - 0
.github/actions/m55-fix/action.yml

@@ -0,0 +1,28 @@
+name: m55 fix
+description: disable CRC to allow booting
+
+runs:
+ using: composite
+ steps:
+  - name: disable CRC checks
+    shell: bash
+    run: |
+     cd "$COMMON"
+     curl -L -s https://raw.githubusercontent.com/jimsterino98/Android-Kernel-Tutorials/refs/heads/main/patches/010.Disable-CRC-Checks.patch | patch -p1 --forward
+
+     cd "$GITHUB_WORKSPACE"
+     cat >> "$GKI_DEFCONFIG" << 'EOF'
+     #Force Load Kernel Modules
+     CONFIG_MODULES=y
+     CONFIG_MODULE_FORCE_LOAD=y
+     CONFIG_MODULE_UNLOAD=y
+     CONFIG_MODULE_FORCE_UNLOAD=y
+     CONFIG_MODVERSIONS=y
+     CONFIG_MODULE_SRCVERSION_ALL=n
+     CONFIG_MODULE_SIG=n
+     CONFIG_MODULE_COMPRESS=n
+     CONFIG_TRIM_UNUSED_KSYMS=n
+     
+     #Add btrfs user request
+     CONFIG_BTRFS_FS=y
+     EOF