action.yml 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. name: build kernel
  2. description: each samsung kernel has its own way of building the kernel, they are sorted here.
  3. inputs:
  4. branch:
  5. description: 'device kernel'
  6. required: true
  7. ccache:
  8. description: 'build with ccache'
  9. required: true
  10. runs:
  11. using: composite
  12. steps:
  13. - name: start kernel build
  14. shell: bash
  15. run: |
  16. set -e
  17. set -x
  18. cd "$CONFIG"
  19. echo "Building the kernel..."
  20. if [[ ${{ inputs.branch }} == SM-S928B* || "${{ inputs.branch }}" == "SM-S938B-Oneui7" || "${{ inputs.branch }}" == "SM-S931B-Oneui8" || "${{ inputs.branch }}" == "SM-F741B-Oneui8" || "${{ inputs.branch }}" == "SM-X710-Oneui6.1.1" ]]; then
  21. cd kernel_platform
  22. tools/bazel build //common:kernel_aarch64
  23. #chmod +x build_kernel_GKI.sh
  24. #./build_kernel_GKI.sh || true
  25. elif [[ "${{ inputs.branch }}" == "SM-X916B" || "${{ inputs.branch }}" == "SM-F946N-Oneui7" || "${{ inputs.branch }}" == "SM-S916B-Oneui8" || "${{ inputs.branch }}" == "SM-S918B-Oneui8" || "${{ inputs.branch }}" == "SM-F946B-Oneui8" || "${{ inputs.branch }}" == "SM-S901E-Oneui8" || "${{ inputs.branch }}" == "SM-X800-Oneui8" || ${{ inputs.branch }} == SM-S911B* || "${{ inputs.branch }}" == "SM-M556B-Oneui8" ]]; then
  26. cd kernel_platform
  27. tools/bazel build //common:kernel_aarch64
  28. #chmod +x build_kernel_GKI.sh
  29. #./build_kernel_GKI.sh || true
  30. elif [[ ${{ inputs.branch }} == SM-A546* || "${{ inputs.branch }}" == "SM-M146B-Oneui7-ADYJ2" || "${{ inputs.branch }}" == "SM-S908B-Oneui8-bitK" || ${{ inputs.branch }} == SM-A055* || "${{ inputs.branch }}" == "SM-X610-Oneui6.1.1-bit7" || "${{ inputs.branch }}" == "SM-A166B-Oneui7" ]]; then
  31. #sudo apt update
  32. #sudo apt-get install -y libyaml-dev
  33. chmod +x build_kernel.sh
  34. ./build_kernel.sh || true
  35. elif [[ "${{ inputs.branch }}" == "SM-A566B" ]]; then
  36. chmod +x build_script.sh
  37. touch ./kernel-6.6/abi_symbollist.raw
  38. touch ./kernel-6.6/abi_symbollist
  39. ./build_script.sh || true
  40. elif [[ ${{ inputs.branch }} == SM-S926B* ]]; then
  41. #tools/bazel run --nocheck_bzl_visibility --config=stamp --sandbox_debug --verbose_failures --debug_make_verbosity=I //projects/s5e9945:s5e9945_user_dist
  42. cd kernel
  43. SYMBOL_LIST=android/abi_gki_aarch64_galaxy
  44. echo "find_in_flight_task_in_one_workqueue" >> $SYMBOL_LIST
  45. cd ..
  46. tools/bazel build //kernel:kernel_aarch64
  47. elif [[ ${{ inputs.branch }} == SM-A556* ]]; then
  48. #tools/bazel run --nocheck_bzl_visibility --config=stamp --sandbox_debug --verbose_failures --debug_make_verbosity=I //projects/s5e8845:s5e8845_user_dist
  49. cd kernel
  50. SYMBOL_LIST=android/abi_gki_aarch64_galaxy
  51. echo "find_in_flight_task_in_one_workqueue" >> $SYMBOL_LIST
  52. cd ..
  53. tools/bazel build //kernel:kernel_aarch64
  54. elif [[ "${{ inputs.branch }}" == "SM-A075M-Oneui7" ]]; then
  55. chmod +x build_kernel.sh
  56. ./build_kernel.sh
  57. fi