Rockbox

Tasklist

FS#12231 - Centralize codec compilation flag setting

Attached to Project: Rockbox
Opened by Nils Wallménius (nls) - Sunday, 14 August 2011, 16:44 GMT
Last edited by Nils Wallménius (nls) - Thursday, 18 August 2011, 16:34 GMT
Task Type Patches
Category Build environment
Status Closed
Assigned To No-one
Operating System All players
Severity Low
Priority Normal
Reported Version Release 3.9
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

This patch centralizes the selection of codec compilation flags to codec.make to avoid having to duplicate the per cpu selection logic and the build rule in the codec lib make files and make tweaking easier.

The two special cases, libamd and libspeex were left alone.

I plan to introduce a var for arm generation so that appropriate flags can be selected per generation as benchmarking results have shown that different arm arches might have different optimal flags.
This task depends upon

Closed by  Nils Wallménius (nls)
Thursday, 18 August 2011, 16:34 GMT
Reason for closing:  Accepted
Additional comments about closing:  committed
Comment by MichaelGiacomelli (saratoga) - Sunday, 14 August 2011, 20:43 GMT
Stupid question, but is it ok to do this:

$(A52LIB) : CODECFLAGS += -O1

...

$(A52LIB) : CODECFLAGS += -O2

I guess the last optimization flag is the one that sticks?
Comment by Nils Wallménius (nls) - Tuesday, 16 August 2011, 14:31 GMT
Yes that is correct (CODECFLAGS already includes CFLAGS which contains the core -O switch too).

edit: from the gcc manual "If you use multiple -O options, with or without level numbers, the last such option is the one that is effective."

Loading...