summaryrefslogtreecommitdiffstats
path: root/rules/cross-gcc.in
blob: 01e4aa677b2b2446925ed4ea5ef423f17e067c83 (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
# config for cross-gcc

menuconfig CROSS_GCC
	bool
	prompt "gcc                         "
	bool
	select CROSS_BINUTILS
	select LIBC_FIRST
	select HOST_GMP		if CROSS_GCC_43
	select HOST_MPFR	if CROSS_GCC_43
	select CROSS_ECJ	if CROSS_GCC_LANG_JAVA

if CROSS_GCC

config CROSS_GCC_VERSION
	string
	prompt "gcc version"
	default "4.2.4"
	help
	  Specify the version of gcc here.

config CROSS_GCC_43
	bool
	prompt "additional deps for gcc >= 4.3"
	help
	  Add new dependencies for gcc >= 4.3: "GMP" and "MPFR"

config CROSS_GCC_SERIES
	string
	default "series"
	prompt "gcc patch series file"

config CROSS_GCC_EXTRA_CONFIG
	string
	prompt "extra configure options"
	help
	  Add these extra options to the gcc configure script.

comment "Additional supported languages:"

config CROSS_GCC_LANG_C
	bool
	default y
	help
	  As GCC is a compiler collection, you it can support various languages
	  Select this for standard C support

config CROSS_GCC_LANG_CXX
	bool
	prompt "C++"
	default y
	help
	  As GCC is a compiler collection, it can support various languages.
	  Select this for C++ support

config CROSS_GCC_LANG_FORTRAN
	bool
	prompt "Fortran"
	help
	  As GCC is a compiler collection, it can support various languages.
	  Select this for Fortran support

config CROSS_GCC_LANG_JAVA
	bool
	prompt "Java"
	help
	  As GCC is a compiler collection, it can support various languages.
	  Select this for Java support

source "workspace/rules/cross-ecj.in"

endif

###
### --with-newlib
###
config CROSS_GCC_EXTRA_CONFIG_LIBC
	string
	default "--with-newlib" if LIBC_NEWLIB


###
### ___cxa_atexit
###
config CROSS_GCC_ENABLE_CXA_ATEXIT
	bool

config CROSS_GCC_EXTRA_CONFIG_CXA_ATEXIT
	string
	default "--enable-__cxa_atexit"		if CROSS_GCC_ENABLE_CXA_ATEXIT
	default "--disable-__cxa_atexit"	if !CROSS_GCC_ENABLE_CXA_ATEXIT


###
### shared
###
config CROSS_GCC_SHARED
	bool

config CROSS_GCC_EXTRA_CONFIG_SHARED
       string
       default "--enable-shared"	if CROSS_GCC_SHARED
       default "--disable-shared"	if !CROSS_GCC_SHARED


###
### threads
###
config CROSS_GCC_THREADS_SINGLE
	bool

config CROSS_GCC_THREADS_POSIX
	bool

config CROSS_GCC_THREADS_WIN32
	bool

config CROSS_GCC_THREADS
	string
	default "posix"		if CROSS_GCC_THREADS_POSIX
	default "single"	if CROSS_GCC_THREADS_SINGLE
	default "win32"		if CROSS_GCC_THREADS_WIN32

###
### first
###
config CROSS_GCC_FIRST
	bool
	select CROSS_BINUTILS
	select LIBC_HEADERS
	select HOST_GMP		if CROSS_GCC_43
	select HOST_MPFR	if CROSS_GCC_43