Merge pull request #587 from stilor/select-uclibceavi-suffix

Allow one to select uclibceabi/uclibcgnueabi suffix
This commit is contained in:
Alexey Neyman 2017-02-10 23:55:47 -08:00 committed by GitHub
commit 57e1e7e742
2 changed files with 14 additions and 1 deletions

View File

@ -95,3 +95,16 @@ config LIBC_UCLIBC_RPC
prompt "Add support for RPC"
help
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:
case "${CT_LIBC},${CT_ARCH_ARM_EABI}" in
*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;;
*,y) CT_TARGET_SYS=eabi;;
esac