[Buildroot] [PATCH 05/23] uclibc: add avr32 special version

Hans-Christian Egtvedt hans-christian.egtvedt at atmel.com
Tue Dec 15 08:37:08 UTC 2009


On Tue, 15 Dec 2009 09:24:18 +0100
Thomas Petazzoni <thomas.petazzoni at free-electrons.com> wrote:

> Hello,
> 
> Le Tue, 15 Dec 2009 08:18:09 +0100,
> Hans-Christian Egtvedt <hans-christian.egtvedt at atmel.com> a écrit :
> 
> > Huh? That version does not exist... Please just use the upstream
> > release.
> 
> This was the version used by Buildroot until this external source
> toolchain removal work. It used to download
> ftp://www.at91.com/pub/buildroot/uClibc-0.9.30-avr32-2.1.5.tar.bz2,
> which is still the uClibc version being used.
> 
> I didn't check how many differences they were between this version and
> the upstream one. I just replicated the existing behaviour. If you tell
> me that there aren't any differences between the upstream and the avr32
> special versions, then we can just get rid of the avr32 special version.
>

Yes, please get rid of this special version, I have no clue what it
actually contains. The upstream release(s) contains a tested uClibc for
AVR32, which works fine except for the prctl issue mentioned later.

> > This patch 'uClibc-0.9.30-avr32-2.1.5-unifdef-getline.patch' does not
> > sound AVR32 specific to me.
> 
> Not it isn't. But it was the patch available in the
> toolchain/uClibc/ext_source/Atmel/avr32/0.9.30-avr32-2.1.5 directory
> before my rework. Therefore I just kept it as it was.
>

As I was told by Peter, this patch is needed to build on never machines
due to the getline issue.

> As you can see I didn't modify the versions of the components or the
> patches being applied to them. I only modified how this was integrated
> into Buildroot. As I don't have any AVR32 hardware to make tests I
> tried to be conservative.
>

Yes, probably wise.

> > You only need one uClibc patch from an AVR32 point of view, the
> > "fix-varargs-in-prctl-syscall.patch"
> 
> Do you have an up-to-date version of this patch ?
> 
> The version I found was NAKed by uClibc developers in December 2008
> (http://lists.uclibc.org/pipermail/uclibc/2008-December/041592.html),
> but later on, it seems they agreed but requested some change
> (http://lists.busybox.net/pipermail/uclibc/2009-July/042812.html). Or
> maybe the change requested only applies to uClibc git and not to uClibc
> 0.9.30 ?
> 
> Could you give a more precise status of this patch ?
>

I'm currently out of time to mold this patch into something useful.
FWIW it is on my todo list.

IIRC it should be possible to add an arch only patch to Buildroot?
Unsure if this applies to uCLibc.

> > >  * Add the LINKRELAX=y configuration option to the uClibc .config
> > > file in uclibc.mk
> > 
> > Good, does the generic uClibc configuration enable optimized string
> > functions?
> 
> UCLIBC_HAS_STRING_ARCH_OPT is not set in the generic uClibc
> configuration file, if it's the option you're refering to. But I think
> we should change this to default to y, since the uClibc help text says:
>

Agreed.

> config UCLIBC_HAS_STRING_ARCH_OPT
>         bool "Use arch-specific assembly string functions (where available)"
>         default y
>         help
>           Answer Y to use any archtecture-specific assembly language string
>           functions available for this target plaform.
> 
>           Note that assembly implementations are not available for all string
>           functions, so some generic (written in C) string functions may
>           still be used.
>

Exactly.

>           These are small and fast, the only reason _not_ to say Y here is
>           for debugging purposes.
>

I would say if you are debugging uClibc, you're probably compiling it
on the side anyway. So I would suggest just ignoring all together
having the possibility to switch this on and off.

-- 
Best regards,
Hans-Christian Egtvedt


More information about the buildroot mailing list