author | kergoth <kergoth> | 2002-11-06 22:46:03 (UTC) |
---|---|---|
committer | kergoth <kergoth> | 2002-11-06 22:46:03 (UTC) |
commit | b6a55a339cf2d5829a9f13bf0bd50899c811f54d (patch) (unidiff) | |
tree | 30fc7cecfa669a18ef10fd9168678b020b40e101 | |
parent | e44cdb16632a4c904d8c43471fea1f8e790c7651 (diff) | |
download | opie-b6a55a339cf2d5829a9f13bf0bd50899c811f54d.zip opie-b6a55a339cf2d5829a9f13bf0bd50899c811f54d.tar.gz opie-b6a55a339cf2d5829a9f13bf0bd50899c811f54d.tar.bz2 |
Use optimizations
-rw-r--r-- | Makefile.test | 6 | ||||
-rw-r--r-- | config.in.in | 11 |
2 files changed, 17 insertions, 0 deletions
diff --git a/Makefile.test b/Makefile.test index 11fec40..209eef3 100644 --- a/Makefile.test +++ b/Makefile.test | |||
@@ -96,2 +96,8 @@ export QMAKESPEC=$(QMAKESPECSDIR)/$(patsubst "%",%,$(CONFIG_SPECFILE)) | |||
96 | 96 | ||
97 | ifdef CONFIG_OPTIMIZATIONS | ||
98 | export CFLAGS_RELEASE=$(patsubst "%,%,$(CONFIG_OPTIMIZATIONS)) | ||
99 | export CFLAGS_RELEASE:=$(patsubst %",%,$(CFLAGS_RELEASE)) | ||
100 | $(warning CFLAGS_RELEASE is $(CFLAGS_RELEASE)) | ||
101 | endif | ||
102 | |||
97 | all clean: $(subdir-y) | 103 | all clean: $(subdir-y) |
diff --git a/config.in.in b/config.in.in index 7af1f17..679292f 100644 --- a/config.in.in +++ b/config.in.in | |||
@@ -36,2 +36,6 @@ endchoice | |||
36 | 36 | ||
37 | config OPTIMIZE | ||
38 | boolean "Use optimizations" | ||
39 | default "y" if ! TARGET_X86 | ||
40 | |||
37 | config SPECFILE | 41 | config SPECFILE |
@@ -51,2 +55,9 @@ config CUSTOMFILE | |||
51 | 55 | ||
56 | |||
57 | config OPTIMIZATIONS | ||
58 | string "Optimization flags" | ||
59 | depends OPTIMIZE | ||
60 | default "-march=armv4 -mtune=strongarm1100 -mapcs-32 -fexpensive-optimizations -fomit-frame-pointer -O2" if TARGET_IPAQ | ||
61 | default "-march=armv4 -mtune=strongarm1100 -mapcs-32 -fexpensive-optimizations -fomit-frame-pointer -O2" if TARGET_SHARP | ||
62 | |||
52 | #config CROSS | 63 | #config CROSS |