Explorar o código

Add action to enable LTO in Samsung kernels

This action enables Link Time Optimization (LTO) for Samsung kernels.
jimsterino98 hai 1 mes
pai
achega
01d6bf2132
Modificáronse 1 ficheiros con 11 adicións e 0 borrados
  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