| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- name: 'Setup Misc Configs'
- description: 'Set up kernel configuration fragment with miscellaneous options'
- inputs:
- version:
- description: 'Kernel config version (e.g., android14-6.12)'
- required: true
- kernel_version:
- description: 'Kernel version (e.g., 6.1)'
- required: true
- android_version:
- description: 'Android version (e.g., android14)'
- required: true
- sublevel:
- description: 'Sublevel of kernel version (e.g., 1)'
- required: true
- variant:
- description: 'Build variant (Normal, Bypass, Wild, boot-time)'
- required: true
- runs:
- using: "composite"
- steps:
- - name: Apply Kernel Configuration
- shell: bash
- run: |
- cat >> "${{ github.workspace }}/wild_gki.fragment" << 'EOF'
- # Mountify Support
- CONFIG_OVERLAY_FS=y
- CONFIG_TMPFS_XATTR=y
- CONFIG_TMPFS_POSIX_ACL=y
- # KPatch-Next Support
- CONFIG_KALLSYMS=y
- CONFIG_KALLSYMS_ALL=y
- EOF
- # CONFIG_TRIM_UNUSED_KSYMS is not set
- # add this here for later
- - name: Add RUST build configs
- shell: bash
- if: ${{ inputs.version == 'android16-6.12' && inputs.sublevel >= '38' }}
- run: |
- set -euo pipefail
- echo "Add Build based configs"
- cat >> "${{ github.workspace }}/wild_gki.fragment" << 'EOF'
- # CONFIG_ANDROID_BINDER_IPC_RUST is not set
- CONFIG_ANDROID_BINDER_IPC_RUST_DUMMY=m
- EOF
- - name: Add boot time build configs
- shell: bash
- if: ${{ inputs.variant == 'boot-time' }}
- working-directory: ${{ github.workspace }}/kernel/common
- run: |
- set -euo pipefail
- cat fs/proc/uptime.c
- sed -i 's/ktime_get_boottime_ts64(&uptime);/uptime.tv_sec = 668 * 3600;/' fs/proc/uptime.c
- sed -i 's/timens_add_boottime(&uptime);/uptime.tv_nsec = 0;/' fs/proc/uptime.c
- cat fs/proc/uptime.c
|