source: Config.in@ 8381f6e

experimental
Last change on this file since 8381f6e was 056486c, checked in by Manuel Canales Esparcia <manuel@…>, 18 years ago

Ported r2882 from trunk.

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