source: Config.in@ 058fb13

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

Removed a local change that don't should be commited.

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