[PATCH] Get rid of the ARM variant choice in the menuconfig, take 2

Yann E. MORIN yann.morin.1998 at anciens.enib.fr
Wed Apr 8 22:03:55 UTC 2009


Hello All!

Description:
------------

As previously suggested, here is a patch that gets rid of the ARM variant
choice in the menuconfig.

Unlike the previous submission, the endianness is still passed down to the
compiler and linker.

This patch is just a proof of concept, to serve as a base of discussion.
Should this proove the correct aproach, then the other architectures could
then also see their variant choice removed.

Build-tested for armel, EABI/OABI.

Rationale:
----------

If the user selects a specific variant, but the gcc that builds uClibc does
not recognise that variant (because that gcc version is too old), then the
uClibc build would break, and the user would complain to us.

Also, as new variants appears, we would have to add them in the choice, and
we'd have to support the burden of testing on a new variant that no maintainer
may have.

Solution:
---------

The idea is that the user is responsible for either:
 - setting the toolchain so that it emits appropriate opcodes for
   the target CPU variant
or
 - setting UCLIBC_EXTRA_CFLAGS to contain some incarnation of -mcpu= -mtune=
   -march= and the likes.

If the build breaks, then it will be time to see what went wrong on that
variant, in close interaction between the user and us.

Signed-off-by: Yann E. MORIN <yann.morin.1998 at anciens.enib.fr>

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +0/33 662376056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| --==< ^_^ >==-- `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
`------------------------------^-------^------------------^--------------------'
-------------- next part --------------
A non-text attachment was scrubbed...
Name: uClibc.trunk-no_ARM_variant_choice.patch
Type: text/x-diff
Size: 4210 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/uclibc/attachments/20090409/a8229518/attachment.bin>


More information about the uClibc mailing list