binutils/binutils: Add CUSTOM version and CUSTOM_LOCATION config options and GetCustom
CUSTOM_LOCATION config options only presented in menuconfig if component
CUSTOM version selected.
Signed-off-by: "David Holsgrove" <david.holsgrove@xilinx.com>
[yann.morin.1998@free.fr: fix indentation, don't patch custom dir location]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Message-Id: <7a604b5df9c84a1e20c3.1349931195@localhost.localdomain>
PatchWork-Id: 190788
1 # Compute ARM-specific values
3 CT_DoArchTupleValues() {
4 # The architecture part of the tuple:
5 CT_TARGET_ARCH="${CT_ARCH}${target_endian_eb}"
7 # The system part of the tuple:
8 case "${CT_LIBC},${CT_ARCH_ARM_EABI}" in
9 *glibc,y) CT_TARGET_SYS=gnueabi;;
10 uClibc,y) CT_TARGET_SYS=uclibcgnueabi;;
11 *,y) CT_TARGET_SYS=eabi;;
14 # Set the default instruction set mode
15 case "${CT_ARCH_ARM_MODE}" in
18 CT_ARCH_CC_CORE_EXTRA_CONFIG="--with-mode=thumb"
19 CT_ARCH_CC_EXTRA_CONFIG="--with-mode=thumb"
20 # CT_ARCH_TARGET_CFLAGS="-mthumb"
24 if [ "${CT_ARCH_ARM_INTERWORKING}" = "y" ]; then
25 CT_ARCH_TARGET_CFLAGS+=" -mthumb-interwork"