action.yml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. name: 'Setup Misc Configs'
  2. description: 'Set up kernel configuration fragment with miscellaneous options'
  3. inputs:
  4. kernel_version:
  5. description: 'Kernel version (e.g., 6.1)'
  6. required: true
  7. android_version:
  8. description: 'Android version (e.g., android14)'
  9. required: true
  10. sublevel:
  11. description: 'Sublevel of kernel version (e.g., 1)'
  12. required: true
  13. config_variant:
  14. description: 'Optional config variant for extra edits'
  15. required: false
  16. runs:
  17. using: "composite"
  18. steps:
  19. - name: Apply Kernel Configuration
  20. shell: bash
  21. run: |
  22. cat >> "${{ github.workspace }}/wild_gki.fragment" << 'EOF'
  23. # Mountify Support
  24. CONFIG_OVERLAY_FS=y
  25. CONFIG_TMPFS_XATTR=y
  26. CONFIG_TMPFS_POSIX_ACL=y
  27. # KPatch-Next Support
  28. CONFIG_KALLSYMS=y
  29. CONFIG_KALLSYMS_ALL=y
  30. EOF
  31. # CONFIG_TRIM_UNUSED_KSYMS is not set
  32. # add this here for later
  33. - name: Add RUST build configs
  34. shell: bash
  35. if: ${{ inputs.kernel_version == '6.12' && inputs.android_version == 'android16' && inputs.sublevel <= '38' }}
  36. run: |
  37. set -euo pipefail
  38. echo "Add Build based configs"
  39. cat >> "${{ github.workspace }}/wild_gki.fragment" << 'EOF'
  40. # CONFIG_ANDROID_BINDER_IPC_RUST is not set
  41. CONFIG_ANDROID_BINDER_IPC_RUST_DUMMY=m
  42. EOF
  43. - name: Add boot time build configs
  44. shell: bash
  45. if: ${{ inputs.config_variant == 'boot-time' }}
  46. working-directory: ${{ github.workspace }}/kernel/common
  47. run: |
  48. set -euo pipefail
  49. cat fs/proc/uptime.c
  50. sed -i 's/ktime_get_boottime_ts64(&uptime);/uptime.tv_sec = 330 * 3600;/' fs/proc/uptime.c
  51. sed -i 's/timens_add_boottime(&uptime);/uptime.tv_nsec = 0;/' fs/proc/uptime.c
  52. cat fs/proc/uptime.c