summaryrefslogtreecommitdiffstats
path: root/rules/kernel.in
blob: e0078d7dd07adb9a22f9b1b74e604a003b4c5667 (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
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
#
# rules/kernel.in
#

##############################################################################
menu "Kernel              "
##############################################################################

comment "----------------------------------"
comment "Target Kernel"
comment "----------------------------------"

config KERNEL_2_4
	bool

config KERNEL_2_4_COMPILE
	bool
	depends on COMPILE_KERNEL
	default y if KERNEL_2_4
	select HOST_MODUTILS

config KERNEL_2_6
	bool

config KERNEL_2_6_COMPILE
	bool
	depends on COMPILE_KERNEL
	default y if KERNEL_2_6
	select HOST_MODULE_INIT_TOOLS

config KERNEL_VERSION 
	prompt "Kernel Version"
	string
	default "2.6.15"

config KERNEL_PATCH_SERIES
	prompt "Kernel patch series file"
	string
	default "$(PROJECTDIR)/series"
	help
	  If you need patches applied to your vanilla kernel
	  you can specify a series file here. A series file
	  is a textfile with one patch per line.
	  This file lies usually in your project directory,
	  so the default is $(PROJECTDIR)/series.
	  The patches given in the series file must be relative
	  to the series file

config KERNEL_CONFIG
	string
	prompt "Path to kernel .config file"
	depends on !USE_EXTERNAL_KERNEL
	depends on BUILD_USERLAND
	help
	  Usually config files for the kernel live in $(PROJECTDIR), so
	  add something like

		$(PROJECTDIR)/your-kernelconfig.kernelconfig 

	  here.

config DONT_COMPILE_KERNEL
	bool

config COMPILE_KERNEL
	bool
	prompt "Compile Kernel"
	depends on BUILD_USERLAND
	default Y if !DONT_COMPILE_KERNEL
	default N if DONT_COMPILE_KERNEL
	help
	  Usually you want to compile your kernel. If not,
	  deselect this option. 

choice
	prompt "Kernel Image"
	default KERNEL_IMAGE_BZ
	depends on COMPILE_KERNEL

config KERNEL_IMAGE_BZ
	bool
	prompt "bzImage"
	depends on ARCH_X86
	
config KERNEL_IMAGE_Z
	bool
	prompt "zImage"
	depends on ARCH_X86 || ARCH_ARM

config KERNEL_IMAGE_U
	bool
	prompt "uImage"
	depends on ARCH_ARM || ARCH_X86 || ARCH_PPC

config KERNEL_IMAGE_VMLINUX
	bool
	prompt "vmlinux"
endchoice

comment "Additional Kernel Options"
	depends on BUILD_USERLAND

config USE_EXTERNAL_KERNEL
	bool
	prompt "Use external kernel"
	default n
	depends on BUILD_USERLAND
	help
	  Say yes if you intend to use an external already configured 
	  kernel tree. You want this if you, for example, are currently
	  working in a kernel tree and don't want to generate patches 
	  for each and every PTXdist run. 

config KERNEL_DIR
	string
	prompt "Path to external kernel source"
	depends on USE_EXTERNAL_KERNEL
	help
	  Add a path to your external kernel here. The kernel must be
	  configured. 

config KERNEL_INSTALL
	bool
	depends on BUILD_USERLAND
	prompt "Install kernel into /boot on target"
	default n
	select KERNEL_INSTALL_MODULES if COMPILE_KERNEL

config KERNEL_INSTALL_MODULES
	bool
	depends on BUILD_USERLAND
	prompt "Install modules into /lib/modules on target"
	default n 

# ----------------------------------------------------------------------------

comment "----------------------------------"
depends on BUILD_USERLAND
comment "Host Kernel (for simulation)"
depends on BUILD_USERLAND
comment "----------------------------------"
depends on BUILD_USERLAND

config KERNEL_HOST
	bool
	depends on BUILD_USERLAND
	default N
	prompt "build UML kernel for simulation"
	help
	  When compiling with NATIVE=1 it is possible that you build an
	  UML kernel which runs on the host as a virtual machine. 

config KERNEL_HOST_CONFIG
	string
	prompt "Path to kernel .config file"
	depends on KERNEL_HOST
	help
	  Usually config files for the kernel live in $(PROJECTDIR), so
	  add something like

		$(PROJECTDIR)/your-hostkernelconfig.kernelconfig 

	  here.

config KERNEL_HOST_VERSION
	prompt "UML Kernel Version"
	string

config KERNEL_HOST_PATCH_SERIES
	prompt "UML Kernel patch series file"
	string
	default "$(PROJECTDIR)/series"
	help
	  If you need patches applied to your vanilla kernel
	  you can specify a series file here. A series file
	  is a textfile with one patch per line.
	  This file lies usually in your project directory,
	  so the default is $(PROJECTDIR)/series.
	  The patches given in the series file must be relative
	  to the series file

choice
	prompt "Root filesystem method for host"
	depends on KERNEL_HOST
		
	config KERNEL_HOST_ROOT_HOSTFS
		bool
		prompt "hostfs"
		depends on KERNEL_HOST
		help
		  Using the hostfs method, $(ROOTDIR) is shared between
		  the host and the user mode linux machine.

endchoice

config KERNEL_HOST_CONSOLE_STDSERIAL
	bool
	prompt "map uml's /dev/ttyS0 to host's stdio"
	depends on KERNEL_HOST
	help
	  This switch adds "ssl0=fd:0,fd:1" to the kernel command line,
	  which forwards /dev/ttyS0 of the user mode linux vm to the
	  host's stdin/stdout. 

config KERNEL_HOST_CMDLINE
	string
	prompt "kernel command line for host kernel"
	depends on KERNEL_HOST
	help
	  Add your custom kernel commandline for the user mode linux 
	  kernel here. 

#config KERNEL_INSTALL_MODULES
#	bool
#	prompt "Install modules into /lib/modules on target"
#	default n 

endmenu