2012-10-23 20:21:34 +08:00
|
|
|
--- a/Makefile
|
|
|
|
+++ b/Makefile
|
2012-10-24 21:05:22 +08:00
|
|
|
@@ -556,9 +556,9 @@ endif # $(dot-config)
|
2012-10-23 20:21:34 +08:00
|
|
|
all: vmlinux
|
|
|
|
|
|
|
|
ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE
|
|
|
|
-KBUILD_CFLAGS += -Os
|
2013-07-29 17:38:29 +08:00
|
|
|
+KBUILD_CFLAGS += -Os $(EXTRA_OPTIMIZATION)
|
2012-10-23 20:21:34 +08:00
|
|
|
else
|
|
|
|
-KBUILD_CFLAGS += -O2
|
2013-07-29 17:38:29 +08:00
|
|
|
+KBUILD_CFLAGS += -O2 -fno-reorder-blocks -fno-tree-ch $(EXTRA_OPTIMIZATION)
|
2012-10-23 20:21:34 +08:00
|
|
|
endif
|
|
|
|
|
|
|
|
include $(srctree)/arch/$(SRCARCH)/Makefile
|