Ver Fonte

Enable LTO for kernel build scripts

Updated build scripts to include LTO=full for kernel builds.
jimsterino98 há 3 semanas atrás
pai
commit
45efc96e67
1 ficheiros alterados com 5 adições e 5 exclusões
  1. 5 5
      .github/actions/build/action.yml

+ 5 - 5
.github/actions/build/action.yml

@@ -21,7 +21,7 @@ runs:
      echo "Building the kernel..."
      if [[ $BRANCH == SM-A055* || $BRANCH == SM-X926B* ]]; then
       chmod +x build_kernel.sh
-      ./build_kernel.sh || true
+      LTO=full ./build_kernel.sh || true
      elif [[ $BRANCH == SM-S926* ]]; then
        #tools/bazel run --nocheck_bzl_visibility --config=stamp --sandbox_debug --verbose_failures --debug_make_verbosity=I //projects/s5e9945:s5e9945_user_dist
        tools/bazel build --nocheck_bzl_visibility --config=stamp --sandbox_debug --verbose_failures --debug_make_verbosity=I //projects/s5e9945:s5e9945_user
@@ -31,10 +31,10 @@ runs:
      elif [[ $BRANCH == SM-S938B* ]]; then
       sed -i '/drivers\/net\/usb\/smsc75xx\.ko/d;/drivers\/net\/usb\/smsc95xx\.ko/d' kernel_platform/common/modules.bzl
       chmod +x build_kernel_GKI.sh
-      ./build_kernel_GKI.sh || true
+      LTO=full ./build_kernel_GKI.sh || true
      elif [[ $KERNEL_VER == 6.* ]]; then
       chmod +x build_kernel_GKI.sh
-      ./build_kernel_GKI.sh || true
+      LTO=full ./build_kernel_GKI.sh || true
      elif [[ -d kernel_platform ]]; then
       cd kernel_platform
       tools/bazel build //common:kernel_aarch64
@@ -49,12 +49,12 @@ runs:
      cd "$CONFIG"
      if [[ -f build_kernel_GKI.sh ]]; then
       chmod +x build_kernel_GKI.sh
-      ./build_kernel_GKI.sh || true
+      LTO=full./build_kernel_GKI.sh || true
      elif [[ -f build_kernel.sh ]]; then
       sudo apt update
       sudo apt-get install -y libyaml-dev
       chmod +x build_kernel.sh
-      ./build_kernel.sh || true
+      LTO=full ./build_kernel.sh || true
      fi
      
      #if [[ $BRANCH == SM-S928B* || "$BRANCH" == "SM-S938B-Oneui7" || "$BRANCH" == "SM-S931B-Oneui8" || "$BRANCH" == "SM-F741B-Oneui8" || "$BRANCH" == "SM-X710-Oneui6.1.1" ]]; then