diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-07-29 09:38:29 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-07-29 09:38:29 +0000 |
commit | 01695667a89785538d92a65f85c739ad27a5db09 (patch) | |
tree | 66cc67ad618d7ddfdf73f2927eeb37e20355dd44 /target/linux/generic/patches-3.10 | |
parent | 6562d215fc07a8420c2dca1aa4d6e491303231bd (diff) | |
download | master-187ad058-01695667a89785538d92a65f85c739ad27a5db09.tar.gz master-187ad058-01695667a89785538d92a65f85c739ad27a5db09.tar.bz2 master-187ad058-01695667a89785538d92a65f85c739ad27a5db09.zip |
build: unify target independent optimization options
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37600 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic/patches-3.10')
-rw-r--r-- | target/linux/generic/patches-3.10/201-extra_optimization.patch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/generic/patches-3.10/201-extra_optimization.patch b/target/linux/generic/patches-3.10/201-extra_optimization.patch index 6af3d01ba2..ccb7fcfb3b 100644 --- a/target/linux/generic/patches-3.10/201-extra_optimization.patch +++ b/target/linux/generic/patches-3.10/201-extra_optimization.patch @@ -5,10 +5,10 @@ ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE -KBUILD_CFLAGS += -Os $(call cc-disable-warning,maybe-uninitialized,) -+KBUILD_CFLAGS += -Os -fno-caller-saves $(call cc-disable-warning,maybe-uninitialized,) ++KBUILD_CFLAGS += -Os $(EXTRA_OPTIMIZATION) $(call cc-disable-warning,maybe-uninitialized,) else -KBUILD_CFLAGS += -O2 -+KBUILD_CFLAGS += -O2 -fno-reorder-blocks -fno-tree-ch -fno-caller-saves ++KBUILD_CFLAGS += -O2 -fno-reorder-blocks -fno-tree-ch $(EXTRA_OPTIMIZATION) endif include $(srctree)/arch/$(SRCARCH)/Makefile |