summaryrefslogtreecommitdiff
path: root/toolchain/toolchain-crosstool-ng/Config.in
blob: 1a1041630b2162fc1b66d695a6e6ce00129d70e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
# Selection options for crosstool-NG

if BR2_TOOLCHAIN_CTNG

choice
 	prompt "Crosstool-NG C library"

config BR2_TOOLCHAIN_CTNG_uClibc
	bool "uClibc"

# Although eglibc can be configured to opt-out some features,
# let's not deal with that for the time being, it's complex...
config BR2_TOOLCHAIN_CTNG_eglibc
	bool "eglibc"
	select BR2_LARGEFILE
	select BR2_INET_IPV6
	select BR2_INET_RPC
	select BR2_ENABLE_LOCALE
	select BR2_USE_WCHAR
	select BR2_PROGRAM_INVOCATION

config BR2_TOOLCHAIN_CTNG_glibc
	bool "glibc"
	select BR2_LARGEFILE
	select BR2_INET_IPV6
	select BR2_INET_RPC
	select BR2_ENABLE_LOCALE
	select BR2_USE_WCHAR
	select BR2_PROGRAM_INVOCATION

endchoice # C library

config BR2_TOOLCHAIN_CTNG_LIBC
	string
	default "uClibc"	if BR2_TOOLCHAIN_CTNG_uClibc
	default "eglibc"	if BR2_TOOLCHAIN_CTNG_eglibc
	default "glibc"		if BR2_TOOLCHAIN_CTNG_glibc

config BR2_TOOLCHAIN_CTNG_CONFIG
	string "crosstool-NG configuration file to use"
	default "toolchain/toolchain-crosstool-ng/crosstool-ng.config"
	help
	  Enter here the crosstool-NG's .config file to use.
	  If unsure, use the default.
	  To finetune your toolchain, you can also call:
	  make ctng-menuconfig

if BR2_TOOLCHAIN_CTNG_uClibc

comment "Toolchain Options"

config BR2_TOOLCHAIN_CTNG_uClibc_LARGEFILE
	bool "Enable large file (files > 2 GB) support"
	select BR2_LARGEFILE
	help
	  Enable this option if you want your toolchain to support
	  files bigger than 2 GB.

config BR2_TOOLCHAIN_CTNG_uClibc_INET_IPV6
	bool "Enable IPv6 support"
	select BR2_INET_IPV6
	help
	  Enable this option if you want your toolchain to support
	  IPv6.

config BR2_TOOLCHAIN_CTNG_uClibc_INET_RPC
	bool "Enable RPC support"
	select BR2_INET_RPC
	help
	  Enable this option if you want your toolchain to support
	  RPC (needed for NFS, for example).

config BR2_TOOLCHAIN_CTNG_uClibc_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_CTNG_uClibc_LOCALE
	bool "Enable toolchain locale/i18n support"
	select BR2_TOOLCHAIN_CTNG_uClibc_WCHAR
	select BR2_ENABLE_LOCALE
	help
	  Enable this option if you want your toolchain to support
	  localization and internationalization.

config BR2_TOOLCHAIN_CTNG_uClibc_PROGRAM_INVOCATION
	bool "Enable 'program invocation name' support"
	select BR2_PROGRAM_INVOCATION
	help
	  Enable this option if you want your toolchain to support the
	  GNU-specific program_invocation_name and
	  program_invocation_short_name strings.  Some GNU packages
	  (like tar and coreutils) utilize these for extra useful
	  output, but in general are not required.

endif # BR2_TOOLCHAIN_CTNG_uClibc

config BR2_TOOLCHAIN_CTNG_CXX
	bool "Enable C++ support"
	select BR2_INSTALL_LIBSTDCPP
	help
	  Enable this option if you want your toolchain to support the
	  C++ language and you want C++ libraries to be installed on
	  your target system.

choice
	prompt "Thread library implementation"
	default BR2_TOOLCHAIN_CTNG_THREADS_PTHREADS_OLD \
		if BR2_TOOLCHAIN_CTNG_uClibc
	default BR2_TOOLCHAIN_CTNG_THREADS_NPTL		\
		if BR2_TOOLCHAIN_CTNG_eglibc ||		\
		   BR2_TOOLCHAIN_CTNG_glibc
	help
	  Enable thread support and select thread implementation. With
	  glibc, thread support is mandatory but several
	  implementations are available. With uClibc, thread support
	  is optional, and when enabled, several implementations are
	  available. However, not all thread variants work with all
	  versions of uClibc for all architectures, the "linuxthreads
	  (stable/old)" may be a working fallback.

	config BR2_TOOLCHAIN_CTNG_THREADS_NONE
		bool "none"
		depends on BR2_TOOLCHAIN_CTNG_uClibc

	config BR2_TOOLCHAIN_CTNG_THREADS_PTHREADS
		bool "linuxthreads"
		select BR2_TOOLCHAIN_HAS_THREADS

	config BR2_TOOLCHAIN_CTNG_THREADS_PTHREADS_OLD
		bool "linuxthreads (stable/old)"
		select BR2_TOOLCHAIN_HAS_THREADS
		depends on BR2_TOOLCHAIN_CTNG_uClibc

	config BR2_TOOLCHAIN_CTNG_THREADS_NPTL
		bool "Native POSIX Threading (NPTL)"
		select BR2_TOOLCHAIN_HAS_THREADS
		depends on BR2_TOOLCHAIN_CTNG_eglibc || \
			   BR2_TOOLCHAIN_CTNG_glibc
endchoice

endif # BR2_TOOLCHAIN_CTNG