source: Config.in@ 9485eba

experimental
Last change on this file since 9485eba was 9485eba, checked in by George Boudreau <georgeb@…>, 18 years ago

Implement suggestion made byDan Nicholson for configurable user/group. Required many changes and allowed for the removal of user specific function calls. Tnx Dan

  • Property mode set to 100644
File size: 14.9 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
472 config CONFIG_REPORT
473 bool "Create SBU and disk usage report"
474 default y
475
476 config TIMEZONE
477 string "TimeZone"
478 default "America/Toronto"
479 help
480 This will be copied to /etc/localtime
481
482
483 config LANG
484 string "Language"
485 default "$LANG"
486 help
487 #--- Language information in /etc/profile See <locale -a> for values
488
489 config LC_ALL
490 string "Language"
491 default "$LC_ALL"
492 depends on !BOOK_LFS
493 help
494 #--- Language information in /etc/profile See <locale -a> for values
495
496 choice
497 prompt "Groff page size"
498 default PAGE_LETTER
499 help
500 #--- page definition for groff letter/A4
501
502 config PAGE_LETTER
503 bool "letter"
504 config PAGE_A4
505 bool "A4"
506 endchoice
507 config PAGE
508 string
509 default "letter" if PAGE_LETTER
510 default "A4" if PAGE_A4
511
512 config HAVE_FSTAB
513 bool "Use this fstab file"
514 default n
515 help
516 #--- The location of fstab file (if empty, a template is created)
517 config FSTAB
518 string "Fstab file (optional)"
519 default "***EDIT ME***"
520 depends on HAVE_FSTAB
521 help
522 #--- The location of fstab file (if empty, a template is created)
523
524 config CONFIG_BUILD_KERNEL
525 bool "Build the kernel"
526 default n
527 help
528 #--- Select this option if you wish to build the kernel.
529 #
530 # You will be prompted for the full path to the .config
531 # file. It will be copied to the 'sources' directory and
532 # rename kernel-config
533 config CONFIG
534 string "Kernel config file"
535 default "***EDIT ME***"
536 depends on CONFIG_BUILD_KERNEL
537 help
538 #--- Fully qualified path to a kernel config file
539 # The config file will be copied to ${BUILD_DIR}/sources
540 # and renamed 'kernel-config'
541
542 config KEYMAP
543 string "Keyboard map"
544 default "none"
545 depends on !BOOK_LFS
546 help
547 #--- Include the keymap in the kernel if defined. Path to the
548 # keymap file relative to /usr/share/kbd/keymaps/
549 # (e.g., i386/qwerty/us.map.gz) or "none" if you do not want
550 # a keymap included in the kernel
551
552 config CONFIG_BLFS_CMDS
553 bool "Add BLFS packages to current build"
554 default n
555 depends !BOOK_HLFS && XXX
556 help
557 #--- Select this option if you wish to install any BLFS packages
558 # as part of your {c,h}lfs build.
559 # Any needed packages will be downloaded to the /sources dir
560 config BLFS_CMDLINE
561 string "BLFS packages"
562 default "none"
563 depends CONFIG_BLFS_CMDS
564
565
566# convert CONFIG_XXXX n/y to XXXX 0/1
567
568 config COMPARE
569 int
570 default 0 if !CONFIG_COMPARE
571 default 1 if CONFIG_COMPARE
572
573 config GETPKG
574 int
575 default 0 if !CONFIG_GETPKG
576 default 1 if CONFIG_GETPKG
577
578 config GETKERNEL
579 int
580 default 0 if !CONFIG_GETKERNEL
581 default 1 if CONFIG_GETKERNEL
582
583 config RUNMAKE
584 int
585 default 0 if !CONFIG_RUNMAKE
586 default 1 if CONFIG_RUNMAKE
587
588 config STRIP
589 int
590 default 0 if !CONFIG_STRIP
591 default 1 if CONFIG_STRIP
592
593 config REPORT
594 int
595 default 0 if !CONFIG_REPORT
596 default 1 if CONFIG_REPORT
597
598 config VIMLANG
599 int
600 default 0 if !CONFIG_VIMLANG
601 default 1 if CONFIG_VIMLANG
602
603 config RUN_ICA
604 int
605 default 0 if !CONFIG_ICA
606 default 1 if CONFIG_ICA
607
608 config RUN_FARCE
609 int
610 default 0 if !CONFIG_FARCE
611 default 1 if CONFIG_FARCE
612
613 config CLEAN
614 int
615 default 0 if !CONFIG_REBUILD
616 default 1 if CONFIG_REBUILD
Note: See TracBrowser for help on using the repository browser.