source: Config.in@ 6447575

ablfs-more legacy trunk
Last change on this file since 6447575 was f5ecc28, checked in by Pierre Labastie <pierre@…>, 5 years ago

Add code to save work at the end of chapter 5
(and finish the rebuild-makefile change)

  • Property mode set to 100644
File size: 41.1 KB
RevLine 
[aa283c0]1# $Id$
[e5d44f5]2menu "BOOK Settings"
3
[06eddf4]4 depends on !REBUILD_MAKEFILE
5
[e5d44f5]6 #--- BOOK/script
7 choice
8 prompt "Use BOOK"
9 default BOOK_LFS
10 help
11 Select the book where build instructions are retrieved.
12
13 config BOOK_LFS
14 bool "Linux From Scratch System V"
15 help
16 Set up the tools to build LFS with Sys V init.
17
18 config BOOK_LFS_SYSD
19 bool "Linux From Scratch systemd"
20 help
21 Set up the tools to build LFS with systemd init.
22
23 config BOOK_CLFS
24 bool "Cross-Compiled Linux From Scratch"
25 help
26 Set up the tools to build CLFS.
27
28 config BOOK_CLFS2
29 bool "Cross-Compiled Linux From Scratch (Sysroot method)"
30 help
31 Set up the tools to build CLFS by the sysroot method.
32
33 config BOOK_CLFS3
34 bool "Cross-Compiled Linux From Scratch (Embedded Systems)"
35 help
36 Set up the tools to build CLFS with tools for embedded systems.
37
38 config BOOK_BLFS
39 bool "Beyond Linux From Scratch (see help)"
40 help
41 if the (C)LFS system has already been built, install the tools
42 to build BLFS packages.
43 endchoice
44
[39dc04a]45 choice
[f596dde]46 depends on BOOK_BLFS
[39dc04a]47 prompt "Init system"
48
49 config BLFS_SYSV
50 bool "BLFS Sys V"
51 help
52 Extract the Sys V flavour of the BLFS book
53
54 config BLFS_SYSD
55 bool "BLFS systemd"
56 help
57 Extract the systemd flavour of the BLFS book
58
59 endchoice
60
[e5d44f5]61 config INITSYS
62 string
[39dc04a]63 default "sysv" if BOOK_LFS || BLFS_SYSV
64 default "systemd" if BOOK_LFS_SYSD || BLFS_SYSD
[e5d44f5]65
66 config PROGNAME
67 string
68 default "lfs" if BOOK_LFS || BOOK_LFS_SYSD
69 default "clfs" if BOOK_CLFS
70 default "clfs2" if BOOK_CLFS2
71 default "clfs3" if BOOK_CLFS3
72
73 config RUN_ME
74 string
75 default "./jhalfs run" if BOOK_LFS || BOOK_LFS_SYSD || BOOK_CLFS || \
76 BOOK_CLFS2 || BOOK_CLFS_3
77 default "./install-blfs-tools.sh auto" if BOOK_BLFS
78 #--- End BOOK/script
79
80 #--- Book version
81 choice
82 prompt "Release"
83 default relSVN if BOOK_LFS || BOOK_LFS_SYSD || BOOK_BLFS
84 default relGIT if BOOK_CLFS || BOOK_CLFS2 || BOOK_CLFS3
85
86 config relSVN
87 bool "SVN"
88 depends on BOOK_LFS || BOOK_BLFS || BOOK_LFS_SYSD
89 help
90 Current development version as in trunk
91
92 config relGIT
93 bool "GIT"
94 depends on BOOK_CLFS || BOOK_CLFS2 || BOOK_CLFS3
95 help
96 Current development git master branch
97
98 config WORKING_COPY
99 bool "Working Copy"
100 help
101 A local working copy
102
103 config BRANCH
104 bool "Branch or stable book" if !BOOK_CLFS2 && !BOOK_CLFS3
105 help
106 A supported SVN/GIT branch or stable released book
107 endchoice
108
109 config BRANCH_ID
110 string "Branch (preceded by \"branch-\"), stable Version, or tag"
111 default "**EDIT ME**"
[f596dde]112 depends on BRANCH
[e5d44f5]113 help
114 A list of valid branches and stable book IDs is available at
115 http://wiki.linuxfromscratch.org/alfs/wiki/SupportedBooks
116
117 Enter "branch-XXX" for branch XXX, or just "YYY" for stable (or tag)
118 YYY version.
119
120 config BOOK
121 string "Loc of working copy (mandatory)"
122 default "**EDIT ME**"
[f596dde]123 depends on WORKING_COPY
[e5d44f5]124 help
125 The full path to a local copy of the book XML sources
126
127 #--- End BOOK version
128
129 #--- CLFS specific params
130 choice
131 prompt "Target architecture"
132 default ARCH_X86
[f596dde]133 depends on BOOK_CLFS || BOOK_CLFS2 || BOOK_CLFS3
[e5d44f5]134 help
135 Choose the target system base architecture
136
137 config ARCH_X86
138 bool "x86"
139
140 config ARCH_MIPS
141 bool "mips" if !BOOK_CLFS2
142
143 config ARCH_PPC
144 bool "ppc" if BOOK_CLFS
145
146 config ARCH_SPARC
147 bool "sparc" if BOOK_CLFS
148
149 config ARCH_ALPHA
150 bool "alpha" if !BOOK_CLFS3
151
152 config ARCH_ARM
153 bool "arm" if !BOOK_CLFS
154
155 config ARCH_HPPA
156 bool "hppa" if BOOK_CLFS2
157 endchoice
158
159 choice
160 prompt "Hardware Platform"
[f596dde]161 depends on BOOK_CLFS3 && ARCH_MIPS
[e5d44f5]162 default PLATFORM_GENERIC
163 help
164 Choose a destination platform
165 Platform specific files will be included
166
167 config PLATFORM_GENERIC
168 bool "Generic platform"
169
170 config PLATFORM_WRT
171 bool "WRT - MIPS based wireless router" if ARCH_MIPS
172 endchoice
173
174 choice
175 prompt "Library"
[f596dde]176 depends on (BOOK_CLFS && !ARCH_ALPHA) || (BOOK_CLFS3 && ARCH_MIPS)
[e5d44f5]177 default DATA_32
178 help
179 Choose the target system libraries type
180
181 config DATA_32
182 bool "32-bit"
[a705708]183
[e5d44f5]184 config DATA_64
185 bool "64-bit"
186
187 config DATA_MULTI
188 bool "multilib" if !(BOOK_CLFS3 && ARCH_MIPS )
189 endchoice
[a705708]190
[e5d44f5]191 choice
192 prompt "Processor type"
[f596dde]193 depends on (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))
[e5d44f5]194 help
195 Choose the target system processor
[a705708]196
[e5d44f5]197 config PROC_i486
198 bool "486 Compatibles" if ARCH_X86
[a705708]199
[e5d44f5]200 config PROC_i586
201 bool "Pentium, K6, 586 Compatibles" if ARCH_X86
[a705708]202
[e5d44f5]203 config PROC_i686
204 bool "Pentium II, Pentium III, Pentium 4, Athlon, Duron" if ARCH_X86
[a705708]205
[e5d44f5]206 config PROC_mipsel
207 bool "MIPS Little Endian" if ARCH_MIPS
[2035ea1]208
[e5d44f5]209 config PROC_mips
210 bool "MIPS Big Endian" if ARCH_MIPS
[2035ea1]211
[e5d44f5]212 config PROC_unknown
213 bool "Unknown" if ARCH_HPPA || ARCH_ALPHA
[2035ea1]214
[e5d44f5]215 config PROC_hppa1
216 bool "PA 7000 Series" if ARCH_HPPA
[c560e9a]217
[e5d44f5]218 config PROC_hppa2
219 bool "PA 8000 Series" if ARCH_HPPA
[c560e9a]220
[e5d44f5]221 config PROC_EV5
222 bool "EV5 Series" if ARCH_ALPHA
[c560e9a]223
[e5d44f5]224 config PROC_EV56
225 bool "EV56 Series" if ARCH_ALPHA
[c560e9a]226
[e5d44f5]227 config PROC_PCA56
228 bool "PCA56 Series" if ARCH_ALPHA
[c560e9a]229
[e5d44f5]230 config PROC_PCA57
231 bool "PCA57 Series" if ARCH_ALPHA
[c560e9a]232
[e5d44f5]233 config PROC_EV6
234 bool "EV6 Series" if ARCH_ALPHA
[c560e9a]235
[e5d44f5]236 config PROC_EV67
237 bool "EV67 Series" if ARCH_ALPHA
[a87e07a]238
[e5d44f5]239 config PROC_EV68
240 bool "EV68 Series" if ARCH_ALPHA
[a87e07a]241
[e5d44f5]242 config PROC_ARM
243 bool "Generic arm, little endian" if ARCH_ARM
[a87e07a]244
[e5d44f5]245 config PROC_ARM5L
246 bool "Generic arm, version 5, little endian" if ARCH_ARM
[650acce]247
[e5d44f5]248 config PROC_ARM5B
249 bool "Generic arm, version 5, big endian" if ARCH_ARM
[650acce]250
[e5d44f5]251 config PROC_ULTRA1
252 bool "UtraSparc" if ARCH_SPARC && (DATA_64 || DATA_MULTI)
[650acce]253
[e5d44f5]254 config PROC_ULTRA2
255 bool "UtraSparc2" if ARCH_SPARC && (DATA_64 || DATA_MULTI)
[a705708]256
[e5d44f5]257 config PROC_ULTRA3
258 bool "UtraSparc3" if ARCH_SPARC && (DATA_64 || DATA_MULTI)
259 endchoice
[c63c0fa]260
[e5d44f5]261 choice
262 prompt "MIPS 64 ABI"
[f596dde]263 depends on BOOK_CLFS3 && ARCH_MIPS && DATA_64
[e5d44f5]264 default ABI_64
265 help
266 Choose the target system ABI to use
[c63c0fa]267
[e5d44f5]268 config ABI_32
269 bool "o32"
[c63c0fa]270
[e5d44f5]271 config ABI_N32
272 bool "n32"
[c63c0fa]273
[e5d44f5]274 config ABI_64
275 bool "n64"
276 endchoice
[c5ff430]277
[e5d44f5]278 config TARGET
279 string
280 default "i486-pc-linux-gnu" if !BOOK_CLFS3 && PROC_i486
281 default "i586-pc-linux-gnu" if !BOOK_CLFS3 && PROC_i586
282 default "i686-pc-linux-gnu" if !BOOK_CLFS3 && PROC_i686
[2639f65]283
[e5d44f5]284 default "i486-pc-linux-uclibc" if BOOK_CLFS3 && PROC_i486
285 default "i586-pc-linux-uclibc" if BOOK_CLFS3 && PROC_i586
286 default "i686-pc-linux-uclibc" if BOOK_CLFS3 && PROC_i686
[2639f65]287
[e5d44f5]288 default "x86_64-unknown-linux-gnu" if ARCH_X86 && (DATA_64 || DATA_MULTI)
[a705708]289
[e5d44f5]290 default "mipsel-unknown-linux-gnu" if !BOOK_CLFS3 && PROC_mipsel && DATA_32
291 default "mips-unknown-linux-gnu" if !BOOK_CLFS3 && PROC_mips && DATA_32
292 default "mips64el-unknown-linux-gnu" if !BOOK_CLFS3 && PROC_mipsel && (DATA_64 || DATA_MULTI)
293 default "mips64-unknown-linux-gnu" if !BOOK_CLFS3 && PROC_mips && (DATA_64 || DATA_MULTI)
[a705708]294
[e5d44f5]295 default "mipsel-unknown-linux-uclibc" if BOOK_CLFS3 && PROC_mipsel && DATA_32
296 default "mips-unknown-linux-uclibc" if BOOK_CLFS3 && PROC_mips && DATA_32
297 default "mips64el-unknown-linux-uclibc" if BOOK_CLFS3 && PROC_mipsel && DATA_64
298 default "mips64-unknown-linux-uclibc" if BOOK_CLFS3 && PROC_mips && DATA_64
[a705708]299
[e5d44f5]300 default "powerpc-unknown-linux-gnu" if ARCH_PPC && DATA_32
301 default "powerpc64-unknown-linux-gnu" if ARCH_PPC && (DATA_MULTI || DATA_64)
[2035ea1]302
[e5d44f5]303 default "sparc-unknown-linux-gnu" if ARCH_SPARC && DATA_32
304 default "sparc64-unknown-linux-gnu" if ARCH_SPARC && (DATA_64 || DATA_MULTI)
305
306 default "hppa-unknown-linux-gnu" if PROC_unknown && ARCH_HPPA
307 default "hppa1.1-unknown-linux-gnu" if PROC_hppa1
308 default "hppa2.0-unknown-linux-gnu" if PROC_hppa2
309
310 default "arm-unknown-linux-gnueabi" if ARCH_ARM && BOOK_CLFS2
311
312 default "arm-unknown-linux-uclibc" if PROC_ARM
313 default "armv5l-unknown-linux-uclibc" if PROC_ARM5L
314 default "armv5b-unknown-linux-uclibc" if PROC_ARM5B
315
316 default "alpha-unknown-linux-gnu" if PROC_unknown && ARCH_ALPHA
317 default "alphaev5-unknown-linux-gnu" if PROC_EV5
318 default "alphaev56-unknown-linux-gnu" if PROC_EV56
319 default "alphapca56-unknown-linux-gnu" if PROC_PCA56
320 default "alphapca57-unknown-linux-gnu" if PROC_PCA57
321 default "alphaev6-unknown-linux-gnu" if PROC_EV6
322 default "alphaev67-unknown-linux-gnu" if PROC_EV67
323 default "alphaev68-unknown-linux-gnu" if PROC_EV68
324
325 config TARGET32
326 string
[f596dde]327 depends on DATA_MULTI
[e5d44f5]328 default "i686-pc-linux-gnu" if ARCH_X86
329 default "mipsel-unknown-linux-gnu" if PROC_mipsel
330 default "mips-unknown-linux-gnu" if PROC_mips
331 default "sparc-unknown-linux-gnu" if ARCH_SPARC
332 default "powerpc-unknown-linux-gnu" if ARCH_PPC
333
334 config PLATFORM
335 string
336 default "GENERIC" if (!BOOK_CLFS3) || PLATFORM_GENERIC
337 default "WRT - Wireless Router" if PLATFORM_WRT
338
339 config SPARC64_PROC
340 string
341 default "none" if !(ARCH_SPARC && (DATA_64 || DATA_MULTI))
342 default "1" if PROC_ULTRA1
343 default "2" if PROC_ULTRA2
344 default "3" if PROC_ULTRA3
345
346 config ARCH
347 string
348 default "x86" if ARCH_X86 && (DATA_32 || BOOK_CLFS2 || BOOK_CLFS3)
349 default "x86_64" if ARCH_X86 && DATA_MULTI
350 default "x86_64-64" if ARCH_X86 && DATA_64
351
352 default "wrt" if PLATFORM_WRT && BOOK_CLFS3
353
354 default "mips" if ARCH_MIPS && (DATA_32 || BOOK_CLFS3)
355 default "mips64" if ARCH_MIPS && DATA_MULTI
356 default "mips64-64" if ARCH_MIPS && DATA_64 && BOOK_CLFS
357
358
359 default "ppc" if ARCH_PPC && DATA_32
360 default "ppc64" if ARCH_PPC && DATA_MULTI
361 default "ppc64-64" if ARCH_PPC && DATA_64
362
363 default "sparc" if ARCH_SPARC && DATA_32
364 default "sparc64" if ARCH_SPARC && DATA_MULTI
365 default "sparc64-64" if ARCH_SPARC && DATA_64
366
367 default "alpha" if ARCH_ALPHA
368 default "arm" if ARCH_ARM
369 default "hppa" if ARCH_HPPA
370
371 config MIPS_LEVEL
372 string
[f596dde]373 depends on BOOK_CLFS3 && ARCH_MIPS
[e5d44f5]374 default "1" if DATA_32
375 default "3" if DATA_64
376
377 config ABI
378 string
[f596dde]379 depends on BOOK_CLFS3
[e5d44f5]380 default "-m32" if ARCH_X86 || ARCH_ARM
381# default "-m64" if NO USED YET IN THE BOOK
382 default "-mabi=32" if ABI_32 || (ARCH_MIPS && DATA_32)
383 default "-mabi=n32" if ABI_N32
384 default "-mabi=64" if ABI_64
385
386 config ENDIAN
387 string
[f596dde]388 depends on BOOK_CLFS3 && (ARCH_MIPS || ARCH_ARM)
[e5d44f5]389 default "little" if PROC_mipsel || PROC_ARM || PROC_ARM5L
390 default "big" if PROC_mips || PROC_ARM5B
391
392 choice
393 prompt "Build method"
[f596dde]394 depends on BOOK_CLFS
[e5d44f5]395 help
396 What build method should be used: a chroot jail or minimal boot
397 system. Review the Cross-LFS book chap6 "TO BOOT OR CHROOT" for
398 a full explanation.
399
400 config BUILD_CHROOT
401 bool "chroot"
402
403 config BUILD_BOOT
404 bool "boot"
405 endchoice
406
407 config METHOD
408 string
409 default "chroot" if BUILD_CHROOT
410 default "boot" if BUILD_BOOT
411
412 config BOOT_CONFIG
413 string "BOOT kernel config file (mandatory)"
414 default "***EDIT ME***"
415 depends on BUILD_BOOT
416 help
417 If METHOD=boot, location of boot-kernel config file
418 The config file will be copied to ${BUILD_DIR}/sources
419 and renamed 'bootkernel-config'
420 NOTE: this setting is required
421 #--- End CLFS specific params
422
423 #--- blfs-tool Support
424 config BLFS_TOOL
425 bool "Add blfs-tool support"
426 default n
427 depends on !BOOK_CLFS3 && !BOOK_BLFS
428 help
429 Activating this option will install additional packages needed
430 to use blfs tools after booting the new system.
431 The blfs-tool files will be installed under $BUILD_DIR/blfs_root
432 (see below).
433 After booting the new xLFS system, but before using the blfs tools,
434 you should create a user account, move the /blfs_root directory
435 to that user's home, and change its ownership to that of the user.
436 Also, be sure to give the user read and write access on the
437 $TRACKING_DIR directory and the files that it contains.
438 Don't forget to configure sudo properly on the new system.
439
440 config DUMMY # Avoid indenting the items below
441 bool
442
443 if BLFS_TOOL
444 menu "blfs-tool dependencies"
445
446 config DEP_LIBXML
447 bool "libxml2 (required)"
448 default y
449
450 config DEP_LIBXSLT
451 bool "libxslt (required)"
452 default y
453
454 config DEP_DBXML
455 bool "DocBook XML DTD (required)"
456 default y
457
458 config DEP_LYNX
459 bool "lynx (optional, for reading the generated book)"
460 default y
461
462 config DEP_SUDO
463 bool "sudo (recommended)"
464 default y
465
466 config DEP_WGET
467 bool "wget (recommended)"
468 default y
469
470 config DEP_GPM
471 bool "GPM (optional, see help)"
472 default n
473 help
474 if you install gpm, it will be started
[90f5b6d]475 automatically on boot. It allows copy-paste
476 while Xorg is not installed.
[e5d44f5]477
478 config DEP_SVN
479 bool "SVN client (optional, see help)"
480 default n
481 help
482 Subversion is needed for updating the book
[90f5b6d]483 sources. You do not need it if building a
484 stable book.
[e5d44f5]485
486 endmenu
487
488 choice
489 prompt "BLFS Release"
490 default BLFS_SVN
491
492 config BLFS_SVN
493 bool "BLFS SVN"
494 help
495 Current development version as in trunk
496
497 config BLFS_WORKING_COPY
498 bool "BLFS working copy"
499 help
500 A local working copy of the BLFS book.
501
502 config BLFS_BRANCH
503 bool "BLFS Branch or stable book"
504 help
505 A supported SVN branch or stable book release
506 endchoice
507
508 config BLFS_WC_LOCATION
509 string "Location of the local BLFS working copy (mandatory)"
510 default "**EDIT ME**"
511 depends on BLFS_WORKING_COPY
512 help
[506120ee]513 Full path to the BLFS book working copy
[e5d44f5]514
515 config BLFS_BRANCH_ID
516 string "BLFS Book Version (mandatory)"
517 default "**EDIT ME**"
518 depends on BLFS_BRANCH
519 help
520 A list of valid branches and stable book IDs is available at
521 http://wiki.linuxfromscratch.org/alfs/wiki/SupportedBooks.
522 endif
523 #--- End blfs-tool Support
524
525 #--- BLFS params (Used for installing the tools, either after a jhalfs run
526 # or directly)
527 config BLFS_ROOT
528 string "Root of the tools directory (see help)"
529 default "/blfs_root"
530 depends on BLFS_TOOL || BOOK_BLFS
531 help
532 Path to the directory where all required files and scripts
533 will be stored.
534
535 This path must begin with a slash, and:
536 - is relative to the user's HOME directory when installing the
537 blfs tools on an already existing LFS system.
538 - is relative to the root of the build directory (`/' in chroot)
539 when adding the tools after a jhalfs run
540
541 CAUTION: this directory will be removed if it already exists.
542
543 config BLFS_XML
544 string "BLFS sources directory (internal parameter)"
545 default "blfs-xml"
[f596dde]546 depends on BLFS_TOOL || BOOK_BLFS
[e5d44f5]547 help
548 The directory name under $BLFS_ROOT where the BLFS
549 book sources will be copied or checked out. Do not change that
550 unless you know what you are doing...
[506120ee]551
[f733772]552 config LFS_XML
553 string "LFS sources directory (internal parameter)"
554 default "lfs-xml"
[f596dde]555 depends on BLFS_TOOL || BOOK_BLFS
[f733772]556 help
557 The directory name under $BLFS_ROOT where the LFS
558 book sources will be copied or checked out. Do not change that
559 unless you know what you are doing...
560
[506120ee]561 choice
562 prompt "LFS Release"
[f596dde]563 default LFS_relSVN
564 depends on BOOK_BLFS
[506120ee]565
566 config LFS_relSVN
567 bool "LFS SVN"
568 help
569 Current development version as in trunk
570
571 config LFS_WORKING_COPY
572 bool "LFS working copy"
573 help
574 A local working copy of the LFS book.
575
576 config LFS_BRANCH
577 bool "LFS Branch or stable book"
578 help
579 A supported SVN branch or stable book release
580 endchoice
581
582 config BLFS_LFS_BOOK
583 string "Location of the local LFS working copy (mandatory)"
584 default "**EDIT ME**"
585 depends on LFS_WORKING_COPY
586 help
587 Full path to the LFS book working copy"
588
589 config BLFS_LFS_BRANCH_ID
590 string "LFS Book Version (mandatory)"
591 default "**EDIT ME**"
592 depends on LFS_BRANCH
593 help
594 A list of valid branches and stable book IDs is available at
595 http://wiki.linuxfromscratch.org/alfs/wiki/SupportedBooks.
[e5d44f5]596 # End of BLFS parameters
597
598 #--- Custom Tools support
599 config CUSTOM_TOOLS
[f596dde]600 depends on !BOOK_BLFS
[e5d44f5]601 bool "Add custom tools support"
602 default n
603 help
604 Activating this option additional packages you create
605 will be installed after finished the xLFS system build.
606 #--- End Custom Tools support
607
608 #--- This direcotry is needed for blfs tools installation and custom tools
609 # As well.
610 config TRACKING_DIR
611 string "Installed packages database directory"
612 default "/var/lib/jhalfs/BLFS"
613 depends on BOOK_BLFS || BLFS_TOOL || CUSTOM_TOOLS
614 help
615 Full path to the directory where the database of
616 installed packages will be created.
617
618 If the blfs tools are installed on a running xLFS system,
619 the user must have enough privileges to create this directory.
620 It may be necessary to create the /var/lib/jhalfs directory as
621 root, and make it writable by the user before running this tool.
622
623 If you are installing the blfs tools as part of an xLFS build
624 and/or using the customized scripts feature, you will
625 need to fix this directory's permissions after booting
626 the new system.
627
628 Note that the user that will build the packages must
629 have read and write access to this directory.
[53f291f]630
[a705708]631#--- End BOOK Settings
632endmenu
633
[e5d44f5]634menu "General Settings"
[06eddf4]635depends on !BOOK_BLFS && !REBUILD_MAKEFILE
[e5d44f5]636
[b7583ec]637 #--- {C,H,}LFS User Account
638
639 config LUSER
[e5d44f5]640 string
641 default "lfs" if BOOK_LFS || BOOK_LFS_SYSD
642 default "clfs" if BOOK_CLFS || BOOK_CLFS2 || BOOK_CLFS3
643 default "hlfs" if BOOK_HLFS
644
645 config LGROUP
646 string
[b7583ec]647 default LUSER
[e5d44f5]648
649 config LHOME
650 string
[b7583ec]651 default "/home"
652
[e5d44f5]653 #--- End Set User Account
654
655 config BUILDDIR
656 string "Build Directory"
657 default "/mnt/build_dir"
658 help
659 #-- The directory where the created system will be located.
660 # NOTE: A working directory named jhalfs will be created
661 # here, so ensure this does not conflict with the jhalfs
662 # source directory.
663
664 config GETPKG
665 bool "Retrieve source files"
666 default n
667 help
668 #-- Download all packages and patches required by the selected book
669 # NOTE: Looks for files in the local archive defined by SRC_ARCHIVE
670 # first and if necessary retrieves them from the 'net.
671 # Files will be transferred to $BUILDDIR/sources.
672
673 config SRC_ARCHIVE
674 string "Package Archive Directory"
675 default "$SRC_ARCHIVE"
[f596dde]676 depends on GETPKG
[e5d44f5]677 help
678 #-- A local archive for packages/files (not $BUILDDIR/sources)
679 # Any missing file will be downloaded and archived here,
680 # if the user has the right privileges.
681
682 config RETRYSRCDOWNLOAD
683 bool "Retry on 'connection refused' failure"
684 default n
[f596dde]685 depends on GETPKG
[e5d44f5]686 help
687 #-- Attempt to download a source package again if it fails
688 # with a 'connection refused' error. This can happen on
689 # servers that are overloaded.
690
691 config RETRYDOWNLOADCNT
692 int "Number of retry attempts on download failures"
693 default 20
[f596dde]694 depends on GETPKG
[e5d44f5]695 help
696 #-- Number of times to retry a failed download.
697
698 config DOWNLOADTIMEOUT
699 int "Download timeout (in seconds)"
700 default 30
[f596dde]701 depends on GETPKG
[e5d44f5]702 help
703 #-- Number of seconds to wait for a download to start before
704 # timing out.
705
706 config SERVER
707 string "FTP mirror"
708 default "http://ftp.osuosl.org"
[f596dde]709 depends on GETPKG
[e5d44f5]710 help
711 #-- FTP mirror to download packages and patches if not found
712 # in $SRC_ARCHIVE
713 # As a last resort, the files will downloaded from upstream,
714 # if possible.
715
716 config RUNMAKE
717 bool "Run the makefile"
718 default n
719 help
720 #-- Automatically run the makefile once it has been created
721
722 config CLEAN
723 bool "Rebuild files"
724 default n
725 help
726 #-- Clean the build directory before performing any other task.
727 # The directory is cleaned only if it was populated by a
728 # previous JHALFS run.
[a705708]729
730#--- End General Settings
731endmenu
732
[e5d44f5]733menu "Build Settings"
[06eddf4]734depends on !BOOK_BLFS && !REBUILD_MAKEFILE
[e5d44f5]735
736 #--- Test Suites
737 config CONFIG_TESTS
738 bool "Run testsuites"
[f596dde]739 depends on !BOOK_CLFS2 && !BOOK_CLFS3
[e5d44f5]740 default y
741 help
742 #-- Run test suites
[1d5f3e3]743 # If you select 'y' here:
[e5d44f5]744 # You will have to select between:
[945ccaa]745 # - Only critical final system testsuites
[e5d44f5]746 # - All final system testsuites
747 # - Both temporary tools and final system testsuites
748 # You will be prompted also about the "flavour" of the
749 # testsuites run:
750 # - Don't stop on test suite failures
751 # - Abort the build at the first test suite failure
752 #
[1d5f3e3]753 # Note that in any case, all the test instructions will
754 # be generated. Those which are not wanted will be commented
755 # out. If you select 'n' here, the commented test instructions
756 # do not stop on test suite failures.
757 #
758 # HLFS and CLFS have no testsuites available in the
759 # temporary tools phase
[e5d44f5]760
[945ccaa]761 menu "Test settings"
[f596dde]762 depends on CONFIG_TESTS
[e5d44f5]763 choice
764 prompt "Tests level"
765 default TST_1
766
767 config TST_1
[945ccaa]768 bool "Only final system critical testsuites"
769 help
770 #-- Critical tests:
771 # Only Glibc, Binutils, GMP, MPFR, MPC and GCC
[1d5f3e3]772 # testsuites for final system. The others are commented
773 # out.
[e5d44f5]774
775 config TST_2
776 bool "All final system testsuites"
[1d5f3e3]777 help
778 #-- All final system test suites:
779 # Test instructions for the temporary tools (if available)
780 # are commented out.
[e5d44f5]781
782 config TST_3
[945ccaa]783 bool "All testsuites" if !BOOK_HLFS && !BOOK_CLFS
784 help
785 #-- All tests:
[1d5f3e3]786 # Runs all the testsuites for both temporary tools (if
787 # available) and final system
[e5d44f5]788 endchoice
789
790 choice
791 prompt "Flavour"
792
793 config NO_BOMB
[945ccaa]794 bool "Don't stop on test failures"
[e5d44f5]795
796 config BOMB
[945ccaa]797 bool "Abort the build on the first test failure"
[e5d44f5]798 endchoice
799
[30a8961]800 endmenu # test settings
801
[945ccaa]802 config TEST
803 int
804 default "0" if !CONFIG_TESTS
805 default "1" if TST_1
806 default "2" if TST_2
807 default "3" if TST_3
808
[e5d44f5]809 config BOMB_TEST
810 bool
811 default n if NO_BOMB
812 default y if BOMB
[30a8961]813 #--- End Test Suites
[e5d44f5]814
815 #--- Package Management
816 config PKGMNGT
817 bool "Package management"
[f596dde]818 depends on BOOK_LFS || BOOK_LFS_SYSD
[e5d44f5]819 default n
820 help
821 #-- Use package management
822 #
[945ccaa]823 # If set, you'll have to choose between
824 # two package management styles:
825 # - Build and install:
826 # the packages in the final phase are built
827 # in a separate directory, PKG_DEST.
828 # You should provide a bash function for
[4b2a5fd]829 # packaging and installing the package.
[945ccaa]830 # - Preload a library before install:
831 # Run the install instructions inside a
832 # wrapper command, which monitors the
833 # installed files.
834 #
[e5d44f5]835 # Also, you have to provide the instructions
836 # to build the package manager during the
837 # temporary tools phase, in the form of a
838 # sect1 of the book identical to a package
839 # sect1. See README.PACKAGE_MANAGEMENT
840 #
841 # For now, this only works with LFS
[945ccaa]842 choice
[f596dde]843 depends on PKGMNGT
[945ccaa]844 prompt "Package management style"
845 default PKG_PACK
846
847 config PKG_PACK
848 bool "Build and pack (pacman or dpkg style)"
[e5d44f5]849
[945ccaa]850 config LIB_LOAD
851 bool "Preload a library before installing (porg style)"
852 endchoice
853
854 config WRAP_INSTALL
855 bool
856 default y if LIB_LOAD
857 default n if PKG_PACK
[e5d44f5]858 #--- End package management
859
860 #--- Installed files logs
861 config INSTALL_LOG
862 bool "Create a log of installed files for each package"
863 default n
864 help
865 #-- Select this if you want to create logs of the files
866 # installed by each package on the final system.
867
868 #--- End Installed files logs
869
[945ccaa]870 config STRIP
871 bool "Strip Installed Binaries/Libraries"
872 default n
873 depends on !BOOK_CLFS3
874
[dc7fd7b]875 config DEL_LA_FILES
[d2a7ec8]876 bool "Remove libtool .la files"
[dc7fd7b]877 default y
878 help
879 #-- Remove files libxxx.la installed by libtool. For a rationale
880 # see https://blog.flameeyes.eu/tags/lafiles/
881
[945ccaa]882 config NO_PROGRESS_BAR
[f596dde]883 bool "DO NOT use/display progress_bar"
[945ccaa]884 default n
885 help
886 #-- Do not use the progress bar routine. On slower machines
887 # this function consumes precious CPU cycles.
888
889#--- End Build Settings
890endmenu
891
[6990d80]892menu "System configuration"
[06eddf4]893 depends on !BOOK_BLFS && !REBUILD_MAKEFILE
[945ccaa]894
[e5d44f5]895 #--- FSTAB
896 config HAVE_FSTAB
897 bool "Use a custom fstab file"
898 default n
899 help
900 #-- Select this if you have an fstab file with entries
[945ccaa]901 # for the target system
[a705708]902
[e5d44f5]903 config FSTAB
904 string "Fstab file (optional)"
905 default "***EDIT ME***"
906 depends on HAVE_FSTAB
907 help
908 #-- The location of fstab file (if empty, a template is created)
909 #--- End FSTAB
910
911 #--- Kernel
912 config CONFIG_BUILD_KERNEL
913 bool "Build the kernel"
914 default n
915 help
916 #-- Select this option if you wish to build the kernel.
917 #
918 # You will be prompted for the full path to the .config
919 # file. It will be copied to the 'sources' directory and
920 # renamed kernel-config
921
922 config CONFIG
923 string "Kernel config file"
924 default "***EDIT ME***"
925 depends on CONFIG_BUILD_KERNEL
926 help
927 #-- Fully qualified path to a kernel config file
928 # The config file will be copied to ${BUILD_DIR}/sources
929 # and renamed 'kernel-config'
930 #--- End Kernel
931
[085435e]932 config NCURSES5
933 bool "Install non-wide-character ncurses"
[e5d44f5]934 default n
[085435e]935 depends on BOOK_LFS || BOOK_LFS_SYSD
[e5d44f5]936 help
[085435e]937 #-- Install the optional non wide character ncurses5 library
[e5d44f5]938
939 config TIMEZONE
940 string "TimeZone"
941 default "GMT"
942 help
943 #-- The timezone as output by tzselect
944 # This will be copied to /etc/localtime
945
946 config LANG
947 string "Language"
948 default "$LANG"
949 help
950 #-- LANG variable set in /etc/profile
951 # See http://sourceware.org/git/?p=glibc.git;a=blob;f=localedata/SUPPORTED
952 # for values (or the file localedata/SUPPORTED in glibc tarball)
953
954 config FULL_LOCALE
955 bool "Install the full set of locales"
956 default n
957 help
958 #-- If set to y, the full set of supported locales
959 # will be installed. Otherwise, only the minimal set
960 # necessary for the tests will be installed,
961 # together with the locale associated with the
962 # LANG you have chosen, if not in the minimal set.
963
964 #--- Groff page
965 choice
966 prompt "Groff page size"
967 default PAGE_LETTER
968 help
969 #-- Page definition for groff: letter or A4
970
971 config PAGE_LETTER
972 bool "letter"
973
974 config PAGE_A4
975 bool "A4"
976 endchoice
977
978 config PAGE
979 string
980 default "letter" if PAGE_LETTER
981 default "A4" if PAGE_A4
982 #--- End Groff page
[a705708]983
[945ccaa]984 config HOSTNAME
[6990d80]985 string "Hostname (see help)"
[945ccaa]986 default "**EDITME**"
[6990d80]987 help
988 If you are on a public network, use the hostname given to you by
989 your institution, or corporation, etc. If your network is private,
990 that is, behind a firewall such as a box to connect to your ISP,
991 you can choose anything you'd like. Combined with the domain name
992 "local", you have the possibility to access your computer by name
993 instead of address on the private network (see RFC 6762 and
994 https://www.howtogeek.com/167190/).
[945ccaa]995
996 menu "Network configuration"
997 config INTERFACE
998 string "netword card name"
999 default "eth0"
[6990d80]1000 help
1001 eth0 is used in most cases. Virtual insterfaces may get other
1002 names (for example enp0s3 for the default network stack in qemu).
1003 Systemd may also rename network interfaces according to their
1004 bus addresses.
[945ccaa]1005 config IP_ADDR
1006 string "Static IP address"
1007 default "10.0.2.9"
[6990d80]1008 help
1009 The default here is for a virtual interface in qemu. Private
1010 networks have addresses in the range 10.x.x.x or 192.169.x.x.
1011 You have to know your network prefix. Then the last figure
1012 may be anything you like.
1013
[945ccaa]1014 config GATEWAY
1015 string "Gateway"
1016 default "10.0.2.2"
[6990d80]1017 help
1018 Again, this default is for a qemu network stack. Usually, the
1019 gateway is the address of your firewall.
[945ccaa]1020 config PREFIX
1021 string "Subnet prefix"
1022 default "24"
[6990d80]1023 help
1024 Again, this default is for a qemu network stack, but is also
1025 the most used in private networks.
[945ccaa]1026 config BROADCAST
1027 string "Broadcast address"
1028 default "10.0.2.255"
1029 config DOMAIN
[6990d80]1030 string "Domain name (see help)"
1031 default "local"
1032 help
1033 Domain Name:
1034 Doamin names are registered, so if your computer is on a public
1035 network, you cannot use any name you'd like. On a public
1036 network, you should have been given a domain name by
1037 your corporation, institution, etc.
1038 If your network is really private, that is behind a firewall
1039 such as a box for connecting to an ISP, you can choose any
1040 domain you'd like. You can also opt for "local", see RFC 6762,
1041 or "something.test", see RFC 6761.
[945ccaa]1042 config DNS1
1043 string "Primary Name server"
1044 default "10.0.2.3"
1045 config DNS2
1046 string "Secondary Name server"
1047 default "8.8.8.8"
1048 endmenu # Network configuration
1049
1050 menu "Console configuration"
1051 config FONT
1052 string "Console font"
1053 default "lat0-16"
[3b43e17b]1054 help
1055 Unicode mode is set by default. Setting FONT_MAP, FONT_UNIMAP,
1056 etc, must be done manually.
[945ccaa]1057 config KEYMAP
1058 string "Keymap name"
1059 default "us"
[3b43e17b]1060 config LOCAL
1061 boolean "Hardware clock is set to local time"
1062 default n
1063 help
1064 If the harware clock is set to local time, answer yes,
1065 If it is set to UTC, answer no
1066 config LOG_LEVEL
1067 string "Default log level (1-8)"
1068 default "4"
[f596dde]1069 depends on BOOK_LFS
[3b43e17b]1070 help
1071 This can be changed using dmesg. 1 means "no message",
1072 8 shows every message sent by the kernel, which is very
1073 noisy. The default at boot time is 7, which is quite
1074 noisy too.
[945ccaa]1075 endmenu # Console configuration
1076
1077endmenu #--- System configuration
[a705708]1078
[e5d44f5]1079menu "Advanced Features"
[f5ecc28]1080depends on !BOOK_BLFS && !REBUILD_MAKEFILE
[e5d44f5]1081
1082 config REPORT
1083 bool "Create SBU and disk usage report"
1084 default y
1085
[f5ecc28]1086 config SAVE_CH5
1087 bool "Save Chapter 5 work"
1088 depends on BOOK_LFS || BOOK_LFS_SYSD
1089 default n
1090 help
1091 Save the state of jhalfs at the end of chapter 5:
1092
1093 if you tick this item, the whole $LFS directory is
1094 saved when chapter 5 is finished. It'll be in an xz
1095 compressed tarball in the $LFS/jhalfs directory
1096
[f596dde]1097 #--- ICA
[e5d44f5]1098 config COMPARE
1099 bool "Run comparison analysis on final stage"
[f596dde]1100 depends on !BOOK_CLFS2 && !BOOK_CLFS3
[e5d44f5]1101 default n
1102 help
1103 #-- Should an iterative comparison analysis be performed?
1104 #
[f596dde]1105 # Unless you are familiar with ICA, do not
[e5d44f5]1106 # select this option
1107 #
[f596dde]1108 # ICA is an analysis tool for comparing one
[e5d44f5]1109 # build to the next. Builds mays differ from one iteration
[f596dde]1110 # to another due to the build order and this tool try
[e5d44f5]1111 # to ferret out those differences by examining the stored
1112 # build logs and binary files.
1113 #
1114 # The scripts are well commented and can be found in ./extras/*
1115 #
1116
1117 config ITERATIONS
1118 int "Number of test runs (2,3,4,5)" if COMPARE
1119 depends on COMPARE
1120 range 2 5
1121 default 3
1122
1123 config RUN_ICA
[f596dde]1124 bool
1125 default y if COMPARE
[e5d44f5]1126
[f596dde]1127 #--- End ICA
[e5d44f5]1128
1129 #--- Optimizations
[0536270]1130if !BOOK_CLFS2 && !BOOK_CLFS3
[e5d44f5]1131 config CONFIG_OPTIMIZE
1132 bool "Optimization and parallelization"
1133 default n
1134 help
1135 # Opens a menu for various optimization settings:
1136 # Actual optimization flags MUST be defined in ./optimize/*
1137 # before activating this option.
1138 #
1139 # WARNING: The use of build optimizations may lead to build issues.
1140 # If the system doesn't work as expected, please rebuild
1141 # without optimizations before asking for support.
1142 menu "Optimization settings"
1143 depends on CONFIG_OPTIMIZE
1144
1145 config N_PARALLEL
1146 int "Number of parallel `make' jobs"
1147 default 1
1148 help
1149 #-- The usual recommandation is (number of CPU cores)+1
1150 # Do not set for meaningful SBU calculations.
1151
1152 choice
[f596dde]1153 prompt "Optimization level"
[e5d44f5]1154 default OPT_1
1155 help
1156 #-- Optimization values are set in optimize/* files
1157
1158 config OPT_1
1159 bool "Final system only"
1160
1161 config OPT_2
1162 bool "Both temp tools and final system"
1163
1164 config OPT_3
1165 bool "Cross tools (only MAKEFLAGS), temp tools and final system" if BOOK_CLFS
1166 endchoice
[84a3fda]1167
1168 config REALSBU
1169 bool "Build Binutls pass1 without optimization (Real SBU)"
1170 depends on (BOOK_LFS || BOOK_LFS_SYSD) && OPT_2
1171 default n
1172 help
1173 #-- Use -j1 in make invokation for Binutils pass1 to
1174 # get a valid SBU value.
1175
[854854e]1176endmenu
[e5d44f5]1177 config OPTIMIZE
1178 int
1179 default "0" if !CONFIG_OPTIMIZE
1180 default "1" if OPT_1
1181 default "2" if OPT_2
1182 default "3" if OPT_3
[045b2dc]1183endif
[84a3fda]1184
[e5d44f5]1185 #--- End Optimizations
[a705708]1186
[e5d44f5]1187 #-- Internal Settings
1188 menu "Internal Settings (WARNING: for jhalfs developers only)"
[4da2512]1189
[e5d44f5]1190 config SCRIPT_ROOT
1191 string "Scripts root"
1192 default "jhalfs"
[4da2512]1193
[e5d44f5]1194 config JHALFSDIR
1195 string "jhalfs directory"
1196 default "$BUILDDIR/$SCRIPT_ROOT"
[4da2512]1197
[e5d44f5]1198 config LOGDIRBASE
1199 string "Build logs directory basename"
1200 default "logs"
[93346ee]1201
[e5d44f5]1202 config LOGDIR
1203 string "Build logs directory"
1204 default "$JHALFSDIR/$LOGDIRBASE"
[93346ee]1205
[e5d44f5]1206 config TESTLOGDIRBASE
1207 string "Test suites logs directory basename"
1208 default "test-logs"
[4da2512]1209
[e5d44f5]1210 config TESTLOGDIR
1211 string "Test suites logs directory"
1212 default "$JHALFSDIR/$TESTLOGDIRBASE"
[93346ee]1213
[e5d44f5]1214 config FILELOGDIRBASE
1215 string "Installed files logs directory basename"
1216 default "installed-files"
[93346ee]1217
[e5d44f5]1218 config FILELOGDIR
1219 string "Installed files logs directory"
1220 default "$JHALFSDIR/$FILELOGDIRBASE"
[4da2512]1221
[e5d44f5]1222 config ICALOGDIR
1223 string "ICA logs directory"
1224 default "$LOGDIR/ICA"
[4da2512]1225
[e5d44f5]1226 config MKFILE
1227 string "Makefile"
1228 default "$JHALFSDIR/Makefile"
[4da2512]1229
[e5d44f5]1230 config XSL
1231 string "XSL stylesheet"
1232 default "$PROGNAME.xsl"
[4da2512]1233
[e5d44f5]1234 config PKG_LST
1235 string "Package contents list"
1236 default "unpacked"
[4da2512]1237
[e5d44f5]1238 #--- End Internal Settings
1239 endmenu
[4da2512]1240
[a705708]1241#--- End Advanced Features
1242endmenu
[7b6ecc5]1243
[a16f769]1244config REBUILD_MAKEFILE
[06eddf4]1245# depends on !BOOK_BLFS
[e5d44f5]1246 bool "Rebuild the Makefile (see help)"
1247 default n
1248 help
1249 #-- Rebuild the Makefile
1250 #
1251 # This option allows to rebuild the Makefile after
1252 # customizing the base system build scripts.
1253 #
1254 # See README.CUSTOM for more info about this feature.
[06eddf4]1255 # Note that you should do that after configuring a jhalfs
1256 # build, and only if you need changing the build scripts order
1257 # or add a new one.
Note: See TracBrowser for help on using the repository browser.