source: Config.in@ f017b22

ablfs-more legacy trunk
Last change on this file since f017b22 was 13e52a5, checked in by Pierre Labastie <pierre@…>, 4 years ago

Add the multilib book: fixes ticket #1722

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