summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/codecs/demac/libdemac.make7
-rw-r--r--apps/codecs/libalac/libalac.make2
-rw-r--r--apps/codecs/libatrac/libatrac.make13
-rw-r--r--apps/codecs/libfaad/libfaad.make6
-rw-r--r--apps/codecs/libffmpegFLAC/libffmpegFLAC.make6
-rw-r--r--apps/codecs/libmusepack/libmusepack.make6
-rw-r--r--apps/codecs/libtta/libtta.make7
-rw-r--r--apps/codecs/libwavpack/libwavpack.make2
-rw-r--r--apps/codecs/libwma/libwma.make2
-rw-r--r--apps/codecs/libwmapro/libwmapro.make2
-rwxr-xr-xtools/configure4
11 files changed, 28 insertions, 29 deletions
diff --git a/apps/codecs/demac/libdemac.make b/apps/codecs/demac/libdemac.make
index dcbd35c6b1..bf0f821de3 100644
--- a/apps/codecs/demac/libdemac.make
+++ b/apps/codecs/demac/libdemac.make
@@ -27,7 +27,12 @@ $(DEMACLIB): $(DEMACLIB_OBJ)
27 $(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null 27 $(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null
28 28
29DEMACFLAGS = $(filter-out -O%,$(CODECFLAGS)) 29DEMACFLAGS = $(filter-out -O%,$(CODECFLAGS))
30DEMACFLAGS += -O3 30
31ifeq ($(CPU),coldfire)
32 DEMACFLAGS += -O2
33else
34 DEMACFLAGS += -O3
35endif
31 36
32$(CODECDIR)/ape_free_iram.h: $(CODECDIR)/ape-pre.map 37$(CODECDIR)/ape_free_iram.h: $(CODECDIR)/ape-pre.map
33 $(call PRINTS,GEN $(@F))perl -an \ 38 $(call PRINTS,GEN $(@F))perl -an \
diff --git a/apps/codecs/libalac/libalac.make b/apps/codecs/libalac/libalac.make
index c1b5d0acb1..b3b24cd2ee 100644
--- a/apps/codecs/libalac/libalac.make
+++ b/apps/codecs/libalac/libalac.make
@@ -22,7 +22,7 @@ ALACFLAGS = $(filter-out -O%,$(CODECFLAGS))
22ifeq ($(CPU),arm) 22ifeq ($(CPU),arm)
23 ALACFLAGS += -O2 23 ALACFLAGS += -O2
24else 24else
25 ALACFLAGS += -O3 25 ALACFLAGS += -O1
26endif 26endif
27 27
28$(CODECDIR)/libalac/%.o: $(ROOTDIR)/apps/codecs/libalac/%.c 28$(CODECDIR)/libalac/%.o: $(ROOTDIR)/apps/codecs/libalac/%.c
diff --git a/apps/codecs/libatrac/libatrac.make b/apps/codecs/libatrac/libatrac.make
index 01606e1f15..980f5873f6 100644
--- a/apps/codecs/libatrac/libatrac.make
+++ b/apps/codecs/libatrac/libatrac.make
@@ -16,3 +16,16 @@ OTHER_SRC += $(ATRACLIB_SRC)
16$(ATRACLIB): $(ATRACLIB_OBJ) 16$(ATRACLIB): $(ATRACLIB_OBJ)
17 $(SILENT)$(shell rm -f $@) 17 $(SILENT)$(shell rm -f $@)
18 $(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null 18 $(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null
19
20ATRACFLAGS = -I$(APPSDIR)/codecs/libatrac $(filter-out -O%,$(CODECFLAGS))
21# not tuned for arm
22ifeq ($(CPU),coldfire)
23 ATRACFLAGS += -O2
24else
25 ATRACFLAGS += -O1
26endif
27
28$(CODECDIR)/libatrac/%.o: $(ROOTDIR)/apps/codecs/libatrac/%.c
29 $(SILENT)mkdir -p $(dir $@)
30 $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) $(ATRACFLAGS) -c $< -o $@
31
diff --git a/apps/codecs/libfaad/libfaad.make b/apps/codecs/libfaad/libfaad.make
index a4207a67ec..a52e6f354a 100644
--- a/apps/codecs/libfaad/libfaad.make
+++ b/apps/codecs/libfaad/libfaad.make
@@ -20,11 +20,7 @@ $(FAADLIB): $(FAADLIB_OBJ)
20 20
21# libfaad is faster on ARM with -O2, use -O1 for other CPUs 21# libfaad is faster on ARM with -O2, use -O1 for other CPUs
22FAADFLAGS = -I$(APPSDIR)/codecs/libfaad $(filter-out -O%,$(CODECFLAGS)) 22FAADFLAGS = -I$(APPSDIR)/codecs/libfaad $(filter-out -O%,$(CODECFLAGS))
23ifeq ($(CPU),arm) 23FAADFLAGS += -O2
24 FAADFLAGS += -O2
25else
26 FAADFLAGS += -O1
27endif
28 24
29$(CODECDIR)/libfaad/%.o: $(ROOTDIR)/apps/codecs/libfaad/%.c 25$(CODECDIR)/libfaad/%.o: $(ROOTDIR)/apps/codecs/libfaad/%.c
30 $(SILENT)mkdir -p $(dir $@) 26 $(SILENT)mkdir -p $(dir $@)
diff --git a/apps/codecs/libffmpegFLAC/libffmpegFLAC.make b/apps/codecs/libffmpegFLAC/libffmpegFLAC.make
index aae18aebd2..912538530a 100644
--- a/apps/codecs/libffmpegFLAC/libffmpegFLAC.make
+++ b/apps/codecs/libffmpegFLAC/libffmpegFLAC.make
@@ -15,11 +15,7 @@ OTHER_SRC += $(FFMPEGFLACLIB_SRC)
15 15
16# libffmpegFLAC is faster on ARM-targets with -O2 than -O1 16# libffmpegFLAC is faster on ARM-targets with -O2 than -O1
17FFMPEGFLACFLAGS = -I$(APPSDIR)/codecs/libffmpegFLAC $(filter-out -O%,$(CODECFLAGS)) 17FFMPEGFLACFLAGS = -I$(APPSDIR)/codecs/libffmpegFLAC $(filter-out -O%,$(CODECFLAGS))
18ifeq ($(CPU),arm) 18FFMPEGFLACFLAGS += -O2
19 FFMPEGFLACFLAGS += -O2
20else
21 FFMPEGFLACFLAGS += -O1
22endif
23 19
24$(FFMPEGFLACLIB): $(FFMPEGFLACLIB_OBJ) 20$(FFMPEGFLACLIB): $(FFMPEGFLACLIB_OBJ)
25 $(SILENT)$(shell rm -f $@) 21 $(SILENT)$(shell rm -f $@)
diff --git a/apps/codecs/libmusepack/libmusepack.make b/apps/codecs/libmusepack/libmusepack.make
index e975f002e4..3a4127e9c4 100644
--- a/apps/codecs/libmusepack/libmusepack.make
+++ b/apps/codecs/libmusepack/libmusepack.make
@@ -19,11 +19,7 @@ $(MUSEPACKLIB): $(MUSEPACKLIB_OBJ)
19 19
20# libmusepack is faster on ARM-targets with -O1 than -O2 20# libmusepack is faster on ARM-targets with -O1 than -O2
21MUSEPACKFLAGS = $(filter-out -O%,$(CODECFLAGS)) -I$(APPSDIR)/codecs/libmusepack 21MUSEPACKFLAGS = $(filter-out -O%,$(CODECFLAGS)) -I$(APPSDIR)/codecs/libmusepack
22ifeq ($(CPU),arm) 22MUSEPACKFLAGS += -O1
23 MUSEPACKFLAGS += -O1
24else
25 MUSEPACKFLAGS += -O2
26endif
27 23
28$(CODECDIR)/libmusepack/%.o: $(ROOTDIR)/apps/codecs/libmusepack/%.c 24$(CODECDIR)/libmusepack/%.o: $(ROOTDIR)/apps/codecs/libmusepack/%.c
29 $(SILENT)mkdir -p $(dir $@) 25 $(SILENT)mkdir -p $(dir $@)
diff --git a/apps/codecs/libtta/libtta.make b/apps/codecs/libtta/libtta.make
index d458ab78bc..7bd953e371 100644
--- a/apps/codecs/libtta/libtta.make
+++ b/apps/codecs/libtta/libtta.make
@@ -18,12 +18,7 @@ $(TTALIB): $(TTALIB_OBJ)
18 $(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null 18 $(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null
19 19
20TTAFLAGS = $(filter-out -O%,$(CODECFLAGS)) 20TTAFLAGS = $(filter-out -O%,$(CODECFLAGS))
21 21TTAFLAGS += -O2
22ifeq ($(CPU),coldfire)
23 TTAFLAGS += -O3
24else
25 TTAFLAGS += -O2
26endif
27 22
28$(CODECDIR)/libtta/%.o: $(ROOTDIR)/apps/codecs/libtta/%.c 23$(CODECDIR)/libtta/%.o: $(ROOTDIR)/apps/codecs/libtta/%.c
29 $(SILENT)mkdir -p $(dir $@) 24 $(SILENT)mkdir -p $(dir $@)
diff --git a/apps/codecs/libwavpack/libwavpack.make b/apps/codecs/libwavpack/libwavpack.make
index c016ac85c6..61430b55da 100644
--- a/apps/codecs/libwavpack/libwavpack.make
+++ b/apps/codecs/libwavpack/libwavpack.make
@@ -18,7 +18,7 @@ WAVPACKFLAGS = -I$(APPSDIR)/codecs/libwavpack $(filter-out -O%,$(CODECFLAGS))
18ifeq ($(CPU),arm) 18ifeq ($(CPU),arm)
19 WAVPACKFLAGS += -O3 19 WAVPACKFLAGS += -O3
20else 20else
21 WAVPACKFLAGS += -O2 21 WAVPACKFLAGS += -O1
22endif 22endif
23 23
24 24
diff --git a/apps/codecs/libwma/libwma.make b/apps/codecs/libwma/libwma.make
index 360245139d..66b315eca0 100644
--- a/apps/codecs/libwma/libwma.make
+++ b/apps/codecs/libwma/libwma.make
@@ -21,8 +21,6 @@ WMAFLAGS = -I$(APPSDIR)/codecs/libwma $(filter-out -O%,$(CODECFLAGS))
21 21
22ifeq ($(MEMORYSIZE),2) 22ifeq ($(MEMORYSIZE),2)
23 WMAFLAGS += -Os 23 WMAFLAGS += -Os
24else ifeq ($(CPU),coldfire)
25 WMAFLAGS += -O3
26else 24else
27 WMAFLAGS += -O2 25 WMAFLAGS += -O2
28endif 26endif
diff --git a/apps/codecs/libwmapro/libwmapro.make b/apps/codecs/libwmapro/libwmapro.make
index e54f8db71c..4dc52fa15b 100644
--- a/apps/codecs/libwmapro/libwmapro.make
+++ b/apps/codecs/libwmapro/libwmapro.make
@@ -20,7 +20,7 @@ $(WMAPROLIB): $(WMAPROLIB_OBJ)
20WMAPROFLAGS = -I$(APPSDIR)/codecs/libwmapro $(filter-out -O%,$(CODECFLAGS)) 20WMAPROFLAGS = -I$(APPSDIR)/codecs/libwmapro $(filter-out -O%,$(CODECFLAGS))
21 21
22ifeq ($(CPU),coldfire) 22ifeq ($(CPU),coldfire)
23 WMAPROFLAGS += -O2 23 WMAPROFLAGS += -O3
24else 24else
25 WMAPROFLAGS += -O1 25 WMAPROFLAGS += -O1
26endif 26endif
diff --git a/tools/configure b/tools/configure
index 6a7eaeb28d..db10d1bf64 100755
--- a/tools/configure
+++ b/tools/configure
@@ -381,10 +381,10 @@ calmrisccc () {
381 381
382coldfirecc () { 382coldfirecc () {
383 prefixtools m68k-elf- 383 prefixtools m68k-elf-
384 GCCOPTS="$CCOPTS -m5206e -Wa\,-m5249 -malign-int -mstrict-align" 384 GCCOPTS="$CCOPTS -mcpu=5249 -malign-int -mstrict-align"
385 GCCOPTIMIZE="-fomit-frame-pointer" 385 GCCOPTIMIZE="-fomit-frame-pointer"
386 endian="big" 386 endian="big"
387 gccchoice="3.4.6" 387 gccchoice="4.5.2"
388} 388}
389 389
390arm7tdmicc () { 390arm7tdmicc () {