action.yml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. name: 'Apply Device-Specific Patches'
  2. description: 'Apply WiFi/Bluetooth fixes for Samsung and Xiaomi 6.6 GKI devices'
  3. inputs:
  4. kernel_version:
  5. description: 'Kernel version (e.g., 6.6)'
  6. required: true
  7. runs:
  8. using: "composite"
  9. steps:
  10. - name: Fix WiFi and Bluetooth on Samsung 6.6 GKI Devices
  11. if: ${{ inputs.kernel_version == '6.6' }}
  12. shell: bash
  13. working-directory: ${{ github.workspace }}/kernel/common
  14. run: |
  15. SYMBOL_LIST=android/abi_gki_aarch64_galaxy
  16. echo "kdp_set_cred_non_rcu" >> $SYMBOL_LIST
  17. echo "kdp_usecount_dec_and_test" >> $SYMBOL_LIST
  18. echo "kdp_usecount_inc" >> $SYMBOL_LIST
  19. PATCH="${{ github.workspace }}/kernel_patches/samsung/min_kdp/add-min_kdp-symbols.patch"
  20. if patch -p1 --dry-run < "$PATCH"; then
  21. patch -p1 --no-backup-if-mismatch < $PATCH
  22. fi
  23. cp "${{ github.workspace }}/kernel_patches/samsung/min_kdp/min_kdp.c" drivers/min_kdp.c
  24. echo "obj-y += min_kdp.o" >> drivers/Makefile
  25. - name: Fix WiFi and Bluetooth on Xiaomi 6.6 GKI Devices
  26. if: ${{ inputs.kernel_version == '6.6' }}
  27. shell: bash
  28. working-directory: ${{ github.workspace }}/kernel/common
  29. run: |
  30. SYMBOL_LIST=android/abi_gki_aarch64_xiaomi
  31. echo "device_find_any_child" >> $SYMBOL_LIST