source: Config.in@ 3b0fb28

experimental
Last change on this file since 3b0fb28 was 3b0fb28, checked in by Manuel Canales Esparcia <manuel@…>, 18 years ago

Rearranged menuconfig layout.

  • Property mode set to 100644
File size: 15.9 KB
Line 
1menu "--- BOOK Settings"
2
3 #--- BOOK/script
4 choice
5 prompt "Use BOOK"
6 default BOOK_LFS
7 help
8 #-- Select the BOOK/Build style you wish to configure.
9
10 config BOOK_LFS
11 bool "Linux From Scratch"
12
13 config BOOK_CLFS
14 bool "Cross-Compiled Linux From Scratch"
15
16 config BOOK_CLFS2
17 bool "Cross-Compiled Linux From Scratch (Version 2)"
18
19# config BOOK_CLFS3
20# bool "Cross-Compiled Linux From Scratch (Embedded Systems)"
21
22 config BOOK_HLFS
23 bool "Hardened Linux From Scratch"
24
25# config BOOK_BLFS
26# bool "Beyond Linux From Scratch"
27 endchoice
28
29 config RUN_ME
30 string
31 default "./lfs" if BOOK_LFS
32 default "./clfs" if BOOK_CLFS
33 default "./clfs2" if BOOK_CLFS2
34# default "./clfs3" if BOOK_CLFS3
35 default "./hlfs" if BOOK_HLFS
36# default "./blfs" if BOOK_BLFS
37 #--- End BOOK/script
38
39 #--- Book version
40 choice
41 prompt "Release"
42 default relSVN
43 config relSVN
44 bool "SVN"
45 help
46 #-- Current development version as in trunk
47
48 config WORKING_COPY
49 bool "Working Copy"
50 help
51 #-- A local working copy
52
53 config BRANCH
54 bool "Branch or stable book" if !BOOK_HLFS && !BOOK_CLFS2
55 help
56 #-- A supported SVN branch or stable released book
57 endchoice
58
59 config BRANCH_ID
60 string "Branch (mandatory)"
61 default "**EDIT ME**"
62 depends BRANCH
63 help
64 #-- A list of valid branches and stable books ID's is available here.
65 # http://wiki.linuxfromscratch.org/alfs/wiki/SupportedBooks
66
67 config BOOK
68 string "Loc of working copy (mandatory)"
69 default "**EDIT ME**"
70 depends WORKING_COPY
71 help
72 #-- The full path to a local copy of the book XML sources
73 #
74 #--- End BOOK version
75
76 #--- CLFS specific params
77 choice
78 prompt "Target architecture"
79 default ARCH_X86
80 depends BOOK_CLFS || BOOK_CLFS2
81 help
82 #-- Choose a base architecture
83
84 config ARCH_X86
85 bool "x86"
86
87 config ARCH_MIPS
88 bool "mips" if !BOOK_CLFS2
89
90 config ARCH_PPC
91 bool "ppc" if !BOOK_CLFS2
92
93 config ARCH_SPARC
94 bool "sparc" if !BOOK_CLFS2
95
96 config ARCH_ALPHA
97 bool "alpha" if !BOOK_CLFS2
98
99 config ARCH_ARM
100 bool "arm" if !BOOK_CLFS
101 endchoice
102
103 choice
104 prompt "Library"
105 depends (BOOK_CLFS || BOOK_CLFS2)
106 default DATA_32 if !ARCH_ALPHA
107 default DATA_64 if ARCH_ALPHA
108
109 config DATA_32
110 bool "32-bit" if !ARCH_ALPHA
111
112 config DATA_64
113 bool "64-bit" if !ARCH_PPC && !ARCH_ARM && !(BOOK_CLFS2 && ARCH_X86)
114
115 config DATA_MULTI
116 bool "multilib" if !ARCH_ALPHA && !ARCH_ARM && !(BOOK_CLFS2 && ARCH_X86)
117 endchoice
118
119 choice
120 prompt "Target"
121 depends (BOOK_CLFS || BOOK_CLFS2) && ((ARCH_X86 && DATA_32) || ARCH_MIPS)
122
123 config PROC_i486
124 bool "i486" if ARCH_X86 && DATA_32
125
126 config PROC_i586
127 bool "i586" if ARCH_X86 && DATA_32
128
129 config PROC_i686
130 bool "i686" if ARCH_X86 && DATA_32
131
132 config PROC_mipsel
133 bool "mips -little endian" if ARCH_MIPS
134
135 config PROC_mips
136 bool "mips" if ARCH_MIPS
137 endchoice
138
139 config TARGET
140 string
141 depends DATA_32
142 default "i486-pc-linux-gnu" if ARCH_X86 && PROC_i486
143 default "i586-pc-linux-gnu" if ARCH_X86 && PROC_i586
144 default "i686-pc-linux-gnu" if ARCH_X86 && PROC_i686
145 default "mipsel-unknown-linux-gnu" if ARCH_MIPS && PROC_mipsel
146 default "mips-unknown-linux-gnu" if ARCH_MIPS && PROC_mips
147 default "powerpc-unknown-linux-gnu" if ARCH_PPC
148 default "sparc-unknown-linux-gnu" if ARCH_SPARC
149 default "arm-unknown-linux-gnu" if ARCH_ARM
150
151 config TARGET
152 string
153 depends DATA_64
154 default "x86_64-unknown-linux-gnu" if ARCH_X86
155 default "mips64el-unknown-linux-gnu" if ARCH_MIPS && PROC_mipsel
156 default "mips64-unknown-linux-gnu" if ARCH_MIPS && PROC_mips
157 default "sparc64-unknown-linux-gnu" if ARCH_SPARC
158 default "alpha-unknown-linux-gnu" if ARCH_ALPHA
159
160 config TARGET
161 string
162 depends DATA_MULTI
163 default "x86_64-unknown-linux-gnu" if ARCH_X86
164 default "mips64el-unknown-linux-gnu" if ARCH_MIPS && PROC_mipsel
165 default "mips64-unknown-linux-gnu" if ARCH_MIPS && PROC_mips
166 default "sparc64-unknown-linux-gnu" if ARCH_SPARC
167 default "powerpc64-unknown-linux-gnu" if ARCH_PPC
168
169
170 config TARGET32
171 string
172 depends DATA_MULTI
173 default "i686-pc-linux-gnu" if ARCH_X86
174 default "mipsel-unknown-linux-gnu" if ARCH_MIPS && PROC_mipsel
175 default "mips-unknown-linux-gnu" if ARCH_MIPS && PROC_mips
176 default "sparc-unknown-linux-gnu" if ARCH_SPARC
177 default "powerpc-unknown-linux-gnu" if ARCH_PPC
178
179 config ARCH
180 string
181 depends DATA_32
182 default "x86" if ARCH_X86
183 default "ppc" if ARCH_PPC
184 default "mips" if ARCH_MIPS
185 default "sparc" if ARCH_SPARC
186 default "arm" if ARCH_ARM
187
188 config ARCH
189 string
190 depends DATA_64
191 default "x86_64-64" if ARCH_X86
192 default "mips64-64" if ARCH_MIPS
193 default "sparc64-64" if ARCH_SPARC
194 default "alpha" if ARCH_ALPHA
195
196 config ARCH
197 string
198 depends DATA_MULTI
199 default "x86_64" if ARCH_X86
200 default "mips64" if ARCH_MIPS
201 default "sparc64" if ARCH_SPARC
202 default "ppc64" if ARCH_PPC
203
204 choice
205 prompt "Build method"
206 depends BOOK_CLFS
207 help
208 #-- What build method should be used: a chroot jail or minimal boot system
209 # Review the Cross-LFS book chap6 "TO BOOT OR CHROOT" for a full explanation.
210
211 config BUILD_CHROOT
212 bool "chroot"
213
214 config BUILD_BOOT
215 bool "boot"
216 endchoice
217
218 config METHOD
219 string
220 default "chroot" if BUILD_CHROOT
221 default "boot" if BUILD_BOOT
222
223 config BOOT_CONFIG
224 string "BOOT kernel config file (mandatory)"
225 default "***EDIT ME***"
226 depends on BUILD_BOOT
227 help
228 #-- If METHOD=boot, location of boot-kernel config file
229 # The config file will be copied to ${BUILD_DIR}/sources
230 # and renamed 'bootkernel-config'
231 #
232 # NOTE: this setting is required
233
234 config BOOT_KEYMAP
235 string "BOOT kernel keyboard map (see help)"
236 default "none"
237 depends on BUILD_BOOT
238 help
239 #-- Include the keymap in the kernel if defined. Path to the
240 # keymap file relative to /usr/share/kbd/keymaps/
241 # (e.g., i386/qwerty/us.map.gz) or "none" if you do not want
242 # a keymap included in the kernel
243
244 === Note about CLFS ===
245 If building the SVN or 1.0.0rc3 version using the boot method and
246 compiling the keymap into the kernel, you MUST manually edit the
247 "loadkeys" command found in $JHALFSDIR/clfs-commands/boot/066-kernel
248 to set the full path in your host to the keymap file.
249 #--- End CLFS specific params
250
251 #--- HLFS specific params
252 config GRSECURITY_HOST
253 bool "Building on grsecurity enabled host?"
254 default n
255 depends on BOOK_HLFS
256 help
257 #-- If your build system has grsecurity patches applied
258 # you MUST enable this switch.
259
260 choice
261 prompt "Library"
262 depends on BOOK_HLFS
263 help
264 #-- Which library model to use: uClibc/glibc
265
266 config LIB_GLIBC
267 bool "glibc"
268
269 config LIB_UCLIBC
270 bool "uClibc"
271 endchoice
272
273 config MODEL
274 depends on BOOK_HLFS
275 string
276 default "glibc" if LIB_GLIBC
277 default "uclibc" if LIB_UCLIBC
278 #--- End HLFS specific params
279
280#--- End BOOK Settings
281endmenu
282
283menu "--- General Settings"
284
285 #--- Set User Account
286 config CONFIG_USER
287 bool "Change the default user/group for this build"
288 default n
289 help #-- Unprivileged user and group name
290 # If you do not have the priv to create/delete
291 # users and groups you can specifiy your own
292 # user id for the build
293 #
294 # default values for each book
295 # LFS lfs
296 # CLFS clfs
297 # CLFS2 clfs
298 # HLFS hlfs
299
300 config DEF_USER
301 string
302 default "lfs" if BOOK_LFS
303 default "clfs" if BOOK_CLFS || BOOK_CLFS2
304 default "hlfs" if BOOK_HLFS
305
306 config SET_USER
307 string "User account"
308 depends CONFIG_USER
309 default DEF_USER
310
311
312 config CONFIG_GROUP
313 bool "Set Group?"
314 default n
315 depends CONFIG_USER
316
317 config SET_GROUP
318 string "GROUP account"
319 depends CONFIG_GROUP
320 default DEF_USER
321
322 config LUSER
323 string
324 default DEF_USER if !CONFIG_USER
325 default SET_USER if CONFIG_USER
326
327 config LGROUP
328 string
329 default LUSER if !CONFIG_GROUP
330 default SET_GROUP if CONFIG_GROUP
331 #--- End Set User Account
332
333 config BUILDDIR
334 string "Build Directory"
335 default "/mnt/build_dir"
336 help
337 #-- The directory where the created system will be located.
338
339 config CONFIG_GETPKG
340 bool "Retrieve source files"
341 default n
342 help
343 #-- Download all packages and patches required by the book selected
344 # NOTE: Looks for files in the local archive defined by SRC_ARCHIVE
345 # first and if necessary retrieve them from the 'net.
346 # Files will be transfered to $BUILDDIR/sources.
347
348 config SRC_ARCHIVE
349 string "Package Archive Directory"
350 default "$SRC_ARCHIVE"
351 depends CONFIG_GETPKG
352 help
353 #-- A local archive for packages/file (not $BUILDDIR/sources)
354 # Used only if GETPKG = 1
355 # Any missing file will be downloaded and archived here,
356 # if the user has the right priviledges.
357
358 config CONFIG_GETKERNEL
359 bool "Always retrieve kernel package"
360 default n
361 depends CONFIG_GETPKG
362 help
363 #-- Get the kernel package and patches even if no configuration
364 # file has been supplied.
365
366 config CONFIG_RUNMAKE
367 bool "Run the makefile"
368 default n
369 help
370 #-- Automatically run the makefile once it has been created
371
372 config CONFIG_REBUILD
373 bool "Rebuild files"
374 default n
375 help
376 #-- Clean the build directory before performing any other task.
377 # The directory is cleaned only if it was populated by a
378 # previous JHALFS run.
379 #
380 # NOTE::You must be 'root' for this function to work
381
382#--- End General Settings
383endmenu
384
385menu "--- Build Settings"
386
387 #--- Test Suites
388 config CONFIG_TESTS
389 bool "Run testsuites"
390 depends !BOOK_CLFS2
391 default n
392 help
393 #-- Run test suites
394 #
395 # You will can to select between:
396 #
397 # - Only final system Glibc, GCC and Binutils testsuites
398 # - All final system testsuites
399 # - Both temporary tools and final system testsuites
400 #
401 # HLFS and CLFS has no testsuites available in the
402 # temporary tools phase
403
404 # You will be promt also about the "flavour" of the
405 # testsuites run:
406 #
407 # - Don't stop on test suite failures
408 # - Abort the build at the first test suite failure
409 #
410
411 choice
412 prompt "Tests ->"
413 depends CONFIG_TESTS
414 default TEST_1
415
416 config TST_1
417 bool "Only final system Glibc, GCC and Binutils testsuites"
418
419 config TST_2
420 bool "All final system testsuites"
421
422 config TST_3
423 bool "Both temporary tools and final system testsuites" if !BOOK_HLFS && !BOOK_CLFS
424 endchoice
425
426 config TEST
427 int
428 default "0" if !CONFIG_TESTS
429 default "1" if TST_1
430 default "2" if TST_2
431 default "3" if TST_3
432
433 choice
434 prompt "Flavour ->"
435 depends CONFIG_TESTS
436 default NO_BOMB
437
438 config NO_BOMB
439 bool "Don't stop on test suite failures"
440
441 config BOMB
442 bool "Abort the build at the first test suite failure"
443 endchoice
444
445 config BOMB_TEST
446 int
447 default "0" if NO_BOMB
448 default "1" if BOMB
449 #--- End Test Suites
450
451 #--- FSTAB
452 config HAVE_FSTAB
453 bool "Use a custom fstab file"
454 default n
455 help
456 #-- Select this if you have ready a proper fstab file
457
458 config FSTAB
459 string "Fstab file (optional)"
460 default "***EDIT ME***"
461 depends on HAVE_FSTAB
462 help
463 #-- The location of fstab file (if empty, a template is created)
464 #--- End FSTAB
465
466 #--- Kernel
467 config CONFIG_BUILD_KERNEL
468 bool "Build the kernel"
469 default n
470 help
471 #-- Select this option if you wish to build the kernel.
472 #
473 # You will be prompted for the full path to the .config
474 # file. It will be copied to the 'sources' directory and
475 # rename kernel-config
476
477 config CONFIG
478 string "Kernel config file"
479 default "***EDIT ME***"
480 depends on CONFIG_BUILD_KERNEL
481 help
482 #-- Fully qualified path to a kernel config file
483 # The config file will be copied to ${BUILD_DIR}/sources
484 # and renamed 'kernel-config'
485
486 config KEYMAP
487 string "Keyboard map"
488 default "none"
489 depends on !BOOK_LFS && CONFIG_BUILD_KERNEL
490 help
491 #-- Include the keymap in the kernel if defined. Path to the
492 # keymap file relative to /usr/share/kbd/keymaps/
493 # (e.g., i386/qwerty/us.map.gz) or "none" if you do not want
494 # a keymap included in the kernel
495 #--- End Kernel
496
497 config CONFIG_STRIP
498 bool "Strip Installed Binaries/Libraries"
499 default y
500
501 config CONFIG_VIMLANG
502 bool "Install vim-lang package"
503 default y
504 help
505 #-- install the optional vim-lang package
506
507 config TIMEZONE
508 string "TimeZone"
509 default "GMT"
510 help
511 #-- The timezone as output by tzselect
512 # This will be copied to /etc/localtime
513
514 config LANG
515 string "Language"
516 default "$LANG"
517 help
518 #-- Language information in /etc/profile See <locale -a> for values
519
520 config LC_ALL
521 string "Language"
522 default "$LC_ALL"
523 depends on !BOOK_LFS
524 help
525 #-- Language information in /etc/profile See <locale -a> for values
526
527 #--- Groff page
528 choice
529 prompt "Groff page size"
530 default PAGE_LETTER
531 help
532 #-- Page definition for groff: letter or A4
533
534 config PAGE_LETTER
535 bool "letter"
536
537 config PAGE_A4
538 bool "A4"
539 endchoice
540
541 config PAGE
542 string
543 default "letter" if PAGE_LETTER
544 default "A4" if PAGE_A4
545 #--- End Groff page
546
547#--- End Build Settings
548endmenu
549
550menu "--- Advanced Features"
551
552 config CONFIG_REPORT
553 bool "Create SBU and disk usage report"
554 default y
555
556 #--- ICA/farce
557 config CONFIG_COMPARE
558 bool "Run comparison analysis on final stage"
559 depends !BOOK_CLFS2
560 default n
561 help
562 #-- Should some iterative comparison analysis by made?
563 #
564 # Unless you are familiar with ICA and/or FARCE do not
565 # select this option
566 #
567 # ICA and FARCE are analysis tools for comparing one
568 # build to the next. Builds mays differ from one iteration
569 # to another due to the build order and these tools try
570 # to ferret out those differences by examining the stored
571 # build logs and binary files.
572 #
573 # The scripts are well commented and can be found in ./extras/*
574 #
575
576 config ITERATIONS
577 int "Number of test runs (2,3,4,5)"
578 depends on CONFIG_COMPARE
579 range 2 5
580 default 3
581
582 config CONFIG_ICA
583 bool "ICA testing"
584 depends on CONFIG_COMPARE
585 default y
586 help
587 #-- Run ICA testing
588
589 config CONFIG_FARCE
590 bool "farce testing"
591 depends on CONFIG_COMPARE
592 default n
593 help
594 #-- Run farce testing
595 #--- End ICA/farce
596
597 #-- Optimizations
598 config CONFIG_OPTIMIZE
599 bool "Use optimization "
600 default n
601 help
602 #-- Actual optimzation flags MUST be defined in ./optimize/*
603 # files before activate this option.
604 #
605 # WARNING: The use of build optimizations may be dangerous.
606 # You should know what you are doing and be sure that the
607 # optimization settings listed below are what you want.
608 # It there are build issues or the system doesn't work as
609 # expected, please rebuild without optimizations before
610 # asking for support.
611
612 choice
613 prompt "Optimization level "
614 default OPT_1
615 depends CONFIG_OPTIMIZE
616 help
617 #-- Optimization values are set in optimize/* files
618
619 config OPT_1
620 bool "Final system only"
621
622 config OPT_2
623 bool "Both temp tools and final system"
624 endchoice
625
626 config OPTIMIZE
627 int
628 default "0" if !CONFIG_OPTIMIZE
629 default "1" if OPT_1
630 default "2" if OPT_2
631 #--- End Optimizations
632
633#--- End Advanced Features
634endmenu
635
636# config CONFIG_BLFS_CMDS
637# bool "Add BLFS packages to current build"
638# default n
639# depends !BOOK_HLFS && XXX
640# help
641# #--- Select this option if you wish to install any BLFS packages
642# # as part of your {c,h}lfs build.
643# # Any needed packages will be downloaded to the /sources dir
644# config BLFS_CMDLINE
645# string "BLFS packages"
646# default "none"
647# depends CONFIG_BLFS_CMDS
648
649
650# convert CONFIG_XXXX n/y to XXXX 0/1
651
652 config COMPARE
653 int
654 default 0 if !CONFIG_COMPARE
655 default 1 if CONFIG_COMPARE
656
657 config GETPKG
658 int
659 default 0 if !CONFIG_GETPKG
660 default 1 if CONFIG_GETPKG
661
662 config GETKERNEL
663 int
664 default 0 if !CONFIG_GETKERNEL
665 default 1 if CONFIG_GETKERNEL
666
667 config RUNMAKE
668 int
669 default 0 if !CONFIG_RUNMAKE
670 default 1 if CONFIG_RUNMAKE
671
672 config STRIP
673 int
674 default 0 if !CONFIG_STRIP
675 default 1 if CONFIG_STRIP
676
677 config REPORT
678 int
679 default 0 if !CONFIG_REPORT
680 default 1 if CONFIG_REPORT
681
682 config VIMLANG
683 int
684 default 0 if !CONFIG_VIMLANG
685 default 1 if CONFIG_VIMLANG
686
687 config RUN_ICA
688 int
689 default 0 if !CONFIG_ICA
690 default 1 if CONFIG_ICA
691
692 config RUN_FARCE
693 int
694 default 0 if !CONFIG_FARCE
695 default 1 if CONFIG_FARCE
696
697 config CLEAN
698 int
699 default 0 if !CONFIG_REBUILD
700 default 1 if CONFIG_REBUILD
Note: See TracBrowser for help on using the repository browser.