X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fopenwrt.git;a=blobdiff_plain;f=toolchain%2FConfig.in;h=cbac108cd0c65202157bcbaf8cebeab43603e13a;hp=1c0998304ab6b0a7e775c4e96287e00af006d205;hb=463b80c3d158c34724d2789321c86c4ae7d4253a;hpb=f9f929613d302d872f6497639395e195bf14898e diff --git a/toolchain/Config.in b/toolchain/Config.in index 1c0998304a..cbac108cd0 100644 --- a/toolchain/Config.in +++ b/toolchain/Config.in @@ -50,6 +50,17 @@ menuconfig EXTERNAL_TOOLCHAIN default "/opt/cross/powerpc-unknown-linux-gnu" if powerpc default "/opt/cross/x86_64-unknown-linux-gnu" if x86_64 + config TOOLCHAIN_LIBC + string + prompt "Toolchain libc" if DEVEL + depends EXTERNAL_TOOLCHAIN && !NATIVE_TOOLCHAIN + default "uclibc" + help + Specify the libc type used by the external toolchain. The given value us passed as -m + flag to all gcc and g++ invocations. This is mainly intended for multilib toolchains + which support glibc and uclibc at the same time. If no value is specified, no -m flag + is passed. + config TOOLCHAIN_BIN_PATH string prompt "Toolchain program path" if DEVEL @@ -119,6 +130,25 @@ menuconfig EXTRA_TARGET_ARCH both powerpc and powerpc64 binaries, you'll need to specify -m64 here. + + choice + prompt "MIPS64 user-land ABI" if TOOLCHAINOPTS && (mips64 || mips64el) + default MIPS64_ABI_N64 + help + MIPS64 supports 3 different user-land ABIs: o32 (legacy), + n32 and n64. + + config MIPS64_ABI_N64 + bool "n64" + + config MIPS64_ABI_N32 + bool "n32" + + config MIPS64_ABI_O32 + bool "o32" + + endchoice + comment "Binary tools" depends TOOLCHAINOPTS @@ -145,10 +175,15 @@ choice config USE_UCLIBC bool "Use uClibc" + config USE_MUSL + bool "Use musl" + depends !(mips64 || mips64el) + endchoice source "toolchain/eglibc/Config.in" source "toolchain/uClibc/Config.in" +source "toolchain/musl/Config.in" comment "Debuggers" depends TOOLCHAINOPTS @@ -181,20 +216,33 @@ source "toolchain/gcc/Config.version" source "toolchain/eglibc/Config.version" source "toolchain/uClibc/Config.version" +source "toolchain/musl/Config.version" config LIBC string default "eglibc" if USE_EGLIBC default "uClibc" if USE_UCLIBC + default "musl" if USE_MUSL config LIBC_VERSION string default EGLIBC_VERSION if USE_EGLIBC default UCLIBC_VERSION if USE_UCLIBC + default MUSL_VERSION if USE_MUSL config TARGET_SUFFIX string - default "gnueabi" if (USE_EGLIBC) && (arm || armeb) - default "gnu" if (USE_EGLIBC) && !(arm || armeb) + default "gnueabi" if USE_EGLIBC && (arm || armeb) + default "gnu" if USE_EGLIBC && !(arm || armeb) default "uclibcgnueabi" if USE_UCLIBC && (arm || armeb) default "uclibc" if USE_UCLIBC && !(arm || armeb) + default "muslgnueabi" if USE_MUSL && (arm || armeb) + default "musl" if USE_MUSL && !(arm || armeb) + +config MIPS64_ABI + depends mips64 || mips64el + string + default "64" if MIPS64_ABI_N64 + default "n32" if MIPS64_ABI_N32 + default "32" if MIPS64_ABI_O32 + default "64"