summaryrefslogtreecommitdiffstats
path: root/rules/glibc.in
blob: c84105c70c46da4033577ab37509c6812fb08e5a (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
# config for glibc

config GLIBC_HEADERS
	bool
	select KERNEL_HEADERS

config GLIBC_CRT
	bool
	select CROSS_GCC_FIRST

config GLIBC_FIRST
	bool
	select CROSS_GCC_FIRST

menuconfig GLIBC
	bool

	select GLIBC_CRT
	select GLIBC_PORTS		if GLIBC_ADDON_NPTL && ( ARCH_ARM || ARCH_MIPS )
	select GLIBC_LINUXTHREADS	if GLIBC_ADDON_LINUXTHREADS

	select TOOLCHAIN_ENABLE_SYSROOT
	select TOOLCHAIN_DISABLE_MULTILIB

	select CROSS_GCC
	select CROSS_GCC_ENABLE_CXA_ATEXIT
	select CROSS_GCC_DISABLE_SJLJ_EXCEPTIONS
	select CROSS_GCC_DISABLE_LIBSSP
	select CROSS_GCC_ENABLE_SHARED
	select CROSS_GCC_THREADS_POSIX

	prompt "glibc                       "

config GLIBC_VERSION
	depends on GLIBC
	string
	prompt "glibc version"
	default "2.8"
	help
	  Specify the glibc version here.
	  Leave empty for glibc trunk snapshots and enter a timestamp below.

config GLIBC_TIMESTAMP
	depends on GLIBC
	string
	prompt "glibc timestamp"
	default ""
	help
	  For glibc releases just leave this field empty.

	  For glibc snapshots enter a timestap (YYYYMMDD, e.g. 20080811) here,
	  or "latest" or if you want try the latest snapshot.

config GLIBC_SERIES
	depends on GLIBC
	string
	prompt "glibc patch series file"
	default "series"

config GLIBC_ENABLE_KERNEL
	depends on GLIBC
	string
	prompt "mininum kernel version"
	default "2.6.23"

config GLIBC_CONFIG_EXTRA
	depends on GLIBC
	string
	prompt "extra configure options"
	help
	  Add these extra options to glibc's configure script.

config GLIBC_HEADERS_FAKE_CROSS
	depends on GLIBC
	string
	prompt "fake cross args"
	default "-D__ARM_EABI__"	if ARCH_ARM
	default "-DBOOTSTRAP_GCC"	if ARCH_MIPS
	help
	  Add these args to fake a crosscompiler during glibc-header extraction stage.

choice
	prompt "Thread implementation"
	depends on GLIBC
	default GLIBC_ADDON_NPTL

	config GLIBC_ADDON_LINUXTHREADS
		bool
		prompt "linuxthreads"
		help
		  Activate the linuxthreads addon.

	config GLIBC_ADDON_NPTL
		bool
		prompt "nptl"
		select GLIBC_TLS
		help
		  Activate the NPTL addon.
endchoice

config GLIBC_TLS
	depends on GLIBC
	bool
	prompt "enable TLS"
	help
	  Activate Thread Local Storage.