action.yml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. runs:
  14. using: "composite"
  15. steps:
  16. - name: Apply Kernel Configuration
  17. shell: bash
  18. run: |
  19. cat >> "${{ github.workspace }}/wild_gki.fragment" << 'EOF'
  20. # Mountify Support
  21. CONFIG_OVERLAY_FS=y
  22. CONFIG_TMPFS_XATTR=y
  23. CONFIG_TMPFS_POSIX_ACL=y
  24. # KPatch-Next Support
  25. CONFIG_KALLSYMS=y
  26. CONFIG_KALLSYMS_ALL=y
  27. EOF
  28. # CONFIG_TRIM_UNUSED_KSYMS is not set
  29. # add this here for later
  30. - name: Add RUST build configs
  31. shell: bash
  32. if: ${{ inputs.kernel_version == '6.12' && inputs.android_version == 'android16' && inputs.sublevel <= '38' }}
  33. run: |
  34. set -euo pipefail
  35. echo "Add Build based configs"
  36. cat >> "${{ github.workspace }}/wild_gki.fragment" << 'EOF'
  37. # CONFIG_ANDROID_BINDER_IPC_RUST is not set
  38. CONFIG_ANDROID_BINDER_IPC_RUST_DUMMY=m
  39. EOF
  40. - name: Add boot time build configs
  41. shell: bash
  42. working-directory: ${{ github.workspace }}/kernel/common
  43. run: |
  44. set -euo pipefail
  45. perl -i -pe 's/ktime_get_boottime_ts64\(&uptime\);.+?timens_add_boottime\(&uptime\);/uptime.tv_sec = 330 * 3600; \/\/ 330 hours\nuptime.tv_nsec = 0;/s' fs/proc/uptime.c