action.yml 1.5 KB

12345678910111213141516171819202122232425262728293031323334
  1. name: add bbrv3 AND bbrv1
  2. description: enable configs to add bbrv3 and v1 to kernel
  3. inputs:
  4. kernel_version:
  5. description: 'version of kernel'
  6. required: true
  7. android_version:
  8. description: 'android version of kernel'
  9. required: true
  10. runs:
  11. using: composite
  12. steps:
  13. - name: apply bbrv3 patch
  14. shell: bash
  15. run: |
  16. cd "$COMMON"
  17. patch -p1 < "$KERNEL_PATCHES/common/bbrv3/0001-net-tcp-backport-BBRv3-to-${{ inputs.android_version }}-${{ inputs.kernel_version }}.patch"
  18. - name: add bbr configs to defconfig
  19. shell: bash
  20. run: |
  21. "$COMMON/scripts/config" --file "$GKI_DEFCONFIG" --enable CONFIG_NET_SCH_FQ
  22. "$COMMON/scripts/config" --file "$GKI_DEFCONFIG" --enable CONFIG_NET_SCH_FQ_CODEL
  23. "$COMMON/scripts/config" --file "$GKI_DEFCONFIG" --enable CONFIG_NET_SCH_CAKE
  24. "$COMMON/scripts/config" --file "$GKI_DEFCONFIG" --enable CONFIG_NET_SCH_PIE
  25. "$COMMON/scripts/config" --file "$GKI_DEFCONFIG" --enable CONFIG_NET_SCH_FQ_PIE
  26. "$COMMON/scripts/config" --file "$GKI_DEFCONFIG" --enable CONFIG_TCP_CONG_ADVANCED
  27. "$COMMON/scripts/config" --file "$GKI_DEFCONFIG" --enable CONFIG_TCP_CONG_BBR
  28. "$COMMON/scripts/config" --file "$GKI_DEFCONFIG" --enable CONFIG_TCP_CONG_BBR3
  29. "$COMMON/scripts/config" --file "$GKI_DEFCONFIG" --enable CONFIG_TCP_CONG_CUBIC
  30. "$COMMON/scripts/config" --file "$GKI_DEFCONFIG" --disable CONFIG_TCP_CONG_BIC
  31. "$COMMON/scripts/config" --file "$GKI_DEFCONFIG" --disable CONFIG_TCP_CONG_WESTWOOD
  32. "$COMMON/scripts/config" --file "$GKI_DEFCONFIG" --disable CONFIG_TCP_CONG_HTCP