2013-06-30 21:29:12 +02:00
|
|
|
if BR2_TOOLCHAIN_BUILDROOT_UCLIBC
|
|
|
|
|
2014-07-25 22:06:27 +02:00
|
|
|
# For legal-info
|
|
|
|
config BR2_PACKAGE_UCLIBC
|
|
|
|
bool
|
|
|
|
default y
|
|
|
|
|
2013-06-30 21:29:05 +02:00
|
|
|
comment "uClibc Options"
|
|
|
|
|
2015-03-11 23:01:24 +01:00
|
|
|
config BR2_UCLIBC_VERSION_SUPPORTS_LINUXTHREADS
|
|
|
|
bool
|
|
|
|
|
|
|
|
config BR2_UCLIBC_VERSION_SUPPORTS_LINUXTHREADS_OLD
|
|
|
|
bool
|
|
|
|
|
|
|
|
config BR2_UCLIBC_VERSION_SUPPORTS_NPTL
|
|
|
|
bool
|
|
|
|
|
2013-06-30 21:29:05 +02:00
|
|
|
choice
|
|
|
|
prompt "uClibc C library Version"
|
|
|
|
default BR2_UCLIBC_VERSION_0_9_33
|
|
|
|
help
|
|
|
|
Select the version of uClibc you wish to use.
|
|
|
|
|
|
|
|
config BR2_UCLIBC_VERSION_0_9_33
|
|
|
|
bool "uClibc 0.9.33.x"
|
2015-03-17 23:44:18 +01:00
|
|
|
select BR2_UCLIBC_VERSION_SUPPORTS_LINUXTHREADS
|
2015-03-11 23:01:24 +01:00
|
|
|
select BR2_UCLIBC_VERSION_SUPPORTS_LINUXTHREADS_OLD
|
2015-03-17 23:44:18 +01:00
|
|
|
select BR2_UCLIBC_VERSION_SUPPORTS_NPTL if !BR2_x86_i386
|
2015-02-14 10:23:13 +01:00
|
|
|
depends on !(BR2_arc || BR2_xtensa)
|
2013-06-30 21:29:05 +02:00
|
|
|
|
2015-02-14 22:01:05 +01:00
|
|
|
config BR2_UCLIBC_VERSION_ARC_GIT
|
|
|
|
bool "uClibc Git ARC"
|
2015-03-11 23:01:24 +01:00
|
|
|
select BR2_UCLIBC_VERSION_SUPPORTS_LINUXTHREADS
|
|
|
|
select BR2_UCLIBC_VERSION_SUPPORTS_LINUXTHREADS_OLD
|
2015-02-14 22:01:05 +01:00
|
|
|
depends on BR2_arc
|
|
|
|
|
2015-03-11 23:01:26 +01:00
|
|
|
config BR2_UCLIBC_VERSION_NG
|
|
|
|
bool "uClibc-ng"
|
2015-03-17 23:44:18 +01:00
|
|
|
select BR2_UCLIBC_VERSION_SUPPORTS_LINUXTHREADS if BR2_m68k
|
2015-03-11 23:01:24 +01:00
|
|
|
select BR2_UCLIBC_VERSION_SUPPORTS_LINUXTHREADS_OLD \
|
2015-03-17 23:44:18 +01:00
|
|
|
if BR2_m68k || BR2_arm || BR2_armeb
|
2015-03-11 23:01:24 +01:00
|
|
|
select BR2_UCLIBC_VERSION_SUPPORTS_NPTL \
|
2015-03-17 23:44:18 +01:00
|
|
|
if !BR2_arc && !BR2_m68k && !BR2_x86_i386
|
2015-02-14 22:01:06 +01:00
|
|
|
|
2013-12-29 12:26:26 +01:00
|
|
|
config BR2_UCLIBC_VERSION_XTENSA_GIT
|
|
|
|
bool "uClibc Git Xtensa"
|
|
|
|
depends on BR2_xtensa
|
2015-03-18 01:19:30 +01:00
|
|
|
select BR2_UCLIBC_VERSION_SUPPORTS_LINUXTHREADS_OLD
|
2013-12-29 12:26:26 +01:00
|
|
|
|
2013-06-30 21:29:05 +02:00
|
|
|
config BR2_UCLIBC_VERSION_SNAPSHOT
|
|
|
|
bool "daily snapshot"
|
2015-03-17 23:44:18 +01:00
|
|
|
select BR2_UCLIBC_VERSION_SUPPORTS_LINUXTHREADS if !BR2_xtensa
|
2015-03-18 01:19:30 +01:00
|
|
|
select BR2_UCLIBC_VERSION_SUPPORTS_LINUXTHREADS_OLD
|
2015-03-11 23:01:24 +01:00
|
|
|
select BR2_UCLIBC_VERSION_SUPPORTS_NPTL \
|
2015-03-17 23:44:18 +01:00
|
|
|
if !BR2_x86_i386 && !BR2_xtensa
|
2013-12-05 18:20:50 +01:00
|
|
|
depends on !(BR2_arc)
|
2013-06-30 21:29:05 +02:00
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
config BR2_USE_UCLIBC_SNAPSHOT
|
|
|
|
string "Date (yyyymmdd) of snapshot or 'snapshot' for latest"
|
|
|
|
default "snapshot"
|
|
|
|
depends on BR2_UCLIBC_VERSION_SNAPSHOT
|
|
|
|
help
|
2014-02-06 15:06:22 +01:00
|
|
|
Use latest snapshot or one from a specific date?
|
2013-06-30 21:29:05 +02:00
|
|
|
|
|
|
|
config BR2_UCLIBC_VERSION_STRING
|
|
|
|
string
|
2015-03-11 23:01:28 +01:00
|
|
|
default "0.9.33.2" if BR2_UCLIBC_VERSION_0_9_33
|
2015-02-14 22:01:05 +01:00
|
|
|
default "arc-2014.12" if BR2_UCLIBC_VERSION_ARC_GIT
|
2015-04-19 16:03:56 +02:00
|
|
|
default "1.0.2" if BR2_UCLIBC_VERSION_NG
|
2014-01-13 07:26:12 +01:00
|
|
|
default "7bf35c8b7d4a1f97174eb49f47f33946b282114c" if BR2_UCLIBC_VERSION_XTENSA_GIT
|
2013-09-02 22:07:53 +02:00
|
|
|
default BR2_USE_UCLIBC_SNAPSHOT if BR2_UCLIBC_VERSION_SNAPSHOT
|
2013-06-30 21:29:05 +02:00
|
|
|
|
|
|
|
config BR2_UCLIBC_CONFIG
|
|
|
|
string "uClibc configuration file to use?"
|
|
|
|
default "package/uclibc/uClibc-0.9.33.config" if BR2_UCLIBC_VERSION_0_9_33
|
2015-03-11 23:01:26 +01:00
|
|
|
default "package/uclibc/uClibc-ng.config" if BR2_UCLIBC_VERSION_NG
|
2015-02-14 22:01:05 +01:00
|
|
|
default "package/uclibc/uClibc-snapshot.config" if BR2_UCLIBC_VERSION_ARC_GIT
|
2013-06-30 21:29:05 +02:00
|
|
|
default "package/uclibc/uClibc-snapshot.config" if BR2_UCLIBC_VERSION_SNAPSHOT
|
2013-12-29 12:26:26 +01:00
|
|
|
default "package/uclibc/uClibc-snapshot.config" if BR2_UCLIBC_VERSION_XTENSA_GIT
|
2013-06-30 21:29:05 +02:00
|
|
|
help
|
|
|
|
Some people may wish to use their own modified uClibc configuration
|
|
|
|
file and will specify their config file location with this option.
|
|
|
|
See also docs/README in this package.
|
|
|
|
If unsure, use the default.
|
|
|
|
|
2015-04-28 16:34:34 +02:00
|
|
|
config BR2_UCLIBC_CONFIG_FRAGMENT_FILES
|
|
|
|
string "Additional uClibc configuration fragment files"
|
|
|
|
help
|
|
|
|
A space-separated list of configuration fragment files,
|
|
|
|
that will be merged to the main uClibc configuration file.
|
|
|
|
|
2013-06-30 21:29:10 +02:00
|
|
|
config BR2_TOOLCHAIN_BUILDROOT_INET_RPC
|
|
|
|
bool "Enable RPC support"
|
|
|
|
select BR2_TOOLCHAIN_HAS_NATIVE_RPC
|
|
|
|
help
|
|
|
|
Enable this option if you want your toolchain to support
|
|
|
|
RPC (needed for NFS, for example).
|
|
|
|
|
|
|
|
config BR2_TOOLCHAIN_BUILDROOT_WCHAR
|
|
|
|
bool "Enable WCHAR support"
|
|
|
|
select BR2_USE_WCHAR
|
|
|
|
help
|
|
|
|
Enable this option if you want your toolchain to support
|
|
|
|
wide characters (i.e characters longer than 8 bits, needed
|
|
|
|
for locale support).
|
|
|
|
|
|
|
|
config BR2_TOOLCHAIN_BUILDROOT_LOCALE
|
|
|
|
bool "Enable toolchain locale/i18n support"
|
|
|
|
select BR2_TOOLCHAIN_BUILDROOT_WCHAR
|
|
|
|
select BR2_ENABLE_LOCALE
|
|
|
|
help
|
|
|
|
Enable this option if you want your toolchain to support
|
|
|
|
localization and internationalization.
|
|
|
|
|
|
|
|
choice
|
|
|
|
prompt "Thread library implementation"
|
2015-03-11 23:01:24 +01:00
|
|
|
default BR2_PTHREADS_NATIVE if BR2_UCLIBC_VERSION_SUPPORTS_NPTL
|
|
|
|
default BR2_PTHREADS_OLD if BR2_UCLIBC_VERSION_SUPPORTS_LINUXTHREADS_OLD
|
|
|
|
default BR2_PTHREADS if BR2_UCLIBC_VERSION_SUPPORTS_LINUXTHREADS
|
2013-06-30 21:29:10 +02:00
|
|
|
help
|
|
|
|
Use this option to select the thread library implementation
|
2015-03-11 23:01:25 +01:00
|
|
|
that should be used in your toolchain.
|
2013-06-30 21:29:10 +02:00
|
|
|
|
|
|
|
config BR2_PTHREADS_NONE
|
|
|
|
bool "none"
|
|
|
|
|
|
|
|
config BR2_PTHREADS
|
|
|
|
bool "linuxthreads"
|
2014-02-06 15:06:22 +01:00
|
|
|
select BR2_TOOLCHAIN_HAS_THREADS
|
2015-03-11 23:01:24 +01:00
|
|
|
depends on BR2_UCLIBC_VERSION_SUPPORTS_LINUXTHREADS
|
2013-06-30 21:29:10 +02:00
|
|
|
|
|
|
|
config BR2_PTHREADS_OLD
|
|
|
|
bool "linuxthreads (stable/old)"
|
2014-02-06 15:06:22 +01:00
|
|
|
select BR2_TOOLCHAIN_HAS_THREADS
|
2015-03-11 23:01:24 +01:00
|
|
|
depends on BR2_UCLIBC_VERSION_SUPPORTS_LINUXTHREADS_OLD
|
2013-06-30 21:29:10 +02:00
|
|
|
|
|
|
|
config BR2_PTHREADS_NATIVE
|
|
|
|
bool "Native POSIX Threading (NPTL)"
|
2013-07-14 00:27:25 +02:00
|
|
|
select BR2_TOOLCHAIN_HAS_THREADS
|
2014-02-18 22:08:59 +01:00
|
|
|
select BR2_TOOLCHAIN_HAS_THREADS_NPTL
|
2015-03-11 23:01:24 +01:00
|
|
|
depends on BR2_UCLIBC_VERSION_SUPPORTS_NPTL
|
2013-06-30 21:29:10 +02:00
|
|
|
endchoice
|
|
|
|
|
|
|
|
config BR2_PTHREAD_DEBUG
|
|
|
|
bool "Thread library debugging"
|
|
|
|
depends on BR2_PTHREADS || BR2_PTHREADS_OLD || BR2_PTHREADS_NATIVE
|
|
|
|
select BR2_TOOLCHAIN_HAS_THREADS_DEBUG
|
|
|
|
help
|
|
|
|
Build the thread library with debugging enabled.
|
|
|
|
|
2013-09-02 18:06:36 +02:00
|
|
|
config BR2_TOOLCHAIN_BUILDROOT_USE_SSP
|
|
|
|
bool "Enable stack protection support"
|
|
|
|
select BR2_TOOLCHAIN_HAS_SSP
|
|
|
|
help
|
|
|
|
Enable stack smashing protection support using GCCs
|
|
|
|
-fstack-protector-all option in uClibc.
|
|
|
|
|
|
|
|
See http://www.linuxfromscratch.org/hints/downloads/files/ssp.txt
|
|
|
|
for details.
|
|
|
|
|
2013-07-20 14:52:09 +02:00
|
|
|
config BR2_UCLIBC_INSTALL_UTILS
|
|
|
|
bool "Compile and install uClibc utilities"
|
|
|
|
default y
|
|
|
|
help
|
|
|
|
Enabling this option will compile and install the getconf,
|
|
|
|
ldconfig and ldd uClibc utilities for the target.
|
|
|
|
|
|
|
|
You can save ~32 KiB in target space by disabling them since
|
|
|
|
they're normally not needed.
|
|
|
|
|
2013-06-30 21:29:05 +02:00
|
|
|
config BR2_UCLIBC_INSTALL_TEST_SUITE
|
|
|
|
bool "Compile and install uClibc tests"
|
|
|
|
select BR2_PACKAGE_MAKE
|
2014-07-19 14:45:55 +02:00
|
|
|
depends on BR2_USE_MMU # make
|
2013-06-30 21:29:05 +02:00
|
|
|
help
|
|
|
|
Enabling this option will compile and install the uClibc test suite.
|
|
|
|
This is useful if you want to check if the uClibc library is working
|
|
|
|
for your architecture and/or help developing uClibc.
|
|
|
|
|
|
|
|
The test suite will be installed into /root/uClibc directory. To run
|
|
|
|
the test suite enter the /root/uClibc/test directory and type
|
|
|
|
"make UCLIBC_ONLY=1 CC=/bin/true check".
|
|
|
|
|
|
|
|
See the /root/uClibc/test/README for additional information.
|
|
|
|
|
|
|
|
This is not needed at all for normal builds, so you can safely say no
|
|
|
|
if you do not plan to dig into your C library.
|
|
|
|
|
|
|
|
# Mapping from the Buildroot architecture configuration options to the
|
|
|
|
# uClibc architecture names.
|
|
|
|
config BR2_UCLIBC_TARGET_ARCH
|
|
|
|
string
|
2015-03-11 23:01:28 +01:00
|
|
|
default "arc" if BR2_arcle || BR2_arceb
|
|
|
|
default "arm" if BR2_arm || BR2_armeb
|
|
|
|
default "m68k" if BR2_m68k
|
|
|
|
default "mips" if BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el
|
|
|
|
default "powerpc" if BR2_powerpc
|
|
|
|
default "sh" if BR2_sh
|
|
|
|
default "sparc" if BR2_sparc
|
|
|
|
default "xtensa" if BR2_xtensa
|
|
|
|
default "i386" if BR2_i386
|
|
|
|
default "x86_64" if BR2_x86_64
|
2013-06-30 21:29:05 +02:00
|
|
|
|
2014-10-30 14:57:28 +01:00
|
|
|
config BR2_UCLIBC_ARC_TYPE
|
|
|
|
string
|
|
|
|
depends on BR2_UCLIBC_TARGET_ARCH = "arc"
|
|
|
|
default "ARC_CPU_700" if BR2_arc750d
|
|
|
|
default "ARC_CPU_700" if BR2_arc770d
|
2014-10-30 14:57:29 +01:00
|
|
|
default "ARC_CPU_HS" if BR2_archs38
|
2014-10-30 14:57:28 +01:00
|
|
|
|
2013-06-30 21:29:05 +02:00
|
|
|
config BR2_UCLIBC_ARM_BX
|
|
|
|
bool
|
|
|
|
depends on BR2_UCLIBC_TARGET_ARCH = "arm"
|
2013-07-19 15:06:33 +02:00
|
|
|
default y if (BR2_ARM_CPU_HAS_THUMB || BR2_ARM_CPU_HAS_THUMB2)
|
2013-06-30 21:29:05 +02:00
|
|
|
|
|
|
|
config BR2_UCLIBC_MIPS_ABI
|
|
|
|
string
|
|
|
|
depends on BR2_UCLIBC_TARGET_ARCH = "mips"
|
2015-03-11 23:01:28 +01:00
|
|
|
default "O32" if BR2_MIPS_OABI32
|
|
|
|
default "N32" if BR2_MIPS_NABI32
|
|
|
|
default "N64" if BR2_MIPS_NABI64
|
2013-06-30 21:29:05 +02:00
|
|
|
|
|
|
|
config BR2_UCLIBC_MIPS_ISA
|
|
|
|
string
|
|
|
|
depends on BR2_UCLIBC_TARGET_ARCH = "mips"
|
2015-03-11 23:01:28 +01:00
|
|
|
default "MIPS32" if BR2_mips_32
|
|
|
|
default "MIPS32R2" if BR2_mips_32r2
|
|
|
|
default "MIPS64" if BR2_mips_64
|
2013-06-30 21:29:05 +02:00
|
|
|
|
|
|
|
config BR2_UCLIBC_SH_TYPE
|
|
|
|
string
|
|
|
|
depends on BR2_UCLIBC_TARGET_ARCH = "sh"
|
2015-03-11 23:01:28 +01:00
|
|
|
default "SH2A" if BR2_sh2a
|
|
|
|
default "SH4" if BR2_sh4 || BR2_sh4eb
|
2013-06-30 21:29:05 +02:00
|
|
|
|
|
|
|
config BR2_UCLIBC_SPARC_TYPE
|
|
|
|
string
|
|
|
|
depends on BR2_UCLIBC_TARGET_ARCH = "sparc"
|
2015-03-11 23:01:28 +01:00
|
|
|
default "V7" if BR2_sparc_v7 || BR2_sparc_sparchfleon || BR2_sparc_sparcsfleon
|
|
|
|
default "V8" if BR2_sparc_v8 || BR2_sparc_sparchfleonv8 || BR2_sparc_sparcsfleonv8
|
2013-06-30 21:29:05 +02:00
|
|
|
|
|
|
|
config BR2_UCLIBC_POWERPC_TYPE
|
|
|
|
string
|
|
|
|
depends on BR2_UCLIBC_TARGET_ARCH = "powerpc"
|
2015-03-11 23:01:28 +01:00
|
|
|
default "CLASSIC" if !BR2_powerpc_8540 && !BR2_powerpc_8548
|
|
|
|
default "E500" if BR2_powerpc_8540 || BR2_powerpc_8548
|
2013-06-30 21:29:05 +02:00
|
|
|
|
|
|
|
config BR2_UCLIBC_X86_TYPE
|
|
|
|
string
|
|
|
|
depends on BR2_UCLIBC_TARGET_ARCH = "i386"
|
2015-03-11 23:01:28 +01:00
|
|
|
default "386" if BR2_x86_i386
|
|
|
|
default "486" if BR2_x86_i486
|
|
|
|
default "586" if BR2_x86_i586
|
|
|
|
default "586MMX" if BR2_x86_pentium_mmx
|
|
|
|
default "686" if BR2_x86_i686 || BR2_x86_pentiumpro
|
|
|
|
default "PENTIUMII" if BR2_x86_pentium2
|
|
|
|
default "PENTIUMIII" if BR2_x86_pentium3
|
|
|
|
default "PENTIUM4" if BR2_x86_pentium4 || BR2_x86_pentium_m || \
|
|
|
|
BR2_x86_nocona || BR2_x86_core2 || BR2_x86_corei7
|
2013-06-30 21:29:12 +02:00
|
|
|
|
|
|
|
endif # BR2_TOOLCHAIN_BUILDROOT_UCLIBC
|