aboutsummaryrefslogtreecommitdiff
path: root/target/generic/Config.in
blob: 54ff1d6ba43d1c28dba75d984b5f695230bb30fc (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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
if !(BR2_TARGET_ATMEL||BR2_TARGET_KWIKBYTE||BR2_TARGET_VALKA)

config BR2_TARGET_GENERIC_HOSTNAME
       string "System hostname"
       default "buildroot"
       help
         Select system hostname to be stored in /etc/hostname.

config BR2_TARGET_GENERIC_ISSUE
       string "System banner"
       default "Welcome to Buildroot"
       help
         Select system banner (/etc/issue) to be displayed at login.

menuconfig BR2_TARGET_GENERIC_GETTY
	bool "Generic serial port config"

if BR2_TARGET_GENERIC_GETTY

choice
	prompt "Serial port to run a getty on"
	default BR2_TARGET_GENERIC_GETTY_TTYS0
	help
	  Select a port to run a getty (login prompt) on.

config BR2_TARGET_GENERIC_GETTY_NONE
	bool "none"
config BR2_TARGET_GENERIC_GETTY_TTYS0
	bool "ttyS0"
config BR2_TARGET_GENERIC_GETTY_TTYS1
	bool "ttyS1"
config BR2_TARGET_GENERIC_GETTY_TTYS2
	bool "ttyS2"
config BR2_TARGET_GENERIC_GETTY_TTYS3
	bool "ttyS3"
config BR2_TARGET_GENERIC_GETTY_TTYAMA0
	bool "ttyAMA0"
	depends on BR2_arm
config BR2_TARGET_GENERIC_GETTY_TTYAMA1
	bool "ttyAMA1"
	depends on BR2_arm
config BR2_TARGET_GENERIC_GETTY_TTYAMA2
	bool "ttyAMA2"
	depends on BR2_arm
config BR2_TARGET_GENERIC_GETTY_TTYAMA3
	bool "ttyAMA3"
	depends on BR2_arm
config BR2_TARGET_GENERIC_GETTY_TTYSAC0
	bool "ttySAC0"
	depends on BR2_arm
config BR2_TARGET_GENERIC_GETTY_TTYSAC1
	bool "ttySAC1"
	depends on BR2_arm
config BR2_TARGET_GENERIC_GETTY_TTYSAC2
	bool "ttySAC2"
	depends on BR2_arm
config BR2_TARGET_GENERIC_GETTY_TTYSAC3
	bool "ttySAC3"
	depends on BR2_arm
config BR2_TARGET_GENERIC_GETTY_TTYMXC0
	bool "ttymxc0"
	depends on BR2_arm
config BR2_TARGET_GENERIC_GETTY_TTYMXC1
	bool "ttymxc1"
	depends on BR2_arm
config BR2_TARGET_GENERIC_GETTY_TTYMXC2
	bool "ttymxc2"
	depends on BR2_arm
config BR2_TARGET_GENERIC_GETTY_TTYUL0
	bool "ttyUL0"
	depends on BR2_powerpc
config BR2_TARGET_GENERIC_GETTY_TTYUL1
	bool "ttyUL1"
	depends on BR2_powerpc
config BR2_TARGET_GENERIC_GETTY_TTYUL2
	bool "ttyUL2"
	depends on BR2_powerpc
config BR2_TARGET_GENERIC_GETTY_TTYUL3
	bool "ttyUL3"
	depends on BR2_powerpc
config BR2_TARGET_GENERIC_GETTY_TTYPSC0
	bool "ttyPSC0"
	depends on BR2_powerpc
config BR2_TARGET_GENERIC_GETTY_TTYPSC1
	bool "ttyPSC1"
	depends on BR2_powerpc
config BR2_TARGET_GENERIC_GETTY_TTYPSC2
	bool "ttyPSC2"
	depends on BR2_powerpc
config BR2_TARGET_GENERIC_GETTY_TTYPSC3
	bool "ttyPSC3"
	depends on BR2_powerpc
config BR2_TARGET_GENERIC_GETTY_TTYCPM0
	bool "ttyCPM0"
	depends on BR2_powerpc
config BR2_TARGET_GENERIC_GETTY_TTYCPM1
	bool "ttyCPM1"
	depends on BR2_powerpc
config BR2_TARGET_GENERIC_GETTY_TTYCPM2
	bool "ttyCPM2"
	depends on BR2_powerpc
config BR2_TARGET_GENERIC_GETTY_TTYCPM3
	bool "ttyCPM3"
	depends on BR2_powerpc
endchoice

config BR2_TARGET_GENERIC_GETTY_PORT
	string
	default "#ttyS0"	if BR2_TARGET_GENERIC_GETTY_NONE
	default "ttyS0"		if BR2_TARGET_GENERIC_GETTY_TTYS0
	default "ttyS1"		if BR2_TARGET_GENERIC_GETTY_TTYS1
	default "ttyS2"		if BR2_TARGET_GENERIC_GETTY_TTYS2
	default "ttyS3"		if BR2_TARGET_GENERIC_GETTY_TTYS3
	default "ttyAMA0"	if BR2_TARGET_GENERIC_GETTY_TTYAMA0
	default "ttyAMA1"	if BR2_TARGET_GENERIC_GETTY_TTYAMA1
	default "ttyAMA2"	if BR2_TARGET_GENERIC_GETTY_TTYAMA2
	default "ttyAMA3"	if BR2_TARGET_GENERIC_GETTY_TTYAMA3
	default "ttySAC0"	if BR2_TARGET_GENERIC_GETTY_TTYSAC0
	default "ttySAC1"	if BR2_TARGET_GENERIC_GETTY_TTYSAC1
	default "ttySAC2"	if BR2_TARGET_GENERIC_GETTY_TTYSAC2
	default "ttySAC3"	if BR2_TARGET_GENERIC_GETTY_TTYSAC3
	default "ttymxc0"	if BR2_TARGET_GENERIC_GETTY_TTYMXC0
	default "ttymxc1"	if BR2_TARGET_GENERIC_GETTY_TTYMXC1
	default "ttymxc2"	if BR2_TARGET_GENERIC_GETTY_TTYMXC2
	default "ttyUL0"	if BR2_TARGET_GENERIC_GETTY_TTYUL0
	default "ttyUL1"	if BR2_TARGET_GENERIC_GETTY_TTYUL1
	default "ttyUL2"	if BR2_TARGET_GENERIC_GETTY_TTYUL2
	default "ttyUL3"	if BR2_TARGET_GENERIC_GETTY_TTYUL3
	default "ttyPSC0"	if BR2_TARGET_GENERIC_GETTY_TTYPSC0
	default "ttyPSC1"	if BR2_TARGET_GENERIC_GETTY_TTYPSC1
	default "ttyPSC2"	if BR2_TARGET_GENERIC_GETTY_TTYPSC2
	default "ttyPSC3"	if BR2_TARGET_GENERIC_GETTY_TTYPSC3
	default "ttyCPM0"	if BR2_TARGET_GENERIC_GETTY_TTYCPM0
	default "ttyCPM1"	if BR2_TARGET_GENERIC_GETTY_TTYCPM1
	default "ttyCPM2"	if BR2_TARGET_GENERIC_GETTY_TTYCPM2
	default "ttyCPM3"	if BR2_TARGET_GENERIC_GETTY_TTYCPM3

choice
	prompt "Baudrate to use"
	default BR2_TARGET_GENERIC_GETTY_BAUDRATE_115200
	help
	  Select a baudrate to use.

config BR2_TARGET_GENERIC_GETTY_BAUDRATE_KEEP
       bool "keep kernel default"
config BR2_TARGET_GENERIC_GETTY_BAUDRATE_9600
	bool "9600"
config BR2_TARGET_GENERIC_GETTY_BAUDRATE_19200
	bool "19200"
config BR2_TARGET_GENERIC_GETTY_BAUDRATE_38400
	bool "38400"
config BR2_TARGET_GENERIC_GETTY_BAUDRATE_57600
	bool "57600"
config BR2_TARGET_GENERIC_GETTY_BAUDRATE_115200
	bool "115200"
endchoice

config BR2_TARGET_GENERIC_GETTY_BAUDRATE
	string
	default "0"		if BR2_TARGET_GENERIC_GETTY_BAUDRATE_KEEP
	default "9600"		if BR2_TARGET_GENERIC_GETTY_BAUDRATE_9600
	default "19200"		if BR2_TARGET_GENERIC_GETTY_BAUDRATE_19200
	default "38400"		if BR2_TARGET_GENERIC_GETTY_BAUDRATE_38400
	default "57600"		if BR2_TARGET_GENERIC_GETTY_BAUDRATE_57600
	default "115200"	if BR2_TARGET_GENERIC_GETTY_BAUDRATE_115200

endif # BR2_TARGET_GENERIC_GETTY

endif