blob: b8c71d59cb7f16b380b7604251b489037d2547c4 (
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
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
|
if BR2_KERNEL_LINUX_ADVANCED
# --- "Linux kernel options"
# This file exports the following symbols for use by Makefile's
#
# BR2_PACKAGE_LINUX
#
# BR2_KERNEL_SITE
# BR2_DOWNLOAD_LINUX26_VERSION
# BR2_LINUX26_VERSION
#
# BR2_KERNEL_PATCH_SITE
# BR2_KERNEL_PATCH
#
# BR2_LINUX26_CUSTOM
# BR2_CUSTOM_LINUX26_PATCH_SITE
# BR2_CUSTOM_LINUX26_PATCH
#
# BR2_LINUX_BSP_PATCH
#
# BR2_PACKAGE_LINUX_USE_KCONFIG
# BR2_PACKAGE_LINUX_USE_DEFCONFIG
# BR2_PACKAGE_LINUX_USE_XCONFIG
# BR2_PACKAGE_LINUX_KCONFIG
#
# BR2_PACKAGE_LINUX_FORMAT
#
# BR2_LINUX_COPYTO_ROOTFS
# BR2_LINUX_COPYTO_TFTPBOOT
# BR2_LINUX_COPYTO
#
# ---------------------------------------------------------------------------
# --- These 'constants' requires regular maintenance, so put them first
config BR2_KERNEL_PATCH_LEVEL
string
default "4" if BR2_LINUX_2_6_24 && BR2_KERNEL_ADD_LATEST_MINORPATCH
default "17" if BR2_LINUX_2_6_23 && BR2_KERNEL_ADD_LATEST_MINORPATCH
default "19" if BR2_LINUX_2_6_22 && BR2_KERNEL_ADD_LATEST_MINORPATCH
default "7" if BR2_LINUX_2_6_21 && BR2_KERNEL_ADD_LATEST_MINORPATCH
default "21" if BR2_LINUX_2_6_20 && BR2_KERNEL_ADD_LATEST_MINORPATCH
default "$(BR2_KERNEL_MINORLEVEL)" if BR2_KERNEL_ADD_MINORPATCH
config BR2_KERNEL_CURRENT_VERSION
string
default "2.6.24.4"
config BR2_KERNEL_NEXT_VERSION
string
default "2.6.26" if BR2_LINUX_2_6_25
default "2.6.25" if BR2_LINUX_2_6_24
default "2.6.24" if BR2_LINUX_2_6_23
default "2.6.23" if BR2_LINUX_2_6_22
default "2.6.22" if BR2_LINUX_2_6_21
default "2.6.21" if BR2_LINUX_2_6_20
config BR2_KERNEL_THIS_VERSION
string
default "2.6.25" if BR2_LINUX_2_6_25
default "2.6.24" if BR2_LINUX_2_6_24
default "2.6.23" if BR2_LINUX_2_6_23
default "2.6.22" if BR2_LINUX_2_6_22
default "2.6.21" if BR2_LINUX_2_6_21
default "2.6.20" if BR2_LINUX_2_6_20
config LINUX26_LATEST_RC_VERSION
string
default "2.6.25-rc7" if BR2_KERNEL_ADD_LATEST_RC_PATCH
config LINUX26_LATEST_GIT_VERSION
string
default "2.6.25-rc7-git5" if BR2_KERNEL_ADD_LATEST_SNAPSHOT
config LINUX26_LATEST_MM_VERSION
string
default "2.6.25-rc5-mm1" if BR2_KERNEL_ADD_LATEST_MM_PATCH
config BR2_KERNEL_SITE
string
default "http://ftp.kernel.org/pub/linux/kernel/v2.6/"
config BR2_MM_PATCH_SITE
string
default "http://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6"
config BR2_MM_PATCH_DIR
string
default "$(BR2_DOWNLOAD_LINUX26_VERSION)/$(LINUX26_LATEST_MM_VERSION)" if BR2_KERNEL_ADD_LATEST_MM_PATCH
default "$(BR2_DOWNLOAD_LINUX26_VERSION)/$(BR2_LINUX26_MM_VERSION)" if BR2_KERNEL_ADD_MM_PATCH
config BR2_RC_MM_PATCH_DIR
string
default "$(BR2_KERNEL_NEXT_VERSION)-rc$(BR2_KERNEL_RC_LEVEL)/2.6.$(BR2_KERNEL_NEXT_VERSION)-rc$(BR2_KERNEL_RC_LEVEL)-mm$(BR2_KERNEL_MM_LEVEL)"
config BR2_KERNEL_PATCH_SITE
string
default "http://ftp.kernel.org/pub/linux/kernel/v2.6/" if BR2_KERNEL_ADD_MINORPATCH
default "http://ftp.kernel.org/pub/linux/kernel/v2.6/testing/" if BR2_KERNEL_ADD_RC_PATCH || BR2_KERNEL_ADD_LATEST_RC_PATCH
default "http://ftp.kernel.org/pub/linux/kernel/v2.6/snapshots/" if BR2_KERNEL_ADD_SNAPSHOT || BR2_KERNEL_ADD_LATEST_SNAPSHOT
default "$(BR2_MM_PATCH_SITE)/$(BR2_MM_PATCH_DIR)/" if BR2_KERNEL_ADD_MM_PATCH || BR2_KERNEL_ADD_LATEST_MM_PATCH
default $(BR2_CUSTOM_LINUX26_PATCH_SITE) if BR2_LINUX26_CUSTOM
config BR2_LINUX26_RC_VERSION
string
default "$(BR2_KERNEL_NEXT_VERSION)-rc$(BR2_KERNEL_RC_LEVEL)" if BR2_KERNEL_ADD_RC_PATCH
config BR2_LINUX26_SNAPSHOT_VERSION
string
default "$(BR2_KERNEL_THIS_VERSION)-git$(BR2_KERNEL_GIT_LEVEL)" if BR2_KERNEL_ADD_SNAPSHOT
config BR2_LINUX26_RC_SNAPSHOT_VERSION
string
default "$(BR2_KERNEL_NEXT_VERSION)-rc$(BR2_KERNEL_RC_LEVEL)-git$(BR2_KERNEL_GIT_LEVEL)" if BR2_KERNEL_ADD_SNAPSHOT
config BR2_LINUX26_MM_VERSION
string
default "$(BR2_KERNEL_THIS_VERSION)-mm$(BR2_KERNEL_MM_LEVEL)" if BR2_KERNEL_ADD_MM_PATCH
config BR2_LINUX26_RC_MM_VERSION
string
default "$(BR2_KERNEL_NEXT_VERSION)-rc$(BR2_KERNEL_RC_LEVEL)-mm$(BR2_KERNEL_MM_LEVEL)" if BR2_KERNEL_ADD_MM_PATCH
# ---------------------------------------------------------------------------
choice
prompt "Linux Kernel Version"
default BR2_LINUX_2_6_22_10 if BR2_avr32
default BR2_LINUX_2_6_22_1 if !BR2_avr32 && BR2_TARGET_ATMEL
default BR2_LINUX_2_6_22 if !BR2_TARGET_ATMEL
help
Select the specific Linux version you want to use
config BR2_LINUX_2_6_STABLE
bool "The latest stable Linux kernel (2.6.24.4)"
help
Linux 2.6.24.4
config BR2_LINUX_2_6_24
bool "Linux 2.6.24"
select BR2_KERNEL_BASE
help
Linux 2.6.24
config BR2_LINUX_2_6_23
bool "Linux 2.6.23"
select BR2_KERNEL_BASE
help
Linux 2.6.23
config BR2_LINUX_2_6_22_10
bool "Linux 2.6.22.10"
select BR2_KERNEL_PREPATCHED
help
Linux 2.6.22.10
config BR2_LINUX_2_6_22_1
bool "Linux 2.6.22.1"
select BR2_KERNEL_PREPATCHED
help
Linux 2.6.22.1
config BR2_LINUX_2_6_22
bool "Linux 2.6.22"
select BR2_KERNEL_LATEST
select BR2_KERNEL_BASE
help
Linux 2.6.22
config BR2_LINUX_2_6_21_7
bool "Linux 2.6.21.7"
select BR2_KERNEL_PREPATCHED
help
Linux 2.6.21.1
config BR2_LINUX_2_6_21_5
bool "Linux 2.6.21.5"
select BR2_KERNEL_PREPATCHED
help
Linux 2.6.21.5
config BR2_LINUX_2_6_21
bool "Linux 2.6.21"
select BR2_KERNEL_BASE
help
Linux 2.6.21
config BR2_LINUX_2_6_20
bool "Linux 2.6.20"
select BR2_KERNEL_BASE
help
Linux 2.6.20
config BR2_LINUX_2_6_25
bool "Linux 2.6.25"
select BR2_KERNEL_BASE
help
Linux 2.6.25
config BR2_LINUX26_CUSTOM
bool "Linux <custom> version"
help
Linux <your selection>
endchoice
if BR2_LINUX26_CUSTOM
config BR2_CUSTOM_DOWNLOAD_LINUX26_VERSION
string "Linux Tarball version"
default "linux-2.6.22"
help
Specify any .tar.bz2 file
config BR2_CUSTOM_LINUX26_VERSION
string "Linux Version"
default "linux-2.6.22-version"
help
Specify what the linux version will be called
config BR2_CUSTOM_LINUX26_PATCH
string "patch name"
default "patch-2.6.22-rc6-mm1.bz2"
help
Specify a patch to be downloaded
config BR2_CUSTOM_LINUX26_PATCH_SITE
string "patch site"
default "http://"
help
Specify from where the patch will be downloaded.
endif
# -----------------------------------------------
menu "Patches"
depends on BR2_PACKAGE_LINUX
config BR2_KERNEL_ADD_KERNEL_ORG_PATCH
bool "Add kernel.org patch"
depends on BR2_KERNEL_BASE
help
Add pre, snapshot or -mm patches
from http://www.kernel.org/
config BR2_KERNEL_ADD_LATEST
bool "Use only the latest patch version"
default y
depends on BR2_KERNEL_ADD_KERNEL_ORG_PATCH
help
Restrict the choices to the latest versions
choice
prompt "Add a kernel.org patch to the Linux Kernel"
depends on BR2_PACKAGE_LINUX
depends on !BR2_KERNEL_PREPATCHED
depends on BR2_KERNEL_ADD_KERNEL_ORG_PATCH
help
Select a patch to add to the Linux kernel
config BR2_KERNEL_ADD_LATEST_MINORPATCH
bool "Add _latest_ '.#' minor patch"
depends on BR2_KERNEL_ADD_LATEST
select BR2_KERNEL_ADD_PATCH
config BR2_KERNEL_ADD_MINORPATCH
bool "Add a '.#' minor patch"
depends on !BR2_KERNEL_ADD_LATEST
select BR2_KERNEL_ADD_PATCH
config BR2_KERNEL_ADD_LATEST_RC_PATCH
bool "Add _latest_ '-rc#' patch"
depends on BR2_KERNEL_ADD_LATEST
select BR2_KERNEL_ADD_PATCH
config BR2_KERNEL_ADD_RC_PATCH
bool "Add an '-rc#' patch"
depends on !BR2_KERNEL_ADD_LATEST
select BR2_KERNEL_ADD_PATCH
config BR2_KERNEL_ADD_LATEST_SNAPSHOT
bool "Add _latest_ 'snapshot' patch"
depends on BR2_KERNEL_ADD_LATEST
select BR2_KERNEL_ADD_PATCH
config BR2_KERNEL_ADD_SNAPSHOT
bool "Add a 'snapshot' patch (linux-2.6.X-rc#-git#)"
depends on !BR2_KERNEL_ADD_LATEST
select BR2_KERNEL_ADD_PATCH
config BR2_KERNEL_ADD_LATEST_MM_PATCH
bool "Add _latest_ '-mm' patch for the stable linux kernel"
depends on BR2_KERNEL_ADD_LATEST
select BR2_KERNEL_ADD_PATCH
config BR2_KERNEL_ADD_MM_PATCH
bool "Add an '-mm#' patch for the stable linux kernel"
depends on !BR2_KERNEL_ADD_LATEST
select BR2_KERNEL_ADD_PATCH
endchoice
config BR2_KERNEL_ADD_PATCH
bool
default n
config BR2_KERNEL_MINORLEVEL
string "patch level"
default ""
depends on BR2_KERNEL_ADD_MINORPATCH
config BR2_KERNEL_RC_LEVEL
string "-rc patch Level"
default ""
depends on BR2_KERNEL_ADD_RC_PATCH || BR2_KERNEL_ADD_SNAPSHOT
config BR2_KERNEL_GIT_LEVEL
string "-git patch Level"
default ""
depends on BR2_KERNEL_ADD_SNAPSHOT
config BR2_KERNEL_MM_LEVEL
string "-mm patch Level"
default ""
depends on BR2_KERNEL_ADD_MM_PATCH
source "target/device/Config.in.linux.patches"
config BR2_LINUX_BOARD_PATCH
bool "Add board specific patch"
default y
config BR2_LINUX_BSP_PATCH
string "Additional patch to apply (from \$(DL_DIR))"
default ""
help
Apply a patch located in \$(DL_DIR).
You need to download or create this before
enable this option
config BR2_KERNEL_PATCH
string
default "patch-$(BR2_DOWNLOAD_LINUX26_VERSION).$(BR2_KERNEL_PATCH_LEVEL).bz2" if BR2_KERNEL_ADD_MINORPATCH || BR2_KERNEL_ADD_LATEST_MINORPATCH
default "patch-$(LINUX26_LATEST_RC_VERSION).bz2" if BR2_KERNEL_ADD_LATEST_RC_PATCH
default "patch-$(BR2_LINUX26_RC_VERSION).bz2" if BR2_KERNEL_ADD_RC_PATCH
default "patch-$(LINUX26_LATEST_GIT_VERSION).bz2" if BR2_KERNEL_ADD_LATEST_SNAPSHOT
default "patch-$(BR2_LINUX26_SNAPSHOT_VERSION).bz2" if BR2_KERNEL_ADD_SNAPSHOT
default "$(LINUX26_LATEST_MM_VERSION).bz2" if BR2_KERNEL_ADD_LATEST_MM_PATCH
default "$(BR2_LINUX26_MM_VERSION).bz2" if BR2_KERNEL_ADD_MM_PATCH
default $(BR2_CUSTOM_LINUX26_PATCH) if BR2_LINUX26_CUSTOM
endmenu
# -----------------------------------------------
config BR2_KERNEL_PREPATCHED
bool
default n
config BR2_KERNEL_BASE
bool
default n
config BR2_KERNEL_LATEST
bool
default n
config BR2_DOWNLOAD_LINUX26_VERSION
string
default "$(BR2_KERNEL_THIS_VERSION)" if BR2_KERNEL_BASE
default "2.6.21.5" if BR2_LINUX_2_6_21_5
default "2.6.21.7" if BR2_LINUX_2_6_21_7
default "2.6.22.1" if BR2_LINUX_2_6_22_1
default "2.6.22.10" if BR2_LINUX_2_6_22_10
default "$(BR2_KERNEL_CURRENT_VERSION)"if BR2_LINUX_2_6_STABLE
default "$(BR2_DEFAULT_KERNEL_HEADERS)" if BR2_KERNEL_LINUX_HEADERS_VERSION
default $(BR2_CUSTOM_DOWNLOAD_LINUX26_VERSION) if BR2_LINUX26_CUSTOM
config BR2_LINUX26_VERSION
string
default "$(BR2_KERNEL_THIS_VERSION).$(BR2_KERNEL_PATCH_LEVEL)" if BR2_KERNEL_BASE && BR2_KERNEL_ADD_MINORPATCH
default "$(LINUX26_LATEST_RC_VERSION)" if BR2_KERNEL_ADD_LATEST_RC_PATCH
default "$(LINUX26_LATEST_MM_VERSION)" if BR2_KERNEL_ADD_LATEST_MM_PATCH
default "$(LINUX26_LATEST_GIT_VERSION)" if BR2_KERNEL_ADD_LATEST_SNAPSHOT
default "$(BR2_LINUX26_RC_VERSION)" if BR2_KERNEL_BASE && BR2_KERNEL_ADD_RC_PATCH
default "$(BR2_LINUX26_SNAPSHOT_VERSION)" if BR2_KERNEL_BASE && BR2_KERNEL_ADD_SNAPSHOT
default "$(BR2_LINUX26_MM_VERSION)" if BR2_KERNEL_BASE && BR2_KERNEL_ADD_MM_PATCH
default "$(BR2_KERNEL_THIS_VERSION)" if BR2_KERNEL_BASE && ! BR2_KERNEL_ADD_PATCH
default "2.6.21.5" if BR2_LINUX_2_6_21_5
default "2.6.21.7" if BR2_LINUX_2_6_21_7
default "2.6.22.1" if BR2_LINUX_2_6_22_1
default "2.6.22.10" if BR2_LINUX_2_6_22_10
default "$(BR2_KERNEL_CURRENT_VERSION)"if BR2_LINUX_2_6_STABLE
default $(BR2_CUSTOM_LINUX26_VERSION) if BR2_LINUX26_CUSTOM
menu "Linux Kernel Configuration"
choice
prompt "Linux Kernel Configuration"
depends on BR2_PACKAGE_LINUX
default BR2_PACKAGE_LINUX_USE_KCONFIG
help
Select the way to configure the Linux
config BR2_PACKAGE_LINUX_USE_KCONFIG
bool ".config file"
depends on BR2_PACKAGE_LINUX
help
kernel's .config to use to build a kernel for the target.
If the above setting is empty, you can change the default
board-imposed value by passing LINUX26_KCONFIG=<path> to
make.
config BR2_PACKAGE_LINUX_USE_DEFCONFIG
bool "Run make <board>_defconfig "
depends BR2_PACKAGE_LINUX
help
Configure Linux by make <board>_defconfig
config BR2_PACKAGE_LINUX_USE_XCONFIG
bool "Run make ARCH=$(ARCH) [xconfig|menuconfig] before build"
depends BR2_PACKAGE_LINUX
help
Configure Linux by make xconfig
endchoice
config BR2_PACKAGE_LINUX_KCONFIG
string ".config file"
depends on BR2_PACKAGE_LINUX_USE_KCONFIG
default "$(BR2_BOARD_PATH)/$(BR2_BOARD_NAME)-linux-$(BR2_LINUX26_VERSION).config"
help
kernel's .config to use to build a kernel for the target.
If the above setting is empty, you can change the default
board-imposed value by passing LINUX26_KCONFIG=<path> to
make.
choice
prompt "Preferred config tool"
default BR2_MAKE_XCONFIG
help
Define the preferred tool to invoke if a configuration is invalid
config BR2_MAKE_XCONFIG
bool "make xconfig"
help
Run "make menuconfig" if kernel ".config" is invalid
config BR2_MAKE_MENUCONFIG
bool "make menuconfig"
help
Run "make menuconfig" if kernel ".config" is invalid
endchoice
config BR2_KERNEL_CONFIG_METHOD
string
default "xconfig" if BR2_MAKE_XCONFIG
default "menuconfig" if BR2_MAKE_MENUCONFIG
endmenu
choice
prompt "kernel binary format"
depends on BR2_PACKAGE_LINUX
default BR2_LINUX_BIN_UIMAGE
help
Select the specific Linux binary type you want to use
config BR2_LINUX_BIN_BZIMAGE
bool "bzImage"
depends BR2_PACKAGE_LINUX
help
Linux 2.6.19.2
config BR2_LINUX_BIN_UIMAGE
bool "uImage"
depends BR2_PACKAGE_LINUX
help
Build uImage binary
config BR2_LINUX_BIN_VMLINUX
bool "vmlinux"
depends BR2_PACKAGE_LINUX
help
Build vmlinux binary
config BR2_LINUX_BIN_ZIMAGE
bool "zImage"
depends BR2_PACKAGE_LINUX
help
Linux 2.6.19.2
config BR2_LINUX_BIN_CUSTOM
bool "<custom> Linux binary"
depends BR2_PACKAGE_LINUX
help
Build custom Linux binary format
endchoice
config BR2_LINUX_BIN_CUSTOM_BIN
string "custom kernel binary format"
depends on BR2_LINUX_BIN_CUSTOM
default ""
help
Which Linux binary format?
config BR2_PACKAGE_LINUX_FORMAT
string #"kernel binary format"
depends on BR2_PACKAGE_LINUX
default "bzImage" if BR2_LINUX_BIN_BZIMAGE
default "uImage" if BR2_LINUX_BIN_UIMAGE
default "vmlinux" if BR2_LINUX_BIN_VMLINUX
default "zImage" if BR2_LINUX_BIN_ZIMAGE
default $(BR2_LINUX_BIN_CUSTOM_BIN) if BR2_LINUX_BIN_CUSTOM
help
kernel binary format.
Popular values include:
- bzImage
- zImage
- vmlinux
- zImage
- xipImage
and other, architecture dependant formats.
Note that the default format is supposed to be set by your
board-description, if any.
i386 and compatible default to bzImage if nothing was given
above.
If the above setting is empty, you can change the default
board-imposed value by passing LINUX26_FORMAT=<string> to
make.
menu "Destinations for linux kernel binaries"
config BR2_LINUX_COPYTO_ROOTFS
bool "Copy kernel to root file system"
depends BR2_PACKAGE_LINUX
default n
help
Copy kernel to <root>/boot directory
config BR2_LINUX_COPYTO_TFTPBOOT
bool "Copy kernel to /tftpboot"
default y if BR2_TARGET_ATMEL
default n if !BR2_TARGET_ATMEL
help
Copy kernel to /tftpboot directory
config BR2_LINUX_COPYTO
string "Copy kernel to <dir>..."
default ""
help
Copy kernel to secondary location
config BR2_LINUX_COPY_CONFIGURATION
bool "Copy buildroot configuration to Linux file system"
default y if BR2_TARGET_ATMEL
default n if !BR2_TARGET_ATMEL
help
The configuration files for buildroot, uclibc, busybox and linux
are copied to the "<root>/boot" directory.
endmenu
endif
|