action.yml 1.8 KB

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