source: Config.in@ 2507cf7

ablfs
Last change on this file since 2507cf7 was 2507cf7, checked in by Pierre Labastie <pierre@…>, 13 years ago

Major change for the inclusion of blfs-tool dependencies:

  • build them before custom tools
  • use instructions in the BLFS book instead of harcoded ones
  • use the dependency tracker of the tool itself (kind of bootstrap)
  • Property mode set to 100644
File size: 27.8 KB
RevLine 
[a705708]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
[abf2c47]17 bool "Cross-Compiled Linux From Scratch (Sysroot method)"
[a705708]18
[2639f65]19 config BOOK_CLFS3
20 bool "Cross-Compiled Linux From Scratch (Embedded Systems)"
[a705708]21
[e818106]22# config BOOK_HLFS
23# bool "Hardened Linux From Scratch"
[a705708]24
[2180d05]25# config BOOK_BLFS
26# bool "Beyond Linux From Scratch"
[a705708]27 endchoice
28
[4da2512]29 config PROGNAME
30 string
31 default "lfs" if BOOK_LFS
32 default "clfs" if BOOK_CLFS
33 default "clfs2" if BOOK_CLFS2
[2639f65]34 default "clfs3" if BOOK_CLFS3
[4da2512]35 default "hlfs" if BOOK_HLFS
[2180d05]36# default "blfs" if BOOK_BLFS
[4da2512]37
[a705708]38 config RUN_ME
39 string
[2180d05]40 default "./jhalfs run"# if !BOOK_BLFS
41# default "./blfs-tool" if BOOK_BLFS
[a705708]42 #--- End BOOK/script
43
44 #--- Book version
45 choice
46 prompt "Release"
47 default relSVN
48 config relSVN
49 bool "SVN"
50 help
51 #-- Current development version as in trunk
52
53 config WORKING_COPY
54 bool "Working Copy"
[2180d05]55# depends on !BOOK_BLFS
[a705708]56 help
57 #-- A local working copy
58
59 config BRANCH
[0536270]60 bool "Branch or stable book" if !BOOK_CLFS2 && !BOOK_CLFS3
[a705708]61 help
62 #-- A supported SVN branch or stable released book
63 endchoice
64
65 config BRANCH_ID
[401f81e]66 string "Book Version (mandatory)"
[a705708]67 default "**EDIT ME**"
68 depends BRANCH
69 help
[4fa38dd]70 #-- A list of valid branches and stable book IDs is available here.
[a705708]71 # http://wiki.linuxfromscratch.org/alfs/wiki/SupportedBooks
72
73 config BOOK
74 string "Loc of working copy (mandatory)"
75 default "**EDIT ME**"
76 depends WORKING_COPY
77 help
78 #-- The full path to a local copy of the book XML sources
79 #
80 #--- End BOOK version
81
82 #--- CLFS specific params
83 choice
84 prompt "Target architecture"
85 default ARCH_X86
[2639f65]86 depends BOOK_CLFS || BOOK_CLFS2 || BOOK_CLFS3
[a705708]87 help
[c63c0fa]88 #-- Choose the target system base architecture
[a705708]89
90 config ARCH_X86
91 bool "x86"
92
93 config ARCH_MIPS
[c5ff430]94 bool "mips" if !BOOK_CLFS2
[a705708]95
96 config ARCH_PPC
[2035ea1]97 bool "ppc" if BOOK_CLFS
[a705708]98
99 config ARCH_SPARC
[2035ea1]100 bool "sparc" if BOOK_CLFS
[a705708]101
102 config ARCH_ALPHA
[7d6d6f7]103 bool "alpha" if !BOOK_CLFS3
[a705708]104
105 config ARCH_ARM
[a87e07a]106 bool "arm" if !BOOK_CLFS
[2035ea1]107
108 config ARCH_HPPA
109 bool "hppa" if BOOK_CLFS2
[a705708]110 endchoice
111
[9bbf240]112 choice
113 prompt "Hardware Platform"
114 depends BOOK_CLFS3 && ARCH_MIPS
115 default PLATFORM_GENERIC
116 help
[4fa38dd]117 # Choose a destination platform
[9bbf240]118 # Platform specific files will be included
119
120 config PLATFORM_GENERIC
121 bool "Generic platform"
[7d6d6f7]122
[9bbf240]123 config PLATFORM_WRT
124 bool "WRT - MIPS based wireless router" if ARCH_MIPS
125 endchoice
[7d6d6f7]126
[a705708]127 choice
128 prompt "Library"
[02c88a6]129 depends (BOOK_CLFS && !ARCH_ALPHA) || (BOOK_CLFS3 && ARCH_MIPS)
130 default DATA_32
[c63c0fa]131 help
132 #-- Choose the target system libraries type
[a705708]133
134 config DATA_32
[02c88a6]135 bool "32-bit"
[a705708]136
137 config DATA_64
[02c88a6]138 bool "64-bit" if !ARCH_PPC
[a705708]139
140 config DATA_MULTI
[9bbf240]141 bool "multilib" if !(BOOK_CLFS3 && ARCH_MIPS )
[a705708]142 endchoice
143
144 choice
[2035ea1]145 prompt "Processor type"
[650acce]146 depends (BOOK_CLFS || BOOK_CLFS2 || BOOK_CLFS3) && ((ARCH_X86 && !(DATA_64 || DATA_MULTI)) || ARCH_MIPS || ARCH_HPPA || ARCH_ALPHA || (ARCH_SPARC && (DATA_64 || DATA_MULTI)) || (ARCH_ARM && BOOK_CLFS3))
[c63c0fa]147 help
148 #-- Choose the target system processor
[a705708]149
150 config PROC_i486
[02c88a6]151 bool "486 Compatibles" if ARCH_X86
[a705708]152
153 config PROC_i586
[02c88a6]154 bool "Pentium, K6, 586 Compatibles" if ARCH_X86
[a705708]155
156 config PROC_i686
[02c88a6]157 bool "Pentium II, Pentium III, Pentium 4, Athlon, Duron" if ARCH_X86
[a705708]158
159 config PROC_mipsel
[2035ea1]160 bool "MIPS Little Endian" if ARCH_MIPS
[a705708]161
162 config PROC_mips
[2035ea1]163 bool "MIPS Big Endian" if ARCH_MIPS
164
165 config PROC_unknown
[c560e9a]166 bool "Unknown" if ARCH_HPPA || ARCH_ALPHA
[2035ea1]167
168 config PROC_hppa1
169 bool "PA 7000 Series" if ARCH_HPPA
170
171 config PROC_hppa2
172 bool "PA 8000 Series" if ARCH_HPPA
[c560e9a]173
174 config PROC_EV5
175 bool "EV5 Series" if ARCH_ALPHA
176
177 config PROC_EV56
178 bool "EV56 Series" if ARCH_ALPHA
179
180 config PROC_PCA56
181 bool "PCA56 Series" if ARCH_ALPHA
182
183 config PROC_PCA57
184 bool "PCA57 Series" if ARCH_ALPHA
185
186 config PROC_EV6
187 bool "EV6 Series" if ARCH_ALPHA
188
189 config PROC_EV67
190 bool "EV67 Series" if ARCH_ALPHA
191
192 config PROC_EV68
193 bool "EV68 Series" if ARCH_ALPHA
[a87e07a]194
195 config PROC_ARM
196 bool "Generic arm, little endian" if ARCH_ARM
197
198 config PROC_ARM5L
199 bool "Generic arm, version 5, little endian" if ARCH_ARM
200
201 config PROC_ARM5B
202 bool "Generic arm, version 5, big endian" if ARCH_ARM
[650acce]203
204 config PROC_ULTRA1
205 bool "UtraSparc" if ARCH_SPARC && (DATA_64 || DATA_MULTI)
206
207 config PROC_ULTRA2
208 bool "UtraSparc2" if ARCH_SPARC && (DATA_64 || DATA_MULTI)
209
210 config PROC_ULTRA3
211 bool "UtraSparc3" if ARCH_SPARC && (DATA_64 || DATA_MULTI)
[a705708]212 endchoice
213
[c63c0fa]214 choice
215 prompt "MIPS 64 ABI"
216 depends BOOK_CLFS3 && ARCH_MIPS && DATA_64
217 default ABI_64
218 help
219 #-- Choose the target system ABI to use
220
221 config ABI_32
222 bool "o32"
223
224 config ABI_N32
225 bool "n32"
226
227 config ABI_64
228 bool "n64"
229 endchoice
230
[a705708]231 config TARGET
232 string
[02c88a6]233 default "i486-pc-linux-gnu" if !BOOK_CLFS3 && PROC_i486
234 default "i586-pc-linux-gnu" if !BOOK_CLFS3 && PROC_i586
235 default "i686-pc-linux-gnu" if !BOOK_CLFS3 && PROC_i686
[c5ff430]236
[02c88a6]237 default "i486-pc-linux-uclibc" if BOOK_CLFS3 && PROC_i486
238 default "i586-pc-linux-uclibc" if BOOK_CLFS3 && PROC_i586
239 default "i686-pc-linux-uclibc" if BOOK_CLFS3 && PROC_i686
[2639f65]240
[02c88a6]241 default "x86_64-unknown-linux-gnu" if ARCH_X86 && (DATA_64 || DATA_MULTI)
[2639f65]242
[02c88a6]243 default "mipsel-unknown-linux-gnu" if !BOOK_CLFS3 && PROC_mipsel && DATA_32
244 default "mips-unknown-linux-gnu" if !BOOK_CLFS3 && PROC_mips && DATA_32
245 default "mips64el-unknown-linux-gnu" if !BOOK_CLFS3 && PROC_mipsel && (DATA_64 || DATA_MULTI)
246 default "mips64-unknown-linux-gnu" if !BOOK_CLFS3 && PROC_mips && (DATA_64 || DATA_MULTI)
[a705708]247
[02c88a6]248 default "mipsel-unknown-linux-uclibc" if BOOK_CLFS3 && PROC_mipsel && DATA_32
[f600e66]249 default "mips-unknown-linux-uclibc" if BOOK_CLFS3 && PROC_mips && DATA_32
[02c88a6]250 default "mips64el-unknown-linux-uclibc" if BOOK_CLFS3 && PROC_mipsel && DATA_64
251 default "mips64-unknown-linux-uclibc" if BOOK_CLFS3 && PROC_mips && DATA_64
[a705708]252
[02c88a6]253 default "powerpc-unknown-linux-gnu" if ARCH_PPC && DATA_32
254 default "powerpc64-unknown-linux-gnu" if ARCH_PPC && DATA_MULTI
[a705708]255
[02c88a6]256 default "sparc-unknown-linux-gnu" if ARCH_SPARC && DATA_32
257 default "sparc64-unknown-linux-gnu" if ARCH_SPARC && (DATA_64 || DATA_MULTI)
[2035ea1]258
[c560e9a]259 default "hppa-unknown-linux-gnu" if PROC_unknown && ARCH_HPPA
[02c88a6]260 default "hppa1.1-unknown-linux-gnu" if PROC_hppa1
261 default "hppa2.0-unknown-linux-gnu" if PROC_hppa2
262
[b339c94]263 default "arm-unknown-linux-gnueabi" if ARCH_ARM && BOOK_CLFS2
[a87e07a]264
265 default "arm-unknown-linux-uclibc" if PROC_ARM
266 default "armv5l-unknown-linux-uclibc" if PROC_ARM5L
267 default "armv5b-unknown-linux-uclibc" if PROC_ARM5B
[c560e9a]268
269 default "alpha-unknown-linux-gnu" if PROC_unknown && ARCH_ALPHA
270 default "alphaev5-unknown-linux-gnu" if PROC_EV5
271 default "alphaev56-unknown-linux-gnu" if PROC_EV56
272 default "alphapca56-unknown-linux-gnu" if PROC_PCA56
273 default "alphapca57-unknown-linux-gnu" if PROC_PCA57
274 default "alphaev6-unknown-linux-gnu" if PROC_EV6
275 default "alphaev67-unknown-linux-gnu" if PROC_EV67
276 default "alphaev68-unknown-linux-gnu" if PROC_EV68
[a705708]277
278 config TARGET32
279 string
280 depends DATA_MULTI
281 default "i686-pc-linux-gnu" if ARCH_X86
[02c88a6]282 default "mipsel-unknown-linux-gnu" if PROC_mipsel
283 default "mips-unknown-linux-gnu" if PROC_mips
[a705708]284 default "sparc-unknown-linux-gnu" if ARCH_SPARC
285 default "powerpc-unknown-linux-gnu" if ARCH_PPC
286
[9bbf240]287 config PLATFORM
288 string
[650acce]289 default "GENERIC" if (!BOOK_CLFS3) || PLATFORM_GENERIC
290 default "WRT - Wireless Router" if PLATFORM_WRT
291
292 config SPARC64_PROC
293 string
294 default "none" if !(ARCH_SPARC && (DATA_64 || DATA_MULTI))
295 default "1" if PROC_ULTRA1
296 default "2" if PROC_ULTRA2
297 default "3" if PROC_ULTRA3
[9bbf240]298
[a705708]299 config ARCH
300 string
[02c88a6]301 default "x86" if ARCH_X86 && (DATA_32 || BOOK_CLFS2 || BOOK_CLFS3)
302 default "x86_64" if ARCH_X86 && DATA_MULTI
303 default "x86_64-64" if ARCH_X86 && DATA_64
[a705708]304
[9bbf240]305 default "wrt" if PLATFORM_WRT && BOOK_CLFS3
306
[02c88a6]307 default "mips" if ARCH_MIPS && (DATA_32 || BOOK_CLFS3)
308 default "mips64" if ARCH_MIPS && DATA_MULTI
309 default "mips64-64" if ARCH_MIPS && DATA_64 && BOOK_CLFS
[c5ff430]310
[9bbf240]311
[02c88a6]312 default "ppc" if ARCH_PPC && DATA_32
313 default "ppc64" if ARCH_PPC && DATA_MULTI
[a705708]314
[02c88a6]315 default "sparc" if ARCH_SPARC && DATA_32
316 default "sparc64" if ARCH_SPARC && DATA_MULTI
317 default "sparc64-64" if ARCH_SPARC && DATA_64
318
319 default "alpha" if ARCH_ALPHA
320 default "arm" if ARCH_ARM
321 default "hppa" if ARCH_HPPA
[7d6d6f7]322
[c5ff430]323 config MIPS_LEVEL
324 string
325 depends BOOK_CLFS3 && ARCH_MIPS
326 default "1" if DATA_32
327 default "3" if DATA_64
328
[a99baaf]329 config ABI
330 string
331 depends BOOK_CLFS3
[71a527c]332 default "-m32" if ARCH_X86 || ARCH_ARM
[c63c0fa]333# default "-m64" if NO USED YET IN THE BOOK
334 default "-mabi=32" if ABI_32 || (ARCH_MIPS && DATA_32)
335 default "-mabi=n32" if ABI_N32
336 default "-mabi=64" if ABI_64
[2035ea1]337
[9436828]338 config ENDIAN
339 string
340 depends BOOK_CLFS3 && (ARCH_MIPS || ARCH_ARM)
341 default "little" if PROC_mipsel || PROC_ARM || PROC_ARM5L
342 default "big" if PROC_mips || PROC_ARM5B
343
[a705708]344 choice
345 prompt "Build method"
346 depends BOOK_CLFS
347 help
348 #-- What build method should be used: a chroot jail or minimal boot system
349 # Review the Cross-LFS book chap6 "TO BOOT OR CHROOT" for a full explanation.
350
351 config BUILD_CHROOT
352 bool "chroot"
353
354 config BUILD_BOOT
355 bool "boot"
356 endchoice
357
358 config METHOD
359 string
360 default "chroot" if BUILD_CHROOT
361 default "boot" if BUILD_BOOT
362
363 config BOOT_CONFIG
364 string "BOOT kernel config file (mandatory)"
365 default "***EDIT ME***"
366 depends on BUILD_BOOT
367 help
368 #-- If METHOD=boot, location of boot-kernel config file
369 # The config file will be copied to ${BUILD_DIR}/sources
370 # and renamed 'bootkernel-config'
371 #
372 # NOTE: this setting is required
373 #--- End CLFS specific params
374
375 #--- HLFS specific params
[401f81e]376 config GRSECURITY_HOST
[a705708]377 bool "Building on grsecurity enabled host?"
378 default n
379 depends on BOOK_HLFS
380 help
381 #-- If your build system has grsecurity patches applied
382 # you MUST enable this switch.
383
384 choice
385 prompt "Library"
386 depends on BOOK_HLFS
387 help
388 #-- Which library model to use: uClibc/glibc
389
390 config LIB_GLIBC
391 bool "glibc"
392
393 config LIB_UCLIBC
394 bool "uClibc"
395 endchoice
396
397 config MODEL
398 depends on BOOK_HLFS
399 string
400 default "glibc" if LIB_GLIBC
401 default "uclibc" if LIB_UCLIBC
[5c575e1]402
403 choice
404 prompt "Kernel series"
405 depends on BOOK_HLFS
406 help
407 #-- Which kernel series to use: 2.6/2.4
408
409 config KERNEL_26
410 bool "2.6 kernel series"
411
412 config KERNEL_24
413 bool "2.4 kernel series"
414 endchoice
415
416 config KERNEL
417 depends on BOOK_HLFS
418 string
419 default "2.6" if KERNEL_26
420 default "2.4" if KERNEL_24
[d035526]421
[6d5844c]422# menu "HLFS Additional Features"
423# depends on BOOK_HLFS
424#
425# config SET_SSP
426# bool "Stack-smashing protector"
427# default y
428#
429# config SET_ASLR
430# bool "Address-space layout randomization"
431# default y
432#
433# config SET_PAX
434# bool "PaX-aware ELF executables and kernel"
435# default y
436#
437# config SET_HARDENED_TMP
438# bool "Hardened temporary files creation"
439# default y
440#
441# config SET_WARNINGS
442# bool "Additional warnings"
443# default y
444#
445# config SET_MISC
446# bool "Miscellaneous features"
447# default y
448#
449# config SET_BLOWFISH
450# bool "Blowfish passwords"
451# default y
452# endmenu
[d035526]453
454 config SSP
[249fa6a]455# depends on SET_SSP
[d035526]456 string
457 default ",ssp,"
458
459 config ASLR
[249fa6a]460# depends on SET_ASLR
[d035526]461 string
462 default ",aslr,"
463
464 config PAX
[249fa6a]465# depends on SET_PAX
[d035526]466 string
467 default ",pax,"
468
469 config HARDENED_TMP
[249fa6a]470# depends on SET_HARDENED_TMP
[d035526]471 string
472 default ",hardened_tmp,"
473
474 config WARNINGS
[249fa6a]475# depends on SET_WARNINGS
[d035526]476 string
477 default ",warnings,"
478
479 config MISC
[249fa6a]480# depends on SET_MISC
[d035526]481 string
482 default ",misc,"
483
484 config BLOWFISH
[249fa6a]485# depends on SET_BLOWFISH
[d035526]486 string
487 default ",blowfish,"
[a705708]488 #--- End HLFS specific params
489
[53f291f]490 #--- Custom Tools support
491 config CUSTOM_TOOLS
[3e7ceed]492 bool "Add custom tools support"
[53f291f]493 default n
[2180d05]494# depends on !BOOK_BLFS
[53f291f]495 help
496 #--- Activating this option additional packages you create
[3e7ceed]497 # will be installed after finished the xLFS system build.
[53f291f]498 #
499 #--- End Custom Tools support
500
[4965fa8]501 #--- blfs-tool Support
502 config BLFS_TOOL
503 bool "Add blfs-tool support"
504 default n
[2180d05]505# depends on !BOOK_BLFS && !BOOK_CLFS3
506 depends on !BOOK_CLFS3
[4965fa8]507 help
[339fd84]508 #--- Activating this option will install additional
[99d04a0]509 # packages needed to use blfs-tool when booting
[339fd84]510 # the new system.
[4965fa8]511 #
512 # The blfs-tool files will be installed under
513 # $BUILD_DIR/blfs_root.
514
[4fa38dd]515 # After booting the new xLFS system, but before using
516 # blfs-tool, you should create a user account and
517 # move the /blfs-root directory to the user's home,
518 # making them the directory and files owner.
[4965fa8]519 #
[4fa38dd]520 # Also, be sure to give the user read and write
521 # privileges on the $TRACKING_DIR directory and
[7b84722]522 # the files that it contains.
[4965fa8]523 #
[4fa38dd]524 # Don't forget to configure sudo properly.
[4965fa8]525
526 choice
527 prompt "BLFS Release"
528 default BLFS_SVN
529 depends on BLFS_TOOL
530 config BLFS_SVN
531 bool "BLFS SVN"
532 help
533 #-- Current development version as in trunk
534
535 config BLFS_BRANCH
536 bool "BLFS Branch or stable book"
537 help
[4fa38dd]538 #-- A supported SVN branch or stable book release
[4965fa8]539 endchoice
540
541 config BLFS_BRANCH_ID
542 string "BLFS Book Version (mandatory)"
543 default "**EDIT ME**"
544 depends on BLFS_BRANCH
545 help
[4fa38dd]546 #-- A list of valid branches and stable book IDs is available here.
[4965fa8]547 # http://wiki.linuxfromscratch.org/alfs/wiki/SupportedBooks
548
549 menu "blfs-tool dependencies"
550 depends on BLFS_TOOL
551
552 config DEP_LIBXML
553 bool "libxml2 (required)"
554 default y
555
556 config DEP_LIBXSLT
557 bool "libxslt (required)"
558 default y
559
[045b2dc]560 config DEP_TIDY
561 bool "tidy (required)"
562 default y
563
564 config DEP_DBXML
565 bool "DocBook XML DTD (required)"
566 default y
567
[e05fba2]568 #config DEP_DBXSL
569 #bool "DocBook XSL (required)"
570 #default y
[4965fa8]571
[d09e32a]572 config DEP_LYNX
[2507cf7]573 bool "lynx (optional, for reading the generated book)"
[4965fa8]574 default y
575
576 config DEP_SUDO
577 bool "sudo (recommended)"
578 default y
579
580 config DEP_WGET
581 bool "wget (recommended)"
582 default y
583
584 config DEP_GPM
585 bool "GPM (optional, see help)"
586 default y
587 help
[2507cf7]588 #-- if you install gpm, it will be started
589 # automatically on boot. You'll have to edit
590 # /etc/sysconfig/mouse for your system
[339fd84]591
592 config DEP_SVN
593 bool "SVN client (optional, see help)"
594 default n
595 help
[2507cf7]596 #-- Subversion is needed for updating the book
597 # sources. It is built without ssl support,
598 # so you may have to rebuild it afterwards.
599
[4965fa8]600 endmenu
601 #--- End blfs-tool Support
602
[d3ce173]603 #--- BLFS specific params
604 config BLFS_ROOT
605 string "Directory root"
[2180d05]606# default "$HOME/blfs_root" if BOOK_BLFS
[4965fa8]607 default "/blfs_root" if BLFS_TOOL
[2180d05]608# depends on BOOK_BLFS || BLFS_TOOL
609 depends on BLFS_TOOL
[d3ce173]610 help
611 #-- Full path to the directory where all required
612 # files and scripts will be stored.
613
614 config BLFS_XML
615 string "BLFS sources directory"
616 default "blfs-xml"
[2180d05]617# depends on BOOK_BLFS || BLFS_TOOL
618 depends BLFS_TOOL
[d3ce173]619 help
[4fa38dd]620 #-- The directory name under $BLFS_ROOT where the BLFS
621 # book sources will be checkout.
[f4ed135]622
623 config TRACKING_DIR
624 string "Installed packages database directory"
625 default "/var/lib/jhalfs/BLFS"
[2180d05]626# depends on BOOK_BLFS || BLFS_TOOL || CUSTOM_TOOLS
627 depends on BLFS_TOOL || CUSTOM_TOOLS
[f4ed135]628 help
[4fa38dd]629 #-- Full path to the directory where the database of
630 # installed packages will be created.
[f4ed135]631 #
[53f291f]632 # If you are installing blfs-tool on a running xLFS system
[4fa38dd]633 # you MUST create this directory manually.
[53f291f]634 #
[4fa38dd]635 # If you are installing blfs-tool as part of an xLFS build
[53f291f]636 # and/or using the customized scripts feature, you will
[4fa38dd]637 # need to fix this directory's permissions after booting
[53f291f]638 # the new system.
[4965fa8]639 #
[f4ed135]640 # Note that the user that will build the packages must
[4fa38dd]641 # have read and write privileges on this directory.
[d3ce173]642 #--- End BLFS specific params
[53f291f]643
[a705708]644#--- End BOOK Settings
645endmenu
646
647menu "--- General Settings"
[2180d05]648# depends on !BOOK_BLFS
[a705708]649
650 #--- Set User Account
651 config CONFIG_USER
[962793a]652 bool "Change the default user/group and homedir for this build"
[a705708]653 default n
654 help #-- Unprivileged user and group name
[4fa38dd]655 # If you do not have the privilege to create/delete
656 # users and groups you can specify your own
657 # user ID for the build
[a705708]658 #
659 # default values for each book
[962793a]660 # LFS lfs
661 # CLFS* clfs
662 # HLFS hlfs
663 #
[4fa38dd]664 # Also, if your host places users' home dirs into a
[962793a]665 # directory other than /home you can specify it here.
[a705708]666
667 config DEF_USER
668 string
669 default "lfs" if BOOK_LFS
[2639f65]670 default "clfs" if BOOK_CLFS || BOOK_CLFS2 || BOOK_CLFS3
[a705708]671 default "hlfs" if BOOK_HLFS
672
673 config SET_USER
674 string "User account"
675 depends CONFIG_USER
676 default DEF_USER
677
678 config CONFIG_GROUP
679 bool "Set Group?"
680 default n
681 depends CONFIG_USER
682
683 config SET_GROUP
684 string "GROUP account"
685 depends CONFIG_GROUP
686 default DEF_USER
687
[962793a]688 config CONFIG_HOME
689 bool "Set home dir?"
690 default n
691 depends CONFIG_USER
692
693 config SET_HOME
[4fa38dd]694 string "Path to the directory under which the user's home directory will be created"
[962793a]695 depends CONFIG_HOME
696 default "/home"
697
[a705708]698 config LUSER
699 string
700 default DEF_USER if !CONFIG_USER
701 default SET_USER if CONFIG_USER
702
703 config LGROUP
704 string
705 default LUSER if !CONFIG_GROUP
706 default SET_GROUP if CONFIG_GROUP
[962793a]707
708 config LHOME
709 string
710 default "/home" if !CONFIG_HOME
711 default SET_HOME if CONFIG_HOME
[a705708]712 #--- End Set User Account
713
714 config BUILDDIR
715 string "Build Directory"
716 default "/mnt/build_dir"
717 help
718 #-- The directory where the created system will be located.
[38ae01f]719 # NOTE: A working directory named jhalfs will be created
720 # here, so ensure this does not conflict with the jhalfs
721 # source directory.
[a705708]722
[401f81e]723 config GETPKG
[a705708]724 bool "Retrieve source files"
725 default n
726 help
[4fa38dd]727 #-- Download all packages and patches required by the selected book
[a705708]728 # NOTE: Looks for files in the local archive defined by SRC_ARCHIVE
[4fa38dd]729 # first and if necessary retrieves them from the 'net.
730 # Files will be transferred to $BUILDDIR/sources.
[a705708]731
732 config SRC_ARCHIVE
733 string "Package Archive Directory"
734 default "$SRC_ARCHIVE"
[401f81e]735 depends GETPKG
[a705708]736 help
[4fa38dd]737 #-- A local archive for packages/files (not $BUILDDIR/sources)
[a705708]738 # Any missing file will be downloaded and archived here,
[4fa38dd]739 # if the user has the right privileges.
[a705708]740
[de63126]741 config RETRYSRCDOWNLOAD
742 bool "Retry on 'connection refused' failure"
743 default n
744 depends GETPKG
745 help
746 #-- Attempt to download a source package again if it fails
747 # with a 'connection refused' error. This can happen on
748 # servers that are overloaded.
749
750 config RETRYDOWNLOADCNT
751 int "Number of retry attempts on download failures"
752 default 20
753 depends GETPKG
754 help
[4fa38dd]755 #-- Number of times to retry a failed download.
[de63126]756
757 config DOWNLOADTIMEOUT
758 int "Download timeout (in seconds)"
759 default 30
760 depends GETPKG
761 help
762 #-- Number of seconds to wait for a download to start before
763 # timing out.
764
[4da2512]765 config SERVER
766 string "FTP mirror"
767 default "ftp://ftp.lfs-matrix.net"
768 depends GETPKG
769 help
770 #-- FTP mirror to download packages and patches if not found
771 # in $SRC_ARCHIVE
[4fa38dd]772 # As a last resort, the files will downloaded from upstream,
[4da2512]773 # if possible.
774
[401f81e]775 config RUNMAKE
[a705708]776 bool "Run the makefile"
777 default n
778 help
779 #-- Automatically run the makefile once it has been created
780
[401f81e]781 config CLEAN
[a705708]782 bool "Rebuild files"
783 default n
784 help
785 #-- Clean the build directory before performing any other task.
786 # The directory is cleaned only if it was populated by a
787 # previous JHALFS run.
788 #
789
790#--- End General Settings
791endmenu
792
793menu "--- Build Settings"
[2180d05]794# depends on !BOOK_BLFS
[a705708]795
796 #--- Test Suites
797 config CONFIG_TESTS
798 bool "Run testsuites"
[0536270]799 depends !BOOK_CLFS2 && !BOOK_CLFS3
[401f81e]800 default y
[a705708]801 help
802 #-- Run test suites
803 #
[7072e1f]804 # You will have to select between:
[a705708]805 #
806 # - Only final system Glibc, GCC and Binutils testsuites
807 # - All final system testsuites
808 # - Both temporary tools and final system testsuites
809 #
[7072e1f]810 # HLFS and CLFS have no testsuites available in the
[a705708]811 # temporary tools phase
812
[7072e1f]813 # You will be prompted also about the "flavour" of the
[a705708]814 # testsuites run:
815 #
816 # - Don't stop on test suite failures
817 # - Abort the build at the first test suite failure
818 #
819
820 choice
[8e3ccf7]821 prompt "Tests level"
[a705708]822 depends CONFIG_TESTS
[7072e1f]823 default TST_1
[a705708]824
825 config TST_1
[7072e1f]826 bool "Only final system Glibc, GMP, MPFR, GCC and Binutils testsuites"
[a705708]827
828 config TST_2
829 bool "All final system testsuites"
830
831 config TST_3
832 bool "Both temporary tools and final system testsuites" if !BOOK_HLFS && !BOOK_CLFS
833 endchoice
834
835 config TEST
836 int
837 default "0" if !CONFIG_TESTS
838 default "1" if TST_1
839 default "2" if TST_2
840 default "3" if TST_3
841
842 choice
[8e3ccf7]843 prompt "Flavour"
[a705708]844 depends CONFIG_TESTS
845
846 config NO_BOMB
[4fa38dd]847 bool "Don't stop on testsuite failures"
[a705708]848
849 config BOMB
[4fa38dd]850 bool "Abort the build on the first testsuite failure"
[a705708]851 endchoice
852
853 config BOMB_TEST
[401f81e]854 bool
[8e3ccf7]855 default n if NO_BOMB
856 default y if BOMB
[401f81e]857
[a705708]858 #--- End Test Suites
859
[7072e1f]860 #--- Package Management
861 config PKGMNGT
862 bool "Package management"
863 depends BOOK_LFS
864 default n
865 help
866 #-- Use package management
867 #
868 # If set, the packages in the final phase are built
[4fa38dd]869 # in a separate directory, PKG_DEST.
[7072e1f]870 # You should provide a bash function for packing
871 # and installing the package.
[4fa38dd]872 # Also, you have to provide the instructions
[7072e1f]873 # to build the package manager during the
874 # temporary tools phase, in the form of a
875 # sect1 of the book identical to a package
876 # sect1. See README.PACKAGE_MANAGEMENT
877 #
[4fa38dd]878 # For now, this only works with LFS
[7072e1f]879
880 #--- End package management
881
[93346ee]882 #--- Installed files logs
883 config INSTALL_LOG
[4fa38dd]884 bool "Create a log of installed files for each package"
[93346ee]885 default n
886 help
887 #-- Select this if you want to create logs of the files
888 # installed by each package on the final system.
889
890 #--- End Installed files logs
891
[a705708]892 #--- FSTAB
893 config HAVE_FSTAB
894 bool "Use a custom fstab file"
895 default n
896 help
[4fa38dd]897 #-- Select this if you have an fstab file with entries
898 # for the target system
[a705708]899
900 config FSTAB
901 string "Fstab file (optional)"
902 default "***EDIT ME***"
903 depends on HAVE_FSTAB
904 help
905 #-- The location of fstab file (if empty, a template is created)
906 #--- End FSTAB
907
908 #--- Kernel
909 config CONFIG_BUILD_KERNEL
910 bool "Build the kernel"
911 default n
912 help
913 #-- Select this option if you wish to build the kernel.
914 #
915 # You will be prompted for the full path to the .config
916 # file. It will be copied to the 'sources' directory and
[7072e1f]917 # renamed kernel-config
[a705708]918
919 config CONFIG
920 string "Kernel config file"
921 default "***EDIT ME***"
922 depends on CONFIG_BUILD_KERNEL
923 help
924 #-- Fully qualified path to a kernel config file
925 # The config file will be copied to ${BUILD_DIR}/sources
926 # and renamed 'kernel-config'
927 #--- End Kernel
928
[401f81e]929 config STRIP
[a705708]930 bool "Strip Installed Binaries/Libraries"
931 default y
[b230bd6]932 depends on !BOOK_CLFS3
[a705708]933
[401f81e]934 config VIMLANG
[a705708]935 bool "Install vim-lang package"
[11b4d99]936 default n
[1b9ceec]937 depends on !BOOK_HLFS && !BOOK_CLFS3
[a705708]938 help
[401f81e]939 #-- Install the optional vim-lang package
[7072e1f]940 # NOTE: This option is obsolete with the 7.3 release of Vim
941 # which is included in all recent releases of LFS.
[a705708]942
[75d6d1c]943 config NO_PROGRESS_BAR
944 bool "DO NOT use/display progress_bar "
945 default n
946 help
[7072e1f]947 #-- Do not use the progress bar routine. On slower machines
948 # this function consumes precious CPU cycles.
[75d6d1c]949
[a705708]950 config TIMEZONE
951 string "TimeZone"
952 default "GMT"
953 help
954 #-- The timezone as output by tzselect
955 # This will be copied to /etc/localtime
956
957 config LANG
958 string "Language"
959 default "$LANG"
960 help
[b339c94]961 #-- LANG variable set in /etc/profile
962 # See http://sourceware.org/git/?p=glibc.git;a=blob;f=localedata/SUPPORTED
963 # for values (or the file localedata/SUPPORTED in glibc tarball)
964
965 config FULL_LOCALE
966 bool "Install the full set of locales"
967 default n
968 help
969 #-- If set to y, the full set of supported locales
970 # will be installed. Otherwise, only the minimal set
971 # necessary for the tests will be installed,
[4fa38dd]972 # together with the locale associated with the
[b339c94]973 # LANG you have chosen, if not in the minimal set.
[a705708]974
975 #--- Groff page
976 choice
977 prompt "Groff page size"
978 default PAGE_LETTER
979 help
980 #-- Page definition for groff: letter or A4
981
982 config PAGE_LETTER
983 bool "letter"
984
985 config PAGE_A4
986 bool "A4"
987 endchoice
988
989 config PAGE
990 string
991 default "letter" if PAGE_LETTER
992 default "A4" if PAGE_A4
993 #--- End Groff page
994
995#--- End Build Settings
996endmenu
997
998menu "--- Advanced Features"
[2180d05]999# depends on !BOOK_BLFS
[a705708]1000
[401f81e]1001 config REPORT
[a705708]1002 bool "Create SBU and disk usage report"
1003 default y
1004
1005 #--- ICA/farce
[401f81e]1006 config COMPARE
[a705708]1007 bool "Run comparison analysis on final stage"
[0536270]1008 depends !BOOK_CLFS2 && !BOOK_CLFS3
[a705708]1009 default n
1010 help
[4fa38dd]1011 #-- Should an iterative comparison analysis be performed?
[a705708]1012 #
1013 # Unless you are familiar with ICA and/or FARCE do not
1014 # select this option
1015 #
1016 # ICA and FARCE are analysis tools for comparing one
1017 # build to the next. Builds mays differ from one iteration
1018 # to another due to the build order and these tools try
1019 # to ferret out those differences by examining the stored
1020 # build logs and binary files.
1021 #
1022 # The scripts are well commented and can be found in ./extras/*
1023 #
1024
1025 config ITERATIONS
[401f81e]1026 int "Number of test runs (2,3,4,5)" if COMPARE
1027 depends on COMPARE
[a705708]1028 range 2 5
1029 default 3
1030
[401f81e]1031 config RUN_ICA
[a705708]1032 bool "ICA testing"
[401f81e]1033 depends on COMPARE
[a705708]1034 default y
1035 help
1036 #-- Run ICA testing
1037
[401f81e]1038 config RUN_FARCE
[a705708]1039 bool "farce testing"
[401f81e]1040 depends on COMPARE
[a705708]1041 default n
1042 help
1043 #-- Run farce testing
1044 #--- End ICA/farce
1045
[4da2512]1046 #--- Optimizations
[0536270]1047if !BOOK_CLFS2 && !BOOK_CLFS3
[a705708]1048 config CONFIG_OPTIMIZE
[4da2512]1049 bool "Use optimization (see help)"
[a705708]1050 default n
1051 help
[4fa38dd]1052 #-- Actual optimization flags MUST be defined in ./optimize/*
1053 # files before activating this option.
[a705708]1054 #
1055 # WARNING: The use of build optimizations may be dangerous.
1056 # You should know what you are doing and be sure that the
1057 # optimization settings listed below are what you want.
1058 # It there are build issues or the system doesn't work as
1059 # expected, please rebuild without optimizations before
1060 # asking for support.
1061
1062 choice
1063 prompt "Optimization level "
1064 default OPT_1
1065 depends CONFIG_OPTIMIZE
1066 help
1067 #-- Optimization values are set in optimize/* files
1068
1069 config OPT_1
1070 bool "Final system only"
1071
1072 config OPT_2
1073 bool "Both temp tools and final system"
1074 endchoice
1075
1076 config OPTIMIZE
1077 int
1078 default "0" if !CONFIG_OPTIMIZE
1079 default "1" if OPT_1
1080 default "2" if OPT_2
[045b2dc]1081endif
[a705708]1082 #--- End Optimizations
1083
[4da2512]1084 #-- Internal Settings
1085 menu "--- Internal Settings (WARNING: for jhalfs developers only)"
1086
1087 config SCRIPT_ROOT
1088 string "Scripts root"
1089 default "jhalfs"
1090
1091 config JHALFSDIR
1092 string "jhalfs directory"
1093 default "$BUILDDIR/$SCRIPT_ROOT"
1094
[93346ee]1095 config LOGDIRBASE
1096 string "Build logs directory basename"
1097 default "logs"
1098
[4da2512]1099 config LOGDIR
1100 string "Build logs directory"
[93346ee]1101 default "$JHALFSDIR/$LOGDIRBASE"
1102
1103 config TESTLOGDIRBASE
1104 string "Test suites logs directory basename"
1105 default "test-logs"
[4da2512]1106
1107 config TESTLOGDIR
1108 string "Test suites logs directory"
[93346ee]1109 default "$JHALFSDIR/$TESTLOGDIRBASE"
1110
1111 config FILELOGDIRBASE
1112 string "Installed files logs directory basename"
1113 default "installed-files"
1114
1115 config FILELOGDIR
1116 string "Installed files logs directory"
1117 default "$JHALFSDIR/$FILELOGDIRBASE"
[4da2512]1118
1119 config ICALOGDIR
1120 string "ICA logs directory"
1121 default "$LOGDIR/ICA"
1122
1123 config FARCELOGDIR
1124 string "farce logs directory"
1125 default "$LOGDIR/farce"
1126
1127 config MKFILE
1128 string "Makefile"
1129 default "$JHALFSDIR/Makefile"
1130
1131 config XSL
1132 string "XSL stylesheet"
1133 default "$PROGNAME.xsl"
1134
1135 config PKG_LST
1136 string "Package contents list"
1137 default "unpacked"
1138
1139 #--- End Internal Settings
1140 endmenu
1141
[a705708]1142#--- End Advanced Features
1143endmenu
[7b6ecc5]1144
[a16f769]1145config REBUILD_MAKEFILE
[7b6ecc5]1146 bool "Rebuild the Makefile (see help)"
1147 default n
[2180d05]1148# depends on !BOOK_BLFS
[7b6ecc5]1149 help
1150 #-- Rebuild the Makefile
1151 #
[7072e1f]1152 # This option allows to rebuild the Makefile after
[7b6ecc5]1153 # customizing the base system build scripts.
1154 #
1155 # See README.CUSTOM for more info about this feature.
1156
Note: See TracBrowser for help on using the repository browser.