| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- name: Setup Droidspaces-OSS
- description: Clone and apply Droidspaces-OSS patches with version-specific fixes
- inputs:
- version:
- description: 'Kernel config version (e.g., android15-6.6)'
- required: true
- android_version:
- description: 'Android version (e.g., android15)'
- required: true
- kernel_version:
- description: 'Kernel version (e.g., 6.6)'
- required: true
- os_patch_level:
- description: 'OS patch level (e.g., 2024-07)'
- required: true
- sublevel:
- description: 'Kernel sublevel'
- required: true
- runs:
- using: composite
- steps:
- - name: Download and Apply Droidspaces-OSS Patches
- shell: bash
- working-directory: ${{ github.workspace }}
- run: |
- git clone --depth=1 https://github.com/ravindu644/Droidspaces-OSS.git
- - name: Apply the SYSVIPC kABI fix
- shell: bash
- working-directory: ${{ github.workspace }}/kernel/common
- run: |
- if [ "${{ inputs.version }}" == "android16-6.12" ]; then
- cp ${{ github.workspace }}/Droidspaces-OSS/Documentation/resources/kernel-patches/GKI/kernel-6.12/001.GKI-6.12-or-above-fix_sysvipc_kabi.patch ./
- patch -p1 < 001.GKI-6.12-or-above-fix_sysvipc_kabi.patch
- elif [ "${{ inputs.version }}" == "android15-6.6" ]; then
- #curl -L https://raw.githubusercontent.com/ravindu644/Droidspaces-OSS/main/Documentation/resources/kernel-patches/GKI/below-kernel-6.12/001.GKI-below-6.12-fix_sysvipc_kabi_1_2_3.patch
- #curl -L https://raw.githubusercontent.com/ravindu644/Droidspaces-OSS/main/Documentation/resources/kernel-patches/GKI/below-kernel-6.12/001.GKI-below-6.12-fix_sysvipc_kabi_3_4_5.patch
- cp ${{ github.workspace }}/Droidspaces-OSS/Documentation/resources/kernel-patches/GKI/below-kernel-6.12/001.GKI-below-6.12-fix_sysvipc_kabi_6_7_8.patch ./
- patch -p1 < 001.GKI-below-6.12-fix_sysvipc_kabi_6_7_8.patch
- elif [ "${{ inputs.version }}" == "android14-6.1" ]; then
- #curl -L https://raw.githubusercontent.com/ravindu644/Droidspaces-OSS/main/Documentation/resources/kernel-patches/GKI/below-kernel-6.12/001.GKI-below-6.12-fix_sysvipc_kabi_1_2_3.patch
- #curl -L https://raw.githubusercontent.com/ravindu644/Droidspaces-OSS/main/Documentation/resources/kernel-patches/GKI/below-kernel-6.12/001.GKI-below-6.12-fix_sysvipc_kabi_3_4_5.patch
- cp ${{ github.workspace }}/Droidspaces-OSS/Documentation/resources/kernel-patches/GKI/below-kernel-6.12/001.GKI-below-6.12-fix_sysvipc_kabi_6_7_8.patch ./
- patch -p1 < 001.GKI-below-6.12-fix_sysvipc_kabi_6_7_8.patch
- elif [ "${{ inputs.version }}" == "android14-5.15" ]; then
- cp ${{ github.workspace }}/Droidspaces-OSS/Documentation/resources/kernel-patches/GKI/below-kernel-6.12/001.GKI-below-6.12-fix_sysvipc_kabi_6_7_8.patch ./
- patch -p1 < 001.GKI-below-6.12-fix_sysvipc_kabi_6_7_8.patch
- elif [ "${{ inputs.version }}" == "android13-5.15" ]; then
- cp ${{ github.workspace }}/Droidspaces-OSS/Documentation/resources/kernel-patches/GKI/below-kernel-6.12/001.GKI-below-6.12-fix_sysvipc_kabi_6_7_8.patch ./
- patch -p1 < 001.GKI-below-6.12-fix_sysvipc_kabi_6_7_8.patch
- elif [ "${{ inputs.version }}" == "android12-5.10" ] || [ "${{ inputs.version }}" == "android13-5.10" ]; then
- cp ${{ github.workspace }}/Droidspaces-OSS/Documentation/resources/kernel-patches/GKI/below-kernel-6.12/001.GKI-below-6.12-fix_sysvipc_kabi_6_7_8.patch ./
- patch -p1 < 001.GKI-below-6.12-fix_sysvipc_kabi_6_7_8.patch
- cp ${{ github.workspace }}/Droidspaces-OSS/Documentation/resources/kernel-patches/GKI/below-kernel-6.12/002.5.10_or_lower_use_android_abi_padding_for_posix_mqueue.patch ./
- patch -p1 < 002.5.10_or_lower_use_android_abi_padding_for_posix_mqueue.patch
- fi
- - name: Enable Configs
- shell: bash
- working-directory: ${{ github.workspace }}/kernel
- run: |
- cat >> "${{ github.workspace }}/wild_gki.fragment" << 'EOF'
- CONFIG_SYSVIPC=y
- CONFIG_POSIX_MQUEUE=y
- CONFIG_IPC_NS=y
- CONFIG_PID_NS=y
- CONFIG_DEVTMPFS=y
- EOF
|