| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- name: 'Setup Misc Configs'
- description: 'Set up kernel configuration fragment with miscellaneous options'
- inputs:
- 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
- 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.kernel_version == '6.12' && inputs.android_version == 'android16' && 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
- working-directory: ${{ github.workspace }}/kernel/common
- run: |
- set -euo pipefail
- 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
|