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

Yann E. MORIN yann.morin.1998 at anciens.enib.fr
Tue Apr 7 22:49:05 UTC 2009


Hello All!

(patch attached, now)

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

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

The patch also removes setting the CFLAGS/LDFLAGS for endianness for the
same reason, although the menuconfig entries are still there.

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.

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 CLIBC_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: 4318 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/uclibc/attachments/20090408/5418232b/attachment.bin>


More information about the uClibc mailing list