summaryrefslogtreecommitdiff
path: root/target/Config.in
blob: 0b7b95c133e8b4c741992e9a861cccc55fdf2ce0 (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
567
568
569
570
571
572
573
574
575
576
577
578
579
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

# mark broken devices
config ADK_BROKEN
	bool

config ADK_TOOLCHAIN_ONLY
	bool

config ADK_DEVICE_NO_FPU
	bool

config ADK_EABI
	bool

config ADK_LINUX_64
	bool

config ADK_NATIVE
	tristate

config ADK_alix1c
	tristate

config ADK_qemu_x86
	tristate

config ADK_qemu_mips
	tristate

config ADK_qemu_mipsel
	tristate

config ADK_qemu_mips64
	tristate

config ADK_qemu_mips64el
	tristate

config ADK_qemu_cris
	tristate

config ADK_rb532
	tristate

config ADK_rb411
	tristate

config ADK_rb433
	tristate

config ADK_zaurus
	tristate

config ADK_tomtom
	tristate

config ADK_foxboard
	tristate

config ADK_lemote
	tristate

config ADK_rescue_x86
	tristate

config ADK_rescue_x86_64
	tristate

config ADK_rescue_mips
	tristate

config ADK_rescue_mipsel
	tristate

config ADK_wag54g
	tristate

config ADK_shuttle
	tristate

config ADK_DEVICE
	string
	default "alix1c"  if ADK_alix1c
	default "qemu-x86"  if ADK_qemu_x86
	default "qemu-mips"  if ADK_qemu_mips
	default "qemu-mipsel"  if ADK_qemu_mipsel
	default "qemu-mips64"  if ADK_qemu_mips64
	default "qemu-mips64el"  if ADK_qemu_mips64el
	default "qemu-cris"  if ADK_qemu_cris
	default "foxboard"  if ADK_foxboard
	default "native"  if ADK_NATIVE
	default "rb532"  if ADK_rb532
	default "rb411"  if ADK_rb411
	default "rb433"  if ADK_rb433
	default "zaurus"  if ADK_arm
	default "lemote"  if ADK_lemote
	default "wag54g"  if ADK_wag54g
	default "rescue-x86"  if ADK_rescue_x86
	default "rescue-x86_64"  if ADK_rescue_x86_64
	default "rescue-mips"  if ADK_rescue_mips
	default "rescue-mipsel"  if ADK_rescue_mipsel
	default "shuttle"  if ADK_shuttle
	default "tomtom"  if ADK_tomtom

menu "Target system"

choice
prompt "Embedded Device"
default ADK_LINUX_NATIVE

config ADK_LINUX_NATIVE
	bool "Native platform"
	select ADK_NATIVE
	help
	  Make a native build. Use host tools.
	  No toolchain will be created.

config ADK_LINUX_X86_ALIX1C
	bool "PC Engines Alix1C"
	select ADK_alix1c
	select ADK_KERNEL_SCSI
	select ADK_KERNEL_EXT2_FS
	select ADK_KERNEL_NET_PCI
	select ADK_KERNEL_NETDEVICES
	select ADK_KERNEL_NET_ETHERNET
	select ADK_KERNEL_MII
	select BUSYBOX_HWCLOCK
	help
	  http://www.pcengines.ch/

config ADK_LINUX_CRIS_FOXBOARD
	bool "Foxboard (ETRAX LX100)"
	select ADK_foxboard
	select ADK_PACKAGE_KMOD_USB_CONTROLLER
	help
	  Foxboard support

config ADK_LINUX_MIPS64_LEMOTE
	bool "Lemote Subnotebook Yeeloong"
	select ADK_lemote
	select ADK_LINUX_64
	select ADK_KERNEL_BLK_DEV_SD
	select ADK_KERNEL_INPUT_KEYBOARD
	select ADK_KERNEL_NETDEVICES
	select ADK_KERNEL_NET_PCI
	select ADK_KERNEL_NET_ETHERNET
	select ADK_KERNEL_MII
	select ADK_KERNEL_SWAP
	help
	  Lemote Subnotebook

config ADK_LINUX_MIKROTIK
	bool "Mikrotik Routerboards"
	help
	 Support for Mikrotik Routerboards

config ADK_LINUX_MIPS_WAG54G
	bool "Linksys WAG54G"
	select ADK_KERNEL_NETDEVICES
	select ADK_KERNEL_NET_PCI
	select ADK_KERNEL_NET_ETHERNET
	select ADK_KERNEL_MII
	select ADK_wag54g
	help
	  Linksys WAG54G DSL router with Wireless
	  TI AR7 platform

config ADK_LINUX_ARM_TOMTOM
	bool "TomTom Applications"
	select ADK_tomtom
	select ADK_DEVICE_NO_FPU
	select ADK_EABI
	select ADK_TOOLCHAIN_ONLY
	help
	 Support for TomTom Rider 2 (or others).
	 Just toolchain support to cross-compile your own
	 applications.


#config ADK_LINUX_XSCALE_ZAURUS
#	bool "Zaurus SL-C3200"
#	depends on ADK_BROKEN
#	select ADK_zaurus
#	select ADK_DEVICE_NO_FPU
#	help
#	 Support for Sharp Zaurus SL-C3200 (aka Terrier)

config ADK_LINUX_RESCUE
	bool "Minimal Linux Rescuesystem"
	select ADK_KERNEL_INPUT_KEYBOARD
	help
	 Rescuesystem with can be used to Boot from Disk or USB stick.

config ADK_LINUX_QEMU
	bool "Qemu Emulator"
	select ADK_KERNEL_NET_PCI
	select ADK_KERNEL_NETDEVICES
	select ADK_KERNEL_NET_ETHERNET
	help
	 Support for Qemu Emulator

config ADK_LINUX_X86_64_SHUTTLE
	bool "Shuttle PC"
	select ADK_shuttle
	select ADK_KERNEL_INPUT_KEYBOARD
	select ADK_KERNEL_NETDEVICES
	select ADK_KERNEL_NET_PCI
	select ADK_KERNEL_NET_ETHERNET
	select ADK_KERNEL_SATA_AHCI if ADK_TARGET_ROOTFS_ARCHIVE
	select ADK_KERNEL_BLK_DEV_MD if ADK_TARGET_ROOTFS_ARCHIVE
	select ADK_KERNEL_MD_RAID0 if ADK_TARGET_ROOTFS_ARCHIVE
	select ADK_KERNEL_MD_RAID1 if ADK_TARGET_ROOTFS_ARCHIVE
	select ADK_KERNEL_XFS_FS if ADK_TARGET_ROOTFS_ARCHIVE
	select ADK_KPACKAGE_KMOD_SKY2 if ADK_TARGET_ROOTFS_INITRAMFS_PIGGYBACK
	select ADK_KPACKAGE_KMOD_SATA_AHCI if ADK_TARGET_ROOTFS_INITRAMFS_PIGGYBACK
	select ADK_KPACKAGE_KMOD_XFS_FS if ADK_TARGET_ROOTFS_INITRAMFS_PIGGYBACK
	select ADK_KPACKAGE_KMOD_BLK_DEV_MD if ADK_TARGET_ROOTFS_INITRAMFS_PIGGYBACK
	select ADK_KPACKAGE_KMOD_MD_RAID0 if ADK_TARGET_ROOTFS_INITRAMFS_PIGGYBACK
	select ADK_KPACKAGE_KMOD_MD_RAID1 if ADK_TARGET_ROOTFS_INITRAMFS_PIGGYBACK
	help
	  Support for a nice and fast shuttle xpc with AMD quad-core CPU.
	  Known as OpenADK multi operating system buildserver.

endchoice

choice
prompt "Architecture"
depends on ADK_LINUX_RESCUE

config ADK_LINUX_X86_64_RESCUE
	bool "x86_64"
	select ADK_rescue_x86_64
	help
	 X86 architecture.

config ADK_LINUX_X86_RESCUE
	bool "x86"
	select ADK_rescue_x86
	help
	 X86 architecture.

config ADK_LINUX_MIPSEL_RESCUE
	bool "mips (little endian)"
	select ADK_rescue_mipsel
	help
	 MIPS LE architecture.

config ADK_LINUX_MIPS_RESCUE
	bool "mips (big endian)"
	select ADK_rescue_mips
	help
	 MIPS BE architecture.

endchoice

choice
prompt "Architecture"
depends on ADK_LINUX_QEMU

config ADK_LINUX_X86_QEMU
	bool "x86"
	select ADK_qemu_x86
	select ADK_KPACKAGE_KMOD_NE2K_PCI
	select ADK_KERNEL_INPUT_KEYBOARD
	help
	 Qemu support for x86 architecture.

config ADK_LINUX_MIPS_QEMU
	bool "mips (big endian)"
	select ADK_qemu_mips
	help
	 Qemu support for MIPS BE architecture.

config ADK_LINUX_MIPSEL_QEMU
	bool "mipsel (little endian)"
	select ADK_qemu_mipsel
	help
	 Qemu support for MIPS LE architecture.

config ADK_LINUX_MIPS64_QEMU
	bool "mips64 (big endian)"
	select ADK_qemu_mips64
	select ADK_LINUX_64
	help
	 Qemu support for MIPS64 BE architecture.

config ADK_LINUX_MIPS64EL_QEMU
	bool "mips64 (little endian)"
	select ADK_qemu_mips64el
	select ADK_LINUX_64
	help
	 Qemu support for MIPS64 LE architecture.

config ADK_LINUX_CRIS_QEMU
	bool "cris"
	select ADK_qemu_cris
#	select ADK_BROKEN
	help
	 Qemu support for CRISv32 architecture.

endchoice

choice
prompt "Routerboard model"
default ADK_LINUX_MIPS_RB433
depends on ADK_LINUX_MIKROTIK

config ADK_LINUX_MIPS_RB411
	bool "Mikrotik Routerboard 411"
	select ADK_rb411
	select ADK_KERNEL_NETDEVICES
	select ADK_KERNEL_NET_PCI
	select ADK_KERNEL_NETDEV_1000
	select ADK_KERNEL_NET_ETHERNET
	help
	 Support for Mikrotik RB411.

config ADK_LINUX_MIPS_RB433
	bool "Mikrotik Routerboard 433"
	select ADK_rb433
	select ADK_KERNEL_NETDEVICES
	select ADK_KERNEL_NET_PCI
	select ADK_KERNEL_NETDEV_1000
	select ADK_KERNEL_NET_ETHERNET
	help
	 Support for Mikrotik RB433.

config ADK_LINUX_MIPS_RB532
	bool "Mikrotik Routerboard 532"
	select ADK_rb532
	select ADK_KERNEL_NETDEVICES
	select ADK_KERNEL_NET_PCI
	select ADK_KERNEL_NET_ETHERNET
	select ADK_KERNEL_MII
	help
	 Support for Mikrotik RB532.
endchoice

choice
prompt "Device model"
default ADK_LINUX_CRIS_FOXBOARD_CLASSIC
depends on ADK_LINUX_CRIS_FOXBOARD

config ADK_LINUX_CRIS_FOXBOARD_CLASSIC
	bool "Foxboard classic (4x16)"
	help
	  Foxboard classic with red board.
	  (4 MB flash size and 16 MB RAM)

config ADK_LINUX_CRIS_FOXBOARD_LX
	bool "Foxboard LX (8x32)"
	help
	  Latest Foxboard with green board.
	  (8 MB flash size and 32 MB RAM)

endchoice

source "target/linux/config/Config.in.kernel"

choice 
prompt "Target C library"
depends on ! ADK_NATIVE
config ADK_TARGET_LIB_UCLIBC
	bool "uClibc embedded C library"
	# broken, because of 16kB pagesize
	depends on !ADK_LINUX_MIPS64_LEMOTE
	help
 	 http://uclibc.org

config ADK_TARGET_LIB_EGLIBC
	bool "Embedded GNU C library"
	depends on ADK_LINUX_X86_QEMU || \
		ADK_LINUX_MIPS_QEMU || \
		ADK_LINUX_MIPS64_QEMU || \
		ADK_LINUX_MIPSEL_QEMU || \
		ADK_LINUX_MIPS64EL_QEMU || \
		ADK_LINUX_X86_ALIX1C || \
		ADK_LINUX_MIPS_RB411 || \
		ADK_LINUX_MIPS_RB532 || \
		ADK_LINUX_RESCUE || \
		ADK_LINUX_X86_64_SHUTTLE || \
		ADK_LINUX_ARM_TOMTOM || \
		ADK_LINUX_MIPS64_LEMOTE
	help
	 http://www.eglibc.org

config ADK_TARGET_LIB_GLIBC
	bool "GNU C library"
	depends on ADK_LINUX_X86_QEMU || \
		ADK_LINUX_MIPS_QEMU || \
		ADK_LINUX_MIPS64_QEMU || \
		ADK_LINUX_MIPSEL_QEMU || \
		ADK_LINUX_MIPS64EL_QEMU || \
		ADK_LINUX_X86_ALIX1C || \
		ADK_LINUX_MIPS_RB411 || \
		ADK_LINUX_RESCUE || \
		ADK_LINUX_X86_64_SHUTTLE || \
		ADK_LINUX_ARM_TOMTOM || \
		ADK_LINUX_MIPS64_LEMOTE
	help
	 http://www.gnu.org/libc

endchoice

config ADK_TARGET_SUFFIX
	string
	default "gnueabi" if (ADK_TARGET_LIB_GLIBC || ADK_TARGET_LIB_EGLIBC) && ADK_EABI
	default "gnu" if (ADK_TARGET_LIB_GLIBC || ADK_TARGET_LIB_EGLIBC) && !ADK_EABI
	default "uclibcgnueabi" if ADK_TARGET_LIB_UCLIBC && ADK_EABI
	default "uclibc" if ADK_TARGET_LIB_UCLIBC && !ADK_EABI


choice
prompt "Target Firmware type"
	depends on !ADK_TOOLCHAIN_ONLY
	default ADK_TARGET_ROOTFS_EXT2_CF

config ADK_TARGET_ROOTFS_INITRAMFS
	bool "initramfs filesystem"
	depends on ADK_LINUX_X86_QEMU || \
		ADK_LINUX_CRIS_QEMU || \
		ADK_LINUX_MIPS_QEMU || \
		ADK_LINUX_MIPSEL_QEMU || \
		ADK_LINUX_MIPS64_QEMU || \
		ADK_LINUX_MIPS64EL_QEMU || \
		ADK_LINUX_NATIVE || \
		ADK_LINUX_RESCUE
	select ADK_KERNEL_BLK_DEV_INITRD
	help
	  create an read-only initramfs system.

config ADK_TARGET_ROOTFS_INITRAMFS_PIGGYBACK
	bool "initramfs filesystem included into kernel image"
	select ADK_LINUX_INITRAMFS_BUILTIN
	depends on ADK_LINUX_X86_QEMU || \
		ADK_LINUX_CRIS_QEMU || \
		ADK_LINUX_MIPS_QEMU || \
		ADK_LINUX_MIPSEL_QEMU || \
		ADK_LINUX_MIPS64_QEMU || \
		ADK_LINUX_MIPS64EL_QEMU || \
		ADK_LINUX_X86_64_SHUTTLE || \
		ADK_LINUX_NATIVE || \
		ADK_LINUX_RESCUE
	help
	  create an read-only initramfs system.

config ADK_TARGET_ROOTFS_SQUASHFS
	bool "squashfs read-only root filesystem"
	depends on ADK_LINUX_CRIS_FOXBOARD || \
		ADK_LINUX_MIPS_WAG54G
	help
	  highly compressed read-only filesystem for flash.

config ADK_TARGET_ROOTFS_YAFFS
	bool "YAFFS2 rootfilesystem (NAND)"
	depends on ADK_LINUX_MIPS_RB532 || \
		ADK_LINUX_MIPS_RB433 || \
		ADK_LINUX_MIPS_RB411
	help
	  Root filesystem on NAND.

config ADK_TARGET_ROOTFS_NFSROOT
	bool "NFS root"
	depends on ADK_LINUX_CRIS_FOXBOARD || \
		ADK_LINUX_X86_ALIX1C || \
		ADK_LINUX_MIPS_RB532 || \
		ADK_LINUX_MIPS_RB433 || \
		ADK_LINUX_MIPS_RB411 || \
		ADK_LINUX_MIPS_WAG54G || \
		ADK_LINUX_MIPS64_LEMOTE
	select ADK_KERNEL_NFS_FS
	select ADK_KERNEL_NFS_V3
	select ADK_KERNEL_ROOT_NFS
	select ADK_KERNEL_NFS_COMMON
	select ADK_KERNEL_IP_PNP
	select ADK_KERNEL_IP_PNP_DHCP
	help
	  Root filesystem mounted via NFS. (DHCP)

config ADK_TARGET_ROOTFS_EXT2_CF
	bool "read-write filesystem for compact flash (ext2)"
	depends on ADK_LINUX_X86_ALIX1C || ADK_LINUX_MIPS_RB532
	select ADK_KERNEL_EXT2_FS
	select ADK_KERNEL_SCSI
	select ADK_KERNEL_BLK_DEV_SD
	help
	  Use this option if you have a compact flash
	  inside your hardware and want to boot from it.

config ADK_TARGET_ROOTFS_ARCHIVE
	bool "Archive usable for different filesystems"
	depends on ADK_LINUX_QEMU || \
		ADK_LINUX_XSCALE_ZAURUS || \
		ADK_LINUX_MIPS64_LEMOTE || \
		ADK_LINUX_X86_64_SHUTTLE
	help
	  Use this option if your root filesystem is ext2/ext3/ext4/xfs.

config ADK_TARGET_ROOTFS_ENCRYPTED
	bool "Encrypted read-write root filesystem"
	depends on ADK_LINUX_MIPS64_LEMOTE
	select ADK_LINUX_INITRAMFS_BUILTIN
	select ADK_PACKAGE_CRYPTINIT
	select ADK_KERNEL_BLK_DEV_DM
	select ADK_KERNEL_DM_CRYPT
	select ADK_KERNEL_CRYPTO_AES
	select ADK_KERNEL_CRYPTO_CBC
	select ADK_KERNEL_CRYPTO_SHA256
	select ADK_KERNEL_XFS_FS
	help
	  Use this option if you want an encrypted rootfs.
	  Default is XFS filesystem. Use following commands to setup 
	  your hard disk, after booting via NFS or USB.
	  Create at least three partitions with fdisk
	  /dev/sda1 (ext2)
          /dev/sda2 (encrypted root)
          /dev/sda3 (swap)

	  mkdir /mnt/{boot,root}
	  cryptsetup luksFormat /dev/sda2 
	  cryptsetup luksOpen /dev/sda2 root
	  cryptsetup luksFormat /dev/sda3
	  cryptsetup luksOpen /dev/sda3 swap
	  mkswap /dev/mapper/swap
          mkfs.xfs /dev/mapper/root
          mount /dev/mapper/root /mnt/root
          tar xzvf lemote-mips-encryptedroot.tar.gz -C /mnt/root
          mount /dev/sda1 /mnt/boot
	  mkdir /mnt/boot/boot
	  cp lemote-mips-kernel /mnt/boot/boot
	  mv /mnt/root/boot/boot.cfg /mnt/boot/boot
	  cd /mnt/root ; mknod -m 644 console c 5 1

endchoice

#config ADK_SSP
#	bool "Enable Stack Smashing Protection"
#	default n
#	depends on ADK_LINUX_X86_ALIX1C || \
#		ADK_LINUX_CRIS_FOXBOARD
#	help
#	  Enable Stack Smashing Protection

config ADK_CXX
	bool "Enable C++ support"
	default n
	help
	  Enable C++ Compiler and Libraries

config ADK_DEBUG
	bool "Enable debug support"
	default n
	help
	  All packages and libc will be compiled and packaged with debug information.
	  Mostly useful for NFS root or big USB/CF disk setups.

config ADK_IPV6
	bool "Enable IPv6 support"
	default n
	select ADK_KPACKAGE_KMOD_IPV6
	select BUSYBOX_FEATURE_IPV6
	select BUSYBOX_FEATURE_IFUPDOWN_IPV6
	select BUSYBOX_PING6
	help
	  Enable basic IPv6 support (kmod-ipv6) and
	  make the IPv6 support options in packages visible.

config ADK_X11
	bool "Enable X.org/X11 support"
	default n
	help
	  Enable Xorg/X11 server and applications in menu.
	  Try to compile other packages with X11 support. 
	  (f.e. mplayer)


endmenu