crosstool-ng/scripts/build
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
..
arch arch/all: Add common function to return multilib target 2016-06-09 17:12:49 -07:00
binutils elf2flt: Use openadk version of elf2flt 2016-01-13 05:58:28 -08:00
cc gcc: Add --with-multilib-list option 2016-06-09 17:12:49 -07:00
companion_libs libelf: Cygwin fix for UNC paths 2016-01-03 15:53:09 +00:00
companion_tools consistency: Use exported variables of required tools 2015-11-17 02:48:09 -08:00
debug Work-around another quirk in GDB configure. 2016-04-01 18:15:39 -07:00
kernel linux: allow arm* to build headers for no-mmu 2016-01-13 06:03:27 -08:00
libc glibc: do not add bogus options 2016-06-09 17:12:49 -07:00
test_suite consistency: Use exported variables of required tools 2015-11-17 02:48:09 -08:00
cc.sh Whitespace: We don't use tabs in shell or kconfig files 2015-12-08 10:55:17 -08:00
companion_libs.sh Build companion libs for target. 2015-11-13 10:24:22 -08:00
companion_tools.sh companion_tools/autoconf: add autoconf tool 2010-01-12 21:09:30 +01:00
debug.sh Simplify the Tools and Debug facilities menu entries: 2008-10-10 14:30:44 +00:00
internals.sh consistency: Use exported variables of required tools 2015-11-17 02:48:09 -08:00
test_suite.sh test-suite: Added new test suite feature (experimental) 2010-05-19 17:53:04 +02:00