source: Config.in@ 6caa5b8

ablfs-more legacy trunk
Last change on this file since 6caa5b8 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
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 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
45 choice
46 depends on BOOK_BLFS
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
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 #--- End BOOK version
128
129 #--- CLFS specific params
130 choice
131 prompt "Target architecture"
132 default ARCH_X86
133 depends on BOOK_CLFS || BOOK_CLFS2 || BOOK_CLFS3
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"
161 depends on BOOK_CLFS3 && ARCH_MIPS
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"
176 depends on (BOOK_CLFS && !ARCH_ALPHA) || (BOOK_CLFS3 && ARCH_MIPS)
177 default DATA_32
178 help
179 Choose the target system libraries type
180
181 config DATA_32
182 bool "32-bit"
183
184 config DATA_64
185 bool "64-bit"
186
187 config DATA_MULTI
188 bool "multilib" if !(BOOK_CLFS3 && ARCH_MIPS )
189 endchoice
190
191 choice
192 prompt "Processor type"
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))
194 help
195 Choose the target system processor
196
197 config PROC_i486
198 bool "486 Compatibles" if ARCH_X86
199
200 config PROC_i586
201 bool "Pentium, K6, 586 Compatibles" if ARCH_X86
202
203 config PROC_i686
204 bool "Pentium II, Pentium III, Pentium 4, Athlon, Duron" if ARCH_X86
205
206 config PROC_mipsel
207 bool "MIPS Little Endian" if ARCH_MIPS
208
209 config PROC_mips
210 bool "MIPS Big Endian" if ARCH_MIPS
211
212 config PROC_unknown
213 bool "Unknown" if ARCH_HPPA || ARCH_ALPHA
214
215 config PROC_hppa1
216 bool "PA 7000 Series" if ARCH_HPPA
217
218 config PROC_hppa2
219 bool "PA 8000 Series" if ARCH_HPPA
220
221 config PROC_EV5
222 bool "EV5 Series" if ARCH_ALPHA
223
224 config PROC_EV56
225 bool "EV56 Series" if ARCH_ALPHA
226
227 config PROC_PCA56
228 bool "PCA56 Series" if ARCH_ALPHA
229
230 config PROC_PCA57
231 bool "PCA57 Series" if ARCH_ALPHA
232
233 config PROC_EV6
234 bool "EV6 Series" if ARCH_ALPHA
235
236 config PROC_EV67
237 bool "EV67 Series" if ARCH_ALPHA
238
239 config PROC_EV68
240 bool "EV68 Series" if ARCH_ALPHA
241
242 config PROC_ARM
243 bool "Generic arm, little endian" if ARCH_ARM
244
245 config PROC_ARM5L
246 bool "Generic arm, version 5, little endian" if ARCH_ARM
247
248 config PROC_ARM5B
249 bool "Generic arm, version 5, big endian" if ARCH_ARM
250
251 config PROC_ULTRA1
252 bool "UtraSparc" if ARCH_SPARC && (DATA_64 || DATA_MULTI)
253
254 config PROC_ULTRA2
255 bool "UtraSparc2" if ARCH_SPARC && (DATA_64 || DATA_MULTI)
256
257 config PROC_ULTRA3
258 bool "UtraSparc3" if ARCH_SPARC && (DATA_64 || DATA_MULTI)
259 endchoice
260
261 choice
262 prompt "MIPS 64 ABI"
263 depends on BOOK_CLFS3 && ARCH_MIPS && DATA_64
264 default ABI_64
265 help
266 Choose the target system ABI to use
267
268 config ABI_32
269 bool "o32"
270
271 config ABI_N32
272 bool "n32"
273
274 config ABI_64
275 bool "n64"
276 endchoice
277
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
283
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
287
288 default "x86_64-unknown-linux-gnu" if ARCH_X86 && (DATA_64 || DATA_MULTI)
289
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)
294
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
299
300 default "powerpc-unknown-linux-gnu" if ARCH_PPC && DATA_32
301 default "powerpc64-unknown-linux-gnu" if ARCH_PPC && (DATA_MULTI || DATA_64)
302
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
327 depends on DATA_MULTI
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
373 depends on BOOK_CLFS3 && ARCH_MIPS
374 default "1" if DATA_32
375 default "3" if DATA_64
376
377 config ABI
378 string
379 depends on BOOK_CLFS3
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
388 depends on BOOK_CLFS3 && (ARCH_MIPS || ARCH_ARM)
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"
394 depends on BOOK_CLFS
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
475 automatically on boot. It allows copy-paste
476 while Xorg is not installed.
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
483 sources. You do not need it if building a
484 stable book.
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
513 Full path to the BLFS book working copy
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"
546 depends on BLFS_TOOL || BOOK_BLFS
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...
551
552 config LFS_XML
553 string "LFS sources directory (internal parameter)"
554 default "lfs-xml"
555 depends on BLFS_TOOL || BOOK_BLFS
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
561 choice
562 prompt "LFS Release"
563 default LFS_relSVN
564 depends on BOOK_BLFS
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.
596 # End of BLFS parameters
597
598 #--- Custom Tools support
599 config CUSTOM_TOOLS
600 depends on !BOOK_BLFS
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.
630
631#--- End BOOK Settings
632endmenu
633
634menu "General Settings"
635depends on !BOOK_BLFS && !REBUILD_MAKEFILE
636
637 #--- {C,H,}LFS User Account
638
639 config LUSER
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
647 default LUSER
648
649 config LHOME
650 string
651 default "/home"
652
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"
676 depends on GETPKG
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
685 depends on GETPKG
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
694 depends on GETPKG
695 help
696 #-- Number of times to retry a failed download.
697
698 config DOWNLOADTIMEOUT
699 int "Download timeout (in seconds)"
700 default 30
701 depends on GETPKG
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"
709 depends on GETPKG
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.
729
730#--- End General Settings
731endmenu
732
733menu "Build Settings"
734depends on !BOOK_BLFS && !REBUILD_MAKEFILE
735
736 #--- Test Suites
737 config CONFIG_TESTS
738 bool "Run testsuites"
739 depends on !BOOK_CLFS2 && !BOOK_CLFS3
740 default y
741 help
742 #-- Run test suites
743 # If you select 'y' here:
744 # You will have to select between:
745 # - Only critical final system testsuites
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 #
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
760
761 menu "Test settings"
762 depends on CONFIG_TESTS
763 choice
764 prompt "Tests level"
765 default TST_1
766
767 config TST_1
768 bool "Only final system critical testsuites"
769 help
770 #-- Critical tests:
771 # Only Glibc, Binutils, GMP, MPFR, MPC and GCC
772 # testsuites for final system. The others are commented
773 # out.
774
775 config TST_2
776 bool "All final system testsuites"
777 help
778 #-- All final system test suites:
779 # Test instructions for the temporary tools (if available)
780 # are commented out.
781
782 config TST_3
783 bool "All testsuites" if !BOOK_HLFS && !BOOK_CLFS
784 help
785 #-- All tests:
786 # Runs all the testsuites for both temporary tools (if
787 # available) and final system
788 endchoice
789
790 choice
791 prompt "Flavour"
792
793 config NO_BOMB
794 bool "Don't stop on test failures"
795
796 config BOMB
797 bool "Abort the build on the first test failure"
798 endchoice
799
800 endmenu # test settings
801
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
809 config BOMB_TEST
810 bool
811 default n if NO_BOMB
812 default y if BOMB
813 #--- End Test Suites
814
815 #--- Package Management
816 config PKGMNGT
817 bool "Package management"
818 depends on BOOK_LFS || BOOK_LFS_SYSD
819 default n
820 help
821 #-- Use package management
822 #
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
829 # packaging and installing the package.
830 # - Preload a library before install:
831 # Run the install instructions inside a
832 # wrapper command, which monitors the
833 # installed files.
834 #
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
842 choice
843 depends on PKGMNGT
844 prompt "Package management style"
845 default PKG_PACK
846
847 config PKG_PACK
848 bool "Build and pack (pacman or dpkg style)"
849
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
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
870 config STRIP
871 bool "Strip Installed Binaries/Libraries"
872 default n
873 depends on !BOOK_CLFS3
874
875 config DEL_LA_FILES
876 bool "Remove libtool .la files"
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
882 config NO_PROGRESS_BAR
883 bool "DO NOT use/display progress_bar"
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
892menu "System configuration"
893 depends on !BOOK_BLFS && !REBUILD_MAKEFILE
894
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
901 # for the target system
902
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
932 config NCURSES5
933 bool "Install non-wide-character ncurses"
934 default n
935 depends on BOOK_LFS || BOOK_LFS_SYSD
936 help
937 #-- Install the optional non wide character ncurses5 library
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
983
984 config HOSTNAME
985 string "Hostname (see help)"
986 default "**EDITME**"
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/).
995
996 menu "Network configuration"
997 config INTERFACE
998 string "netword card name"
999 default "eth0"
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.
1005 config IP_ADDR
1006 string "Static IP address"
1007 default "10.0.2.9"
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
1014 config GATEWAY
1015 string "Gateway"
1016 default "10.0.2.2"
1017 help
1018 Again, this default is for a qemu network stack. Usually, the
1019 gateway is the address of your firewall.
1020 config PREFIX
1021 string "Subnet prefix"
1022 default "24"
1023 help
1024 Again, this default is for a qemu network stack, but is also
1025 the most used in private networks.
1026 config BROADCAST
1027 string "Broadcast address"
1028 default "10.0.2.255"
1029 config DOMAIN
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.
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"
1054 help
1055 Unicode mode is set by default. Setting FONT_MAP, FONT_UNIMAP,
1056 etc, must be done manually.
1057 config KEYMAP
1058 string "Keymap name"
1059 default "us"
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"
1069 depends on BOOK_LFS
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.
1075 endmenu # Console configuration
1076
1077endmenu #--- System configuration
1078
1079menu "Advanced Features"
1080depends on !BOOK_BLFS && !REBUILD_MAKEFILE
1081
1082 config REPORT
1083 bool "Create SBU and disk usage report"
1084 default y
1085
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
1097 #--- ICA
1098 config COMPARE
1099 bool "Run comparison analysis on final stage"
1100 depends on !BOOK_CLFS2 && !BOOK_CLFS3
1101 default n
1102 help
1103 #-- Should an iterative comparison analysis be performed?
1104 #
1105 # Unless you are familiar with ICA, do not
1106 # select this option
1107 #
1108 # ICA is an analysis tool for comparing one
1109 # build to the next. Builds mays differ from one iteration
1110 # to another due to the build order and this tool try
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
1124 bool
1125 default y if COMPARE
1126
1127 #--- End ICA
1128
1129 #--- Optimizations
1130if !BOOK_CLFS2 && !BOOK_CLFS3
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
1153 prompt "Optimization level"
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
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
1176endmenu
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
1183endif
1184
1185 #--- End Optimizations
1186
1187 #-- Internal Settings
1188 menu "Internal Settings (WARNING: for jhalfs developers only)"
1189
1190 config SCRIPT_ROOT
1191 string "Scripts root"
1192 default "jhalfs"
1193
1194 config JHALFSDIR
1195 string "jhalfs directory"
1196 default "$BUILDDIR/$SCRIPT_ROOT"
1197
1198 config LOGDIRBASE
1199 string "Build logs directory basename"
1200 default "logs"
1201
1202 config LOGDIR
1203 string "Build logs directory"
1204 default "$JHALFSDIR/$LOGDIRBASE"
1205
1206 config TESTLOGDIRBASE
1207 string "Test suites logs directory basename"
1208 default "test-logs"
1209
1210 config TESTLOGDIR
1211 string "Test suites logs directory"
1212 default "$JHALFSDIR/$TESTLOGDIRBASE"
1213
1214 config FILELOGDIRBASE
1215 string "Installed files logs directory basename"
1216 default "installed-files"
1217
1218 config FILELOGDIR
1219 string "Installed files logs directory"
1220 default "$JHALFSDIR/$FILELOGDIRBASE"
1221
1222 config ICALOGDIR
1223 string "ICA logs directory"
1224 default "$LOGDIR/ICA"
1225
1226 config MKFILE
1227 string "Makefile"
1228 default "$JHALFSDIR/Makefile"
1229
1230 config XSL
1231 string "XSL stylesheet"
1232 default "$PROGNAME.xsl"
1233
1234 config PKG_LST
1235 string "Package contents list"
1236 default "unpacked"
1237
1238 #--- End Internal Settings
1239 endmenu
1240
1241#--- End Advanced Features
1242endmenu
1243
1244config REBUILD_MAKEFILE
1245# depends on !BOOK_BLFS
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.
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.