source: Config.in@ 56c1fff

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

Config.in: Reinstate the whole menus if "Rebuild Makefile" is ticked

Building the Makefile needs quite a few variables set, which
are scattered in all the menus of Config.in. So all the menus
are needed.

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