Przeglądaj źródła

Add action to enable LTO in Samsung kernels

This action enables Link Time Optimization (LTO) for Samsung kernels.
jimsterino98 1 miesiąc temu
rodzic
commit
01d6bf2132
1 zmienionych plików z 11 dodań i 0 usunięć
  1. 11 0
      .github/actions/lto/action.yml

+ 11 - 0
.github/actions/lto/action.yml

@@ -0,0 +1,11 @@
+name: enable LTO
+description: samsung seems to have no LTO in their kernels, this enables it
+
+runs:
+ using: composite
+ steps:
+  - name: enable FULL LTO
+    shell: bash
+    run: |
+     cd "$COMMON"
+     sed -i '/^default LTO_NONE$/s/default LTO_NONE/default LTO_CLANG_FULL/' arch/Kconfig