201-extra_optimization.patch 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. From: Felix Fietkau <nbd@nbd.name>
  2. Subject: Upgrade to Linux 2.6.19
  3. - Includes large parts of the patch from #1021 by dpalffy
  4. - Includes RB532 NAND driver changes by n0-1
  5. [john@phrozen.org: feix will add this to his upstream queue]
  6. lede-commit: bff468813f78f81e36ebb2a3f4354de7365e640f
  7. Signed-off-by: Felix Fietkau <nbd@nbd.name>
  8. ---
  9. Makefile | 6 +++---
  10. 1 file changed, 3 insertions(+), 3 deletions(-)
  11. --- a/Makefile
  12. +++ b/Makefile
  13. @@ -644,12 +644,12 @@ KBUILD_CFLAGS += $(call cc-option,-fdata
  14. endif
  15. ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE
  16. -KBUILD_CFLAGS += -Os $(call cc-disable-warning,maybe-uninitialized,)
  17. +KBUILD_CFLAGS += -Os $(call cc-disable-warning,maybe-uninitialized,) $(EXTRA_OPTIMIZATION)
  18. else
  19. ifdef CONFIG_PROFILE_ALL_BRANCHES
  20. -KBUILD_CFLAGS += -O2 $(call cc-disable-warning,maybe-uninitialized,)
  21. +KBUILD_CFLAGS += -O2 $(call cc-disable-warning,maybe-uninitialized,) $(EXTRA_OPTIMIZATION)
  22. else
  23. -KBUILD_CFLAGS += -O2
  24. +KBUILD_CFLAGS += -O2 -fno-reorder-blocks -fno-tree-ch $(EXTRA_OPTIMIZATION)
  25. endif
  26. endif