kernel: bump 5.4 to 5.4.48
[openwrt/openwrt.git] / target / linux / generic / pending-5.4 / 201-extra_optimization.patch
1 From: Felix Fietkau <nbd@nbd.name>
2 Subject: Upgrade to Linux 2.6.19
3
4 - Includes large parts of the patch from #1021 by dpalffy
5 - Includes RB532 NAND driver changes by n0-1
6
7 [john@phrozen.org: feix will add this to his upstream queue]
8
9 lede-commit: bff468813f78f81e36ebb2a3f4354de7365e640f
10 Signed-off-by: Felix Fietkau <nbd@nbd.name>
11 ---
12 Makefile | 6 +++---
13 1 file changed, 3 insertions(+), 3 deletions(-)
14
15 --- a/Makefile
16 +++ b/Makefile
17 @@ -697,11 +697,11 @@ KBUILD_CFLAGS += $(call cc-disable-warni
18 KBUILD_CFLAGS += $(call cc-disable-warning, address-of-packed-member)
19
20 ifdef CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE
21 -KBUILD_CFLAGS += -O2
22 +KBUILD_CFLAGS += -O2 $(EXTRA_OPTIMIZATION)
23 else ifdef CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE_O3
24 -KBUILD_CFLAGS += -O3
25 +KBUILD_CFLAGS += -O3 $(EXTRA_OPTIMIZATION)
26 else ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE
27 -KBUILD_CFLAGS += -Os
28 +KBUILD_CFLAGS += -Os -fno-reorder-blocks -fno-tree-ch $(EXTRA_OPTIMIZATION)
29 endif
30
31 # Tell gcc to never replace conditional load with a non-conditional one