diff options
-rw-r--r-- | apps/codecs/demac/libdemac.make | 7 | ||||
-rw-r--r-- | apps/codecs/libalac/libalac.make | 2 | ||||
-rw-r--r-- | apps/codecs/libatrac/libatrac.make | 13 | ||||
-rw-r--r-- | apps/codecs/libfaad/libfaad.make | 6 | ||||
-rw-r--r-- | apps/codecs/libffmpegFLAC/libffmpegFLAC.make | 6 | ||||
-rw-r--r-- | apps/codecs/libmusepack/libmusepack.make | 6 | ||||
-rw-r--r-- | apps/codecs/libtta/libtta.make | 7 | ||||
-rw-r--r-- | apps/codecs/libwavpack/libwavpack.make | 2 | ||||
-rw-r--r-- | apps/codecs/libwma/libwma.make | 2 | ||||
-rw-r--r-- | apps/codecs/libwmapro/libwmapro.make | 2 | ||||
-rwxr-xr-x | tools/configure | 4 |
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 | ||
29 | DEMACFLAGS = $(filter-out -O%,$(CODECFLAGS)) | 29 | DEMACFLAGS = $(filter-out -O%,$(CODECFLAGS)) |
30 | DEMACFLAGS += -O3 | 30 | |
31 | ifeq ($(CPU),coldfire) | ||
32 | DEMACFLAGS += -O2 | ||
33 | else | ||
34 | DEMACFLAGS += -O3 | ||
35 | endif | ||
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)) | |||
22 | ifeq ($(CPU),arm) | 22 | ifeq ($(CPU),arm) |
23 | ALACFLAGS += -O2 | 23 | ALACFLAGS += -O2 |
24 | else | 24 | else |
25 | ALACFLAGS += -O3 | 25 | ALACFLAGS += -O1 |
26 | endif | 26 | endif |
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 | |||
20 | ATRACFLAGS = -I$(APPSDIR)/codecs/libatrac $(filter-out -O%,$(CODECFLAGS)) | ||
21 | # not tuned for arm | ||
22 | ifeq ($(CPU),coldfire) | ||
23 | ATRACFLAGS += -O2 | ||
24 | else | ||
25 | ATRACFLAGS += -O1 | ||
26 | endif | ||
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 |
22 | FAADFLAGS = -I$(APPSDIR)/codecs/libfaad $(filter-out -O%,$(CODECFLAGS)) | 22 | FAADFLAGS = -I$(APPSDIR)/codecs/libfaad $(filter-out -O%,$(CODECFLAGS)) |
23 | ifeq ($(CPU),arm) | 23 | FAADFLAGS += -O2 |
24 | FAADFLAGS += -O2 | ||
25 | else | ||
26 | FAADFLAGS += -O1 | ||
27 | endif | ||
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 |
17 | FFMPEGFLACFLAGS = -I$(APPSDIR)/codecs/libffmpegFLAC $(filter-out -O%,$(CODECFLAGS)) | 17 | FFMPEGFLACFLAGS = -I$(APPSDIR)/codecs/libffmpegFLAC $(filter-out -O%,$(CODECFLAGS)) |
18 | ifeq ($(CPU),arm) | 18 | FFMPEGFLACFLAGS += -O2 |
19 | FFMPEGFLACFLAGS += -O2 | ||
20 | else | ||
21 | FFMPEGFLACFLAGS += -O1 | ||
22 | endif | ||
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 |
21 | MUSEPACKFLAGS = $(filter-out -O%,$(CODECFLAGS)) -I$(APPSDIR)/codecs/libmusepack | 21 | MUSEPACKFLAGS = $(filter-out -O%,$(CODECFLAGS)) -I$(APPSDIR)/codecs/libmusepack |
22 | ifeq ($(CPU),arm) | 22 | MUSEPACKFLAGS += -O1 |
23 | MUSEPACKFLAGS += -O1 | ||
24 | else | ||
25 | MUSEPACKFLAGS += -O2 | ||
26 | endif | ||
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 | ||
20 | TTAFLAGS = $(filter-out -O%,$(CODECFLAGS)) | 20 | TTAFLAGS = $(filter-out -O%,$(CODECFLAGS)) |
21 | 21 | TTAFLAGS += -O2 | |
22 | ifeq ($(CPU),coldfire) | ||
23 | TTAFLAGS += -O3 | ||
24 | else | ||
25 | TTAFLAGS += -O2 | ||
26 | endif | ||
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)) | |||
18 | ifeq ($(CPU),arm) | 18 | ifeq ($(CPU),arm) |
19 | WAVPACKFLAGS += -O3 | 19 | WAVPACKFLAGS += -O3 |
20 | else | 20 | else |
21 | WAVPACKFLAGS += -O2 | 21 | WAVPACKFLAGS += -O1 |
22 | endif | 22 | endif |
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 | ||
22 | ifeq ($(MEMORYSIZE),2) | 22 | ifeq ($(MEMORYSIZE),2) |
23 | WMAFLAGS += -Os | 23 | WMAFLAGS += -Os |
24 | else ifeq ($(CPU),coldfire) | ||
25 | WMAFLAGS += -O3 | ||
26 | else | 24 | else |
27 | WMAFLAGS += -O2 | 25 | WMAFLAGS += -O2 |
28 | endif | 26 | endif |
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) | |||
20 | WMAPROFLAGS = -I$(APPSDIR)/codecs/libwmapro $(filter-out -O%,$(CODECFLAGS)) | 20 | WMAPROFLAGS = -I$(APPSDIR)/codecs/libwmapro $(filter-out -O%,$(CODECFLAGS)) |
21 | 21 | ||
22 | ifeq ($(CPU),coldfire) | 22 | ifeq ($(CPU),coldfire) |
23 | WMAPROFLAGS += -O2 | 23 | WMAPROFLAGS += -O3 |
24 | else | 24 | else |
25 | WMAPROFLAGS += -O1 | 25 | WMAPROFLAGS += -O1 |
26 | endif | 26 | endif |
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 | ||
382 | coldfirecc () { | 382 | coldfirecc () { |
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 | ||
390 | arm7tdmicc () { | 390 | arm7tdmicc () { |