Alexey Neyman 34ecc718d9 arch/all: Add common function to return multilib target
This code was abstracted out of Cody P Schafer's multilib patch.
It doesn't seem right having architecture dependent code in a
specific libc implementation script. So this patch breaks it out into
scripts/build/arch/<arch>.sh in a function:

  multilib_target_to_build="$(CT_DoArchMultilibTarget 'multi_flags'
'target-in')"

Note that this function gets called on each multilib variant with
different sets of compiler flags supplied in 'multi_flags'. The caller
will first filter the flags so that there is no conflicting flags (e.g.,
no '-m32 -m64') supplied.

Changed by Alexey Neyman:
- make option analysis check specific option rather than match global
  options string as a whole. Moreover, old code did not handle multiple
  options in the same multilib, e.g. '-m64 -mlittle'.
- fixed substitutions in powerpc.sh (*le variants did not match the
  pattern in the shell parameter expansion)
- make s390.sh actually apply the flags it gathered from the options.
- straighten the spaghetti in x86.sh by setting two flags, arch & abi.
  Also, do not depend on "gnu" being the last part - we can have
  '*-uclibcx32', for example.

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
Signed-off-by: Ray Donnelly <ray.donnelly@gmail.com>
Signed-off-by: Alexey Neyman <stilor@att.net>
2016-06-09 17:12:49 -07:00
2015-12-18 15:15:06 +03:00
2015-11-19 14:30:20 -08:00
2016-02-15 01:17:24 -08:00
2015-11-13 10:24:22 -08:00

Crosstool-NG Build Status

Crosstool-NG follows the autoconf dance. So, to get you kick-started, just run:

./configure --help

If you are using a development snapshot, you'll have to create the configure script, first. Just run:

./bootstrap

You will find the documentation in the directory docs. Here is a quick overview of what you'll find there:

  1. Table of content
  2. Introduction
  3. Installing crosstool-NG
  4. Configuring a toolchain
  5. Building the toolchain
  6. Using the toolchain
  7. Toolchain types
  8. Contributing
  9. Internals
  1. Credits
  2. Known issues
  3. Misc. tutorials

You can also point your browser at: http://crosstool-ng.org

Aloha!

irc: irc.freenode.net #crosstool-ng

mailing list

Description
A versatile (cross-)toolchain generator.
Readme 20 MiB
Languages
Shell 50.9%
C 27.4%
M4 16.8%
Makefile 2%
Yacc 1.4%
Other 1.5%