source: Config.in@ 056486c

experimental
Last change on this file since 056486c 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
Line 
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"
15# config BOOK_CLFS3
16# bool "clfs3 (Embedded LFS)"
17 config BOOK_HLFS
18 bool "hlfs"
19 config BOOK_BLFS
20 bool "blfs"
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
32
33#--- Book version
34#menu "Book Version"
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
43 bool "Branch" if !BOOK_HLFS && !BOOK_CLFS2 && !BOOK_BLFS
44 endchoice
45
46 config BRANCH_ID
47 string "Branch (mandatory)"
48 default "**EDIT ME**"
49 depends BRANCH
50 help
51 #-- A list of valid branch ID's is available here.
52 # http://wiki.linuxfromscratch.org/alfs/wiki/SupportedBooks
53
54 config BOOK
55 string "Loc of working copy (mandatory)"
56 default "**EDIT ME**"
57 depends WORKING_COPY
58 help
59 #--- The full path to a local copy of the book
60 #
61#endmenu
62#-----------------------
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
85 config SET_USER
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
95
96 config SET_GROUP
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------------------------
111
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
122 bool "x86"
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
168 default "i586-pc-linux-gnu" if ARCH_X86 && PROC_i586
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
179 default "x86_64-unknown-linux-gnu" if ARCH_X86
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
193
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
202 default "powerpc-unknown-linux-gnu" if ARCH_PPC
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
212
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
220
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
239 bool "boot"
240 endchoice
241 config METHOD
242 string
243 default "chroot" if BUILD_CHROOT
244 default "boot" if BUILD_BOOT
245
246 config BOOT_CONFIG
247 string "BOOT kernel config file (mandatory)"
248 default "***EDIT ME***"
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
265
266 === Note about CLFS ===
267 If building the SVN or 1.0.0rc3 version using the boot method and
268 compiling the keymap into the kernel, you MUST manually edit the
269 "loadkeys" command found in $JHALFSDIR/clfs-commands/boot/066-kernel
270 to set the full path in your host to the keymap file.
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
285 # you MUST enable this switch.
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
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
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.
331 # Files will be transfered to $BUILDDIR/sources.
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
341 bool "Run the makefile"
342 default n
343 help
344 #--- Automatically run the makefile once it has been created
345
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.
352 NOTE::You must be 'root' for this function to work
353
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.
379
380 choice
381 prompt "OPT level "
382 default OPT_1
383 depends CONFIG_OPTIMIZE
384 help
385 ***Optimization values are set in optimize/* files
386
387 config OPT_1
388 bool "Final system only"
389 config OPT_2
390 bool "Both temp tools and final system"
391 endchoice
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 #
406 # ICA and FARCE are analysis tools for comparing one
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/*
413 #
414
415 config ITERATIONS
416 int "Number of test runs (2,3,4,5)"
417 depends on CONFIG_COMPARE
418 range 2 5
419 default 3
420
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
431 default n
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)
445
446 HLFS has no testsuites available in the toolchain phase
447 # 1 = only chapter06 Glibc, Butterfly-tookchain
448 # 2 = all chapter06 testsuites
449 #
450
451 choice
452 prompt "Tests ->"
453 depends !BOOK_CLFS2 && CONFIG_TESTS
454 default TEST_1
455
456 config TST_1
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
460 config TST_2
461 bool "All chap06 testsuites"
462 config TST_3
463 bool "All chap05/06 testsuites" if !BOOK_HLFS
464 endchoice
465 config TEST
466 int
467 default "0" if !CONFIG_TESTS
468 default "1" if TST_1
469 default "2" if TST_2
470 default "3" if TST_3
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
485
486 config CONFIG_REPORT
487 bool "Create SBU and disk usage report"
488 default y
489
490 config TIMEZONE
491 string "TimeZone"
492 default "America/Toronto"
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
515
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
526 config HAVE_FSTAB
527 bool "Use this fstab file"
528 default n
529 help
530 #--- The location of fstab file (if empty, a template is created)
531 config FSTAB
532 string "Fstab file (optional)"
533 default "***EDIT ME***"
534 depends on HAVE_FSTAB
535 help
536 #--- The location of fstab file (if empty, a template is created)
537
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 #
544 # You will be prompted for the full path to the .config
545 # file. It will be copied to the 'sources' directory and
546 # rename kernel-config
547 config CONFIG
548 string "Kernel config file"
549 default "***EDIT ME***"
550 depends on CONFIG_BUILD_KERNEL
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
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"
577 depends CONFIG_BLFS_CMDS
578
579
580# convert CONFIG_XXXX n/y to XXXX 0/1
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
592 config GETKERNEL
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
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.