[uClibc] Platform-specific optimizations in buildroot?

Manuel Novoa III mjn3 at codepoet.org
Thu Nov 13 05:57:51 UTC 2003


Jeff,

On Wed, Nov 12, 2003 at 06:17:07PM -0800, Jeffrey Baitis wrote:
> Hi there uClibbers:
> 
> I'm trying to do add some platform-specific optimization flags; e.g.
> -mcpu=r5000 -mips4. Naturally, I want uClibc to be compiled with these
> cflags.
> 
> I tried modifying the top-level Makefile so that
> 
> TARGET_OPTIMIZATION=-O2 -mips4
> 
> Those flags affect some peripheral packages like fileutils, but do not
> affect uClibc; e.g. I'll do 'file' on 'ls' in the uClibc filesystem, and
> it'll be compiled MIPS IV, but 'busybox' is compiled MIPS I.
> 
> I'm curious where the accepted spot for these flags is. Of course, I
> could modify make/uclibc.mk to PERLize my flags into uClibc's Rules.mak,
> but that hardly seems right.

Take a look at uClibc/Rules.mak to see how other archs deal with tuning.

As far as other packages, we could probably deal with arch-tuning
using a wrapper script.  That's what I had to do to make sure
-msoft-float was used for all the target apps.

Manuel



More information about the uClibc mailing list