2013-03-14 22:45:56 +08:00
|
|
|
--- a/Makefile
|
|
|
|
+++ b/Makefile
|
2013-04-28 19:55:23 +08:00
|
|
|
@@ -571,9 +571,9 @@ endif # $(dot-config)
|
2013-03-14 22:45:56 +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)
|
2013-03-14 22:45:56 +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)
|
2013-03-14 22:45:56 +08:00
|
|
|
endif
|
|
|
|
|
|
|
|
include $(srctree)/arch/$(SRCARCH)/Makefile
|