Allow one to select uclibceabi/uclibcgnueabi suffix

Signed-off-by: Alexey Neyman <stilor@att.net>
This commit is contained in:
Alexey Neyman 2017-02-09 23:48:56 -08:00
parent df555a65db
commit 0468f8daf1
2 changed files with 14 additions and 1 deletions

View File

@ -95,3 +95,16 @@ config LIBC_UCLIBC_RPC
prompt "Add support for RPC" prompt "Add support for RPC"
help help
Enable support for remote procedure calls (RPC) in uClibc. Enable support for remote procedure calls (RPC) in uClibc.
if ARCH_arm
config LIBC_UCLIBC_USE_GNU_SUFFIX
bool
default y
prompt "Use -uclibcgnueabi suffix"
help
Depending on where the resulting toolchain will be used, you may need
to tweak the "system" part of the target tuple. Buildroot prefers
to have arm-*-linux-uclibcgnueabi; OpenEmbedded prefers
arm-*-linux-uclibceabi. Other tools seem to either accept both, or
don't care about the suffix.
endif

View File

@ -16,7 +16,7 @@ CT_DoArchTupleValues() {
# The system part of the tuple: # The system part of the tuple:
case "${CT_LIBC},${CT_ARCH_ARM_EABI}" in case "${CT_LIBC},${CT_ARCH_ARM_EABI}" in
*glibc,y) CT_TARGET_SYS=gnueabi;; *glibc,y) CT_TARGET_SYS=gnueabi;;
uClibc,y) CT_TARGET_SYS=uclibcgnueabi;; uClibc,y) CT_TARGET_SYS=uclibc${CT_LIBC_UCLIBC_USE_GNU_SUFFIX:+gnu}eabi;;
musl,y) CT_TARGET_SYS=musleabi;; musl,y) CT_TARGET_SYS=musleabi;;
*,y) CT_TARGET_SYS=eabi;; *,y) CT_TARGET_SYS=eabi;;
esac esac