source: Config.in@ 0140fcc

2.3 2.3.x 2.4 ablfs ablfs-more legacy new_features trunk
Last change on this file since 0140fcc was d3ce173, checked in by Manuel Canales Esparcia <manuel@…>, 18 years ago

Created BLFS master script code.

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