source: Config.in

trunk
Last change on this file was 41a4032, checked in by Pierre Labastie <pierre.labastie@…>, 12 months ago

"&>" is not recognized by some shells

Since jhalfs may be run on dsitros where the default shell invoked
by python is not bash, it may happen that "&>" does not produce
the expected result. Fix by using the "posix" way: ">xxx 2>&1".

  • Property mode set to 100644
File size: 31.6 KB
RevLine 
[74601a7]1# Check for "nproc" presence:
2config HAVE_NPROC
[41a4032]3 def_bool $(shell,if nproc >/dev/null 2>&1; then echo y; else echo n; fi)
[74601a7]4
5# Check for "cpuset controller in cgroup v2" presence:
6config HAVE_CGROUP
7 def_bool $(shell,if grep -q cpuset /sys/fs/cgroup/cgroup.controllers 2>/dev/null; then echo y; else echo n; fi)
8
[e5d44f5]9menu "BOOK Settings"
10
11 #--- BOOK/script
12 choice
13 prompt "Use BOOK"
14 default BOOK_LFS
15 help
16 Select the book where build instructions are retrieved.
17
18 config BOOK_LFS
19 bool "Linux From Scratch System V"
20 help
[706e5bf]21 Set up the tools to build LFS with SysV init.
[e5d44f5]22
23 config BOOK_LFS_SYSD
24 bool "Linux From Scratch systemd"
25 help
26 Set up the tools to build LFS with systemd init.
27
28 config BOOK_BLFS
29 bool "Beyond Linux From Scratch (see help)"
30 help
[e3f41e33]31 if the LFS system has already been built, install the tools
[e5d44f5]32 to build BLFS packages.
33 endchoice
34
[39dc04a]35 choice
[f596dde]36 depends on BOOK_BLFS
[39dc04a]37 prompt "Init system"
38
39 config BLFS_SYSV
[706e5bf]40 bool "BLFS SysV"
[39dc04a]41 help
[706e5bf]42 Extract the SysV flavour of the BLFS book
[39dc04a]43
44 config BLFS_SYSD
45 bool "BLFS systemd"
46 help
47 Extract the systemd flavour of the BLFS book
48
49 endchoice
50
[e5d44f5]51 config INITSYS
52 string
[39dc04a]53 default "sysv" if BOOK_LFS || BLFS_SYSV
54 default "systemd" if BOOK_LFS_SYSD || BLFS_SYSD
[e5d44f5]55
56 config RUN_ME
57 string
[e3f41e33]58 default "./jhalfs run" if BOOK_LFS || BOOK_LFS_SYSD
[e5d44f5]59 default "./install-blfs-tools.sh auto" if BOOK_BLFS
60 #--- End BOOK/script
61
62 #--- Book version
63 choice
[f45af2c]64 prompt "Book version"
65 default BRANCH
[e5d44f5]66
[f45af2c]67 config BRANCH
68 bool "Branch (default to trunk) or any commit"
[e5d44f5]69 help
[a2917ed]70 Use an LFS book downloaded from the git repository, and
71 checked out at any commit (branch/tag/sha)
[e5d44f5]72
73 config WORKING_COPY
74 bool "Working Copy"
75 help
[a2917ed]76 Use a local working copy of the LFS book
[e5d44f5]77 endchoice
78
[f45af2c]79 config COMMIT
80 string "Branch, tag, or any commit"
81 default "trunk"
[f596dde]82 depends on BRANCH
[e5d44f5]83 help
[f45af2c]84 Enter a branch, a tag, or an abbreviated commit sha.
85 The tool will clone the LFS repository and checkout
86 that commit
[e5d44f5]87
88 config BOOK
89 string "Loc of working copy (mandatory)"
90 default "**EDIT ME**"
[f596dde]91 depends on WORKING_COPY
[e5d44f5]92 help
[a2917ed]93 The full path to a local copy of the LFS book XML sources
[e5d44f5]94
[13e52a5]95 choice
[a2917ed]96 depends on (BOOK_LFS || BOOK_LFS_SYSD)
[8bcaf0d5]97 prompt "Multilib"
[13e52a5]98 default LFS_MULTILIB_NO
99 config LFS_MULTILIB_NO
100 bool "Standard LFS on i686 or amd64"
101 help
[b6e981a]102 Use standard LFS book (choose this if not multilib source)
[13e52a5]103
104 config LFS_MULTILIB_I686
105 bool "Multilib LFS on amd64 with i686 libraries"
106 help
107 Use Multilib LFS book with i686 libraries
108
109 config LFS_MULTILIB_X32
110 bool "Multilib LFS on amd64 with x32 libraries"
111 help
112 Use Multilib LFS book with x32 libraries
113
114 config LFS_MULTILIB_ALL
115 bool "Multilib LFS on amd64 with i686 and x32 libraries"
116 help
117 Use Multilib LFS book with i686 and x32 libraries
118
119 endchoice
120
121 config MULTILIB
122 string
123 default "default" if LFS_MULTILIB_NO
124 default "ml_32" if LFS_MULTILIB_I686
125 default "ml_x32" if LFS_MULTILIB_X32
126 default "ml_all" if LFS_MULTILIB_ALL
127
[e5d44f5]128 #--- End BOOK version
129
130 choice
131 prompt "Build method"
[e3f41e33]132 default BUILD_CHROOT
[a2917ed]133 depends on (BOOK_LFS || BOOK_LFS_SYSD)
[e5d44f5]134 help
135 What build method should be used: a chroot jail or minimal boot
[e3f41e33]136 system. Review the clfs-ng branch chap6 "TO BOOT OR CHROOT" for
[e5d44f5]137 a full explanation.
138
139 config BUILD_CHROOT
140 bool "chroot"
141
142 config BUILD_BOOT
143 bool "boot"
144 endchoice
145
146 config METHOD
147 string
148 default "chroot" if BUILD_CHROOT
149 default "boot" if BUILD_BOOT
150
151 config BOOT_CONFIG
152 string "BOOT kernel config file (mandatory)"
153 default "***EDIT ME***"
154 depends on BUILD_BOOT
155 help
156 If METHOD=boot, location of boot-kernel config file
157 The config file will be copied to ${BUILD_DIR}/sources
158 and renamed 'bootkernel-config'
159 NOTE: this setting is required
160
161 #--- blfs-tool Support
162 config BLFS_TOOL
163 bool "Add blfs-tool support"
164 default n
[e3f41e33]165 depends on !BOOK_BLFS
[e5d44f5]166 help
167 Activating this option will install additional packages needed
168 to use blfs tools after booting the new system.
169 The blfs-tool files will be installed under $BUILD_DIR/blfs_root
170 (see below).
171 After booting the new xLFS system, but before using the blfs tools,
172 you should create a user account, move the /blfs_root directory
173 to that user's home, and change its ownership to that of the user.
174 Also, be sure to give the user read and write access on the
175 $TRACKING_DIR directory and the files that it contains.
176 Don't forget to configure sudo properly on the new system.
177
178 config DUMMY # Avoid indenting the items below
179 bool
180
181 if BLFS_TOOL
182 menu "blfs-tool dependencies"
183
184 config DEP_LIBXML
185 bool "libxml2 (required)"
186 default y
187
188 config DEP_LIBXSLT
189 bool "libxslt (required)"
190 default y
191
192 config DEP_DBXML
193 bool "DocBook XML DTD (required)"
194 default y
195
196 config DEP_LYNX
197 bool "lynx (optional, for reading the generated book)"
198 default y
199
[7f25c70]200 config DEP_SUDO
201 bool "sudo (recommended)"
202 default y
203
[e5d44f5]204 config DEP_WGET
205 bool "wget (recommended)"
206 default y
207
208 config DEP_GPM
209 bool "GPM (optional, see help)"
210 default n
211 help
212 if you install gpm, it will be started
[90f5b6d]213 automatically on boot. It allows copy-paste
214 while Xorg is not installed.
[e5d44f5]215
[1e686d1]216 config DEP_GIT
217 bool "GIT client (optional, see help)"
[e5d44f5]218 default n
219 help
[1e686d1]220 Git is needed for updating the book
[90f5b6d]221 sources. You do not need it if building a
222 stable book.
[e5d44f5]223
224 endmenu
225
226 choice
[9b99ada]227 prompt "BLFS book version"
228 default BLFS_BRANCH
[e5d44f5]229
[9b99ada]230 config BLFS_BRANCH
231 bool "BLFS Branch (default trunk) or any commit"
[e5d44f5]232 help
[9b99ada]233 Use a BLFS book downloaded from the git repository, and
234 checked out at any commit (branch/tag/sha).
[e5d44f5]235
236 config BLFS_WORKING_COPY
237 bool "BLFS working copy"
238 help
[9b99ada]239 Use a local working copy of the BLFS book.
[e5d44f5]240 endchoice
241
242 config BLFS_WC_LOCATION
243 string "Location of the local BLFS working copy (mandatory)"
244 default "**EDIT ME**"
245 depends on BLFS_WORKING_COPY
246 help
[506120ee]247 Full path to the BLFS book working copy
[e5d44f5]248
[9b99ada]249 config BLFS_COMMIT
250 string "BLFS Book commit (branch/tag/sha)"
251 default "trunk"
[e5d44f5]252 depends on BLFS_BRANCH
253 help
[f45af2c]254 Can be any branch, tag, or abbreviated (or not) commit sha.
[e5d44f5]255 endif
256 #--- End blfs-tool Support
257
258 #--- BLFS params (Used for installing the tools, either after a jhalfs run
259 # or directly)
260 config BLFS_ROOT
261 string "Root of the tools directory (see help)"
262 default "/blfs_root"
263 depends on BLFS_TOOL || BOOK_BLFS
264 help
265 Path to the directory where all required files and scripts
266 will be stored.
267
268 This path must begin with a slash, and:
269 - is relative to the user's HOME directory when installing the
270 blfs tools on an already existing LFS system.
271 - is relative to the root of the build directory (`/' in chroot)
272 when adding the tools after a jhalfs run
273
274 CAUTION: this directory will be removed if it already exists.
275
276 config BLFS_XML
277 string "BLFS sources directory (internal parameter)"
278 default "blfs-xml"
[f596dde]279 depends on BLFS_TOOL || BOOK_BLFS
[e5d44f5]280 help
281 The directory name under $BLFS_ROOT where the BLFS
282 book sources will be copied or checked out. Do not change that
283 unless you know what you are doing...
[506120ee]284
[f733772]285 config LFS_XML
286 string "LFS sources directory (internal parameter)"
287 default "lfs-xml"
[f596dde]288 depends on BLFS_TOOL || BOOK_BLFS
[f733772]289 help
290 The directory name under $BLFS_ROOT where the LFS
291 book sources will be copied or checked out. Do not change that
292 unless you know what you are doing...
293
[506120ee]294 choice
[9b99ada]295 prompt "LFS book version"
296 default LFS_BRANCH
[f596dde]297 depends on BOOK_BLFS
[506120ee]298
[9b99ada]299 config LFS_BRANCH
300 bool "LFS branch (default trunk) or any commit"
[506120ee]301 help
[9b99ada]302 Use an LFS book downloaded from the git repository and
303 checked out at any commit (branch/tag/sha).
[506120ee]304
305 config LFS_WORKING_COPY
306 bool "LFS working copy"
307 help
[9b99ada]308 Use a local working copy of the LFS book.
[506120ee]309 endchoice
310
311 config BLFS_LFS_BOOK
312 string "Location of the local LFS working copy (mandatory)"
313 default "**EDIT ME**"
314 depends on LFS_WORKING_COPY
315 help
316 Full path to the LFS book working copy"
317
[9b99ada]318 config BLFS_LFS_COMMIT
319 string "LFS Book Commit (mandatory)"
320 default "trunk"
[506120ee]321 depends on LFS_BRANCH
322 help
[f45af2c]323 Any branch, tag or abbreviated (or not) commit sha.
[e5d44f5]324 # End of BLFS parameters
325
326 #--- Custom Tools support
327 config CUSTOM_TOOLS
[f596dde]328 depends on !BOOK_BLFS
[e5d44f5]329 bool "Add custom tools support"
330 default n
331 help
332 Activating this option additional packages you create
333 will be installed after finished the xLFS system build.
334 #--- End Custom Tools support
335
[e3ccc27]336 #--- This directory is needed for blfs tools installation and custom tools
[e5d44f5]337 # As well.
338 config TRACKING_DIR
339 string "Installed packages database directory"
340 default "/var/lib/jhalfs/BLFS"
341 depends on BOOK_BLFS || BLFS_TOOL || CUSTOM_TOOLS
342 help
343 Full path to the directory where the database of
344 installed packages will be created.
345
346 If the blfs tools are installed on a running xLFS system,
347 the user must have enough privileges to create this directory.
348 It may be necessary to create the /var/lib/jhalfs directory as
349 root, and make it writable by the user before running this tool.
350
351 If you are installing the blfs tools as part of an xLFS build
352 and/or using the customized scripts feature, you will
353 need to fix this directory's permissions after booting
354 the new system.
355
[f45af2c]356 Note that the user who will build the packages must
[e5d44f5]357 have read and write access to this directory.
[53f291f]358
[a705708]359#--- End BOOK Settings
360endmenu
361
[e5d44f5]362menu "General Settings"
[e3ccc27]363depends on !BOOK_BLFS
[e5d44f5]364
[f45af2c]365 #--- LFS User Account
[b7583ec]366
367 config LUSER
[e5d44f5]368 string
[f45af2c]369 default "lfs"
[e5d44f5]370
371 config LGROUP
372 string
[b7583ec]373 default LUSER
[e5d44f5]374
375 config LHOME
376 string
[b7583ec]377 default "/home"
378
[e5d44f5]379 #--- End Set User Account
380
381 config BUILDDIR
382 string "Build Directory"
383 default "/mnt/build_dir"
384 help
385 #-- The directory where the created system will be located.
386 # NOTE: A working directory named jhalfs will be created
387 # here, so ensure this does not conflict with the jhalfs
388 # source directory.
389
390 config GETPKG
391 bool "Retrieve source files"
392 default n
393 help
394 #-- Download all packages and patches required by the selected book
395 # NOTE: Looks for files in the local archive defined by SRC_ARCHIVE
396 # first and if necessary retrieves them from the 'net.
397 # Files will be transferred to $BUILDDIR/sources.
398
399 config SRC_ARCHIVE
400 string "Package Archive Directory"
401 default "$SRC_ARCHIVE"
[f596dde]402 depends on GETPKG
[e5d44f5]403 help
404 #-- A local archive for packages/files (not $BUILDDIR/sources)
405 # Any missing file will be downloaded and archived here,
406 # if the user has the right privileges.
407
408 config RETRYSRCDOWNLOAD
409 bool "Retry on 'connection refused' failure"
410 default n
[f596dde]411 depends on GETPKG
[e5d44f5]412 help
413 #-- Attempt to download a source package again if it fails
414 # with a 'connection refused' error. This can happen on
415 # servers that are overloaded.
416
417 config RETRYDOWNLOADCNT
418 int "Number of retry attempts on download failures"
419 default 20
[f596dde]420 depends on GETPKG
[e5d44f5]421 help
422 #-- Number of times to retry a failed download.
423
424 config DOWNLOADTIMEOUT
425 int "Download timeout (in seconds)"
426 default 30
[f596dde]427 depends on GETPKG
[e5d44f5]428 help
429 #-- Number of seconds to wait for a download to start before
430 # timing out.
431
432 config RUNMAKE
433 bool "Run the makefile"
434 default n
435 help
436 #-- Automatically run the makefile once it has been created
437
438 config CLEAN
439 bool "Rebuild files"
440 default n
441 help
442 #-- Clean the build directory before performing any other task.
443 # The directory is cleaned only if it was populated by a
444 # previous JHALFS run.
[a705708]445
446#--- End General Settings
447endmenu
448
[e5d44f5]449menu "Build Settings"
[e3ccc27]450depends on !BOOK_BLFS
[e5d44f5]451
[10756d0]452 #--- Parallelism
453 menu "Parallelism settings"
454 if HAVE_NPROC
455 config ALL_CORES
[6ffc37b]456 bool "Use all cores"
[10756d0]457 default y
458 help
[6ffc37b]459 If you answer y, MAKEFLAGS will be set to "-j$(nproc)" at the
460 beginning of each package script, and book instructions will not
461 be changed otherwise. This will run the scripts with the same
462 settings as in the book since version r12.0-87 included. Before
463 that version, this will run the builds with all cores, but some
464 test suites may still be run sequentially. You'll be asked for
465 a CPU set to use, so that the number of jobs can still be limited
466 in this way (useful for measuring SBU values at -j4, for
467 example).
468 If you answer n, then jhalfs will fall back to a static number
469 of cores, defined below.
[10756d0]470
471 if ALL_CORES && HAVE_CGROUP
472 config CPUSET
473 string "set of cpus to use, or 'all' for all cpus"
474 default "all"
475 help
476 See "List format" in cpuset(7). Choosing cpus depend
477 on the topology of your processors. Sometimes two
478 hyperthreads on the same core are numbered consecutively.
479 For example for using all cores and no hyperthreading on
480 a Haswell, use "0,2,4,6". Other brands may have a different
481 topology, and may require e.g. "0-3" to use the first 4 cores.
482 If not sure, keep the default.
483 endif
484
485 endif # HAVE_NPROC
486 if !HAVE_NPROC
487 config ALL_CORES
488 bool
489 default n
490 endif
491
492 config N_PARALLEL
493 int "Number of parallel `make' jobs"
494 depends on !ALL_CORES
495 default 1
496 help
497 #-- The usual recommandation is (number of CPU cores)+1
498 # Do not set for meaningful SBU calculations.
499
500 config REALSBU
501 bool "Build Binutils pass1 without parallelism (Real SBU)"
502 default n
503 help
504 #-- Use -j1 in make invokation for Binutils pass1 to
505 # get a valid SBU value.
506 endmenu # parallelism
507
[e5d44f5]508 #--- Test Suites
509 config CONFIG_TESTS
510 bool "Run testsuites"
511 default y
512 help
513 #-- Run test suites
[1d5f3e3]514 # If you select 'y' here:
[e5d44f5]515 # You will have to select between:
[945ccaa]516 # - Only critical final system testsuites
[e5d44f5]517 # - All final system testsuites
518 #
[1d5f3e3]519 # Note that in any case, all the test instructions will
520 # be generated. Those which are not wanted will be commented
521 # out. If you select 'n' here, the commented test instructions
522 # do not stop on test suite failures.
[e5d44f5]523
524 choice
[bc64795]525 depends on CONFIG_TESTS
[e5d44f5]526 prompt "Tests level"
527 default TST_1
528
529 config TST_1
[945ccaa]530 bool "Only final system critical testsuites"
531 help
532 #-- Critical tests:
533 # Only Glibc, Binutils, GMP, MPFR, MPC and GCC
[1d5f3e3]534 # testsuites for final system. The others are commented
535 # out.
[e5d44f5]536
537 config TST_2
538 bool "All final system testsuites"
[1d5f3e3]539 help
540 #-- All final system test suites:
541 # Test instructions for the temporary tools (if available)
542 # are commented out.
[e5d44f5]543
544 endchoice
545
[945ccaa]546 config TEST
547 int
548 default "0" if !CONFIG_TESTS
549 default "1" if TST_1
550 default "2" if TST_2
[d54e3c9]551 #--- End Test Suites
[e5d44f5]552
553 #--- Package Management
554 config PKGMNGT
555 bool "Package management"
[f596dde]556 depends on BOOK_LFS || BOOK_LFS_SYSD
[e5d44f5]557 default n
558 help
559 #-- Use package management
560 #
[945ccaa]561 # If set, you'll have to choose between
562 # two package management styles:
563 # - Build and install:
564 # the packages in the final phase are built
565 # in a separate directory, PKG_DEST.
566 # You should provide a bash function for
[4b2a5fd]567 # packaging and installing the package.
[945ccaa]568 # - Preload a library before install:
569 # Run the install instructions inside a
570 # wrapper command, which monitors the
571 # installed files.
572 #
[e5d44f5]573 # Also, you have to provide the instructions
574 # to build the package manager during the
575 # temporary tools phase, in the form of a
576 # sect1 of the book identical to a package
577 # sect1. See README.PACKAGE_MANAGEMENT
[945ccaa]578 choice
[f596dde]579 depends on PKGMNGT
[945ccaa]580 prompt "Package management style"
581 default PKG_PACK
582
583 config PKG_PACK
584 bool "Build and pack (pacman or dpkg style)"
[e5d44f5]585
[945ccaa]586 config LIB_LOAD
587 bool "Preload a library before installing (porg style)"
588 endchoice
589
590 config WRAP_INSTALL
591 bool
592 default y if LIB_LOAD
593 default n if PKG_PACK
[e5d44f5]594 #--- End package management
595
596 #--- Installed files logs
597 config INSTALL_LOG
598 bool "Create a log of installed files for each package"
599 default n
600 help
601 #-- Select this if you want to create logs of the files
602 # installed by each package on the final system.
603
604 #--- End Installed files logs
605
[945ccaa]606 config STRIP
607 bool "Strip Installed Binaries/Libraries"
608 default n
609
610 config NO_PROGRESS_BAR
[f596dde]611 bool "DO NOT use/display progress_bar"
[945ccaa]612 default n
613 help
614 #-- Do not use the progress bar routine. On slower machines
615 # this function consumes precious CPU cycles.
616
617#--- End Build Settings
618endmenu
619
[6990d80]620menu "System configuration"
[e3ccc27]621 depends on !BOOK_BLFS
[945ccaa]622
[e5d44f5]623 #--- FSTAB
624 config HAVE_FSTAB
625 bool "Use a custom fstab file"
626 default n
627 help
628 #-- Select this if you have an fstab file with entries
[945ccaa]629 # for the target system
[a705708]630
[e5d44f5]631 config FSTAB
632 string "Fstab file (optional)"
633 default "***EDIT ME***"
634 depends on HAVE_FSTAB
635 help
636 #-- The location of fstab file (if empty, a template is created)
637 #--- End FSTAB
638
639 #--- Kernel
640 config CONFIG_BUILD_KERNEL
641 bool "Build the kernel"
642 default n
643 help
644 #-- Select this option if you wish to build the kernel.
645 #
646 # You will be prompted for the full path to the .config
647 # file. It will be copied to the 'sources' directory and
648 # renamed kernel-config
649
650 config CONFIG
651 string "Kernel config file"
652 default "***EDIT ME***"
653 depends on CONFIG_BUILD_KERNEL
654 help
655 #-- Fully qualified path to a kernel config file
656 # The config file will be copied to ${BUILD_DIR}/sources
657 # and renamed 'kernel-config'
[6d9bd8e]658 #
659 # Important: if the config file is out of date (missing
660 # option), the kernel build will timeout instead of
661 # waiting forever for an input. This will generate error
662 # 124. In this case, update your config file,
663 # copy it to $BUILD_DIR/sources/kernel-config, and
664 # restart the build.
[e5d44f5]665 #--- End Kernel
666
[085435e]667 config NCURSES5
668 bool "Install non-wide-character ncurses"
[e5d44f5]669 default n
[085435e]670 depends on BOOK_LFS || BOOK_LFS_SYSD
[e5d44f5]671 help
[085435e]672 #-- Install the optional non wide character ncurses5 library
[e5d44f5]673
674 config TIMEZONE
675 string "TimeZone"
676 default "GMT"
677 help
678 #-- The timezone as output by tzselect
679 # This will be copied to /etc/localtime
680
681 config LANG
682 string "Language"
683 default "$LANG"
684 help
685 #-- LANG variable set in /etc/profile
686 # See http://sourceware.org/git/?p=glibc.git;a=blob;f=localedata/SUPPORTED
687 # for values (or the file localedata/SUPPORTED in glibc tarball)
688
689 config FULL_LOCALE
690 bool "Install the full set of locales"
691 default n
692 help
693 #-- If set to y, the full set of supported locales
694 # will be installed. Otherwise, only the minimal set
695 # necessary for the tests will be installed,
696 # together with the locale associated with the
697 # LANG you have chosen, if not in the minimal set.
698
699 #--- Groff page
700 choice
701 prompt "Groff page size"
702 default PAGE_LETTER
703 help
704 #-- Page definition for groff: letter or A4
705
706 config PAGE_LETTER
707 bool "letter"
708
709 config PAGE_A4
710 bool "A4"
711 endchoice
712
713 config PAGE
714 string
715 default "letter" if PAGE_LETTER
716 default "A4" if PAGE_A4
717 #--- End Groff page
[a705708]718
[945ccaa]719 config HOSTNAME
[6990d80]720 string "Hostname (see help)"
[945ccaa]721 default "**EDITME**"
[6990d80]722 help
723 If you are on a public network, use the hostname given to you by
724 your institution, or corporation, etc. If your network is private,
725 that is, behind a firewall such as a box to connect to your ISP,
726 you can choose anything you'd like. Combined with the domain name
727 "local", you have the possibility to access your computer by name
728 instead of address on the private network (see RFC 6762 and
729 https://www.howtogeek.com/167190/).
[945ccaa]730
731 menu "Network configuration"
732 config INTERFACE
733 string "netword card name"
734 default "eth0"
[6990d80]735 help
[48700c3]736 eth0 is used in most cases. Virtual interfaces may get other
[6990d80]737 names (for example enp0s3 for the default network stack in qemu).
738 Systemd may also rename network interfaces according to their
739 bus addresses.
[945ccaa]740 config IP_ADDR
741 string "Static IP address"
742 default "10.0.2.9"
[6990d80]743 help
744 The default here is for a virtual interface in qemu. Private
[f45af2c]745 networks have addresses in the range 10.x.x.x or 192.168.x.x.
[6990d80]746 You have to know your network prefix. Then the last figure
747 may be anything you like.
748
[945ccaa]749 config GATEWAY
750 string "Gateway"
751 default "10.0.2.2"
[6990d80]752 help
753 Again, this default is for a qemu network stack. Usually, the
754 gateway is the address of your firewall.
[945ccaa]755 config PREFIX
756 string "Subnet prefix"
757 default "24"
[6990d80]758 help
759 Again, this default is for a qemu network stack, but is also
760 the most used in private networks.
[945ccaa]761 config BROADCAST
762 string "Broadcast address"
763 default "10.0.2.255"
764 config DOMAIN
[6990d80]765 string "Domain name (see help)"
766 default "local"
767 help
768 Domain Name:
769 Doamin names are registered, so if your computer is on a public
770 network, you cannot use any name you'd like. On a public
771 network, you should have been given a domain name by
772 your corporation, institution, etc.
773 If your network is really private, that is behind a firewall
774 such as a box for connecting to an ISP, you can choose any
775 domain you'd like. You can also opt for "local", see RFC 6762,
776 or "something.test", see RFC 6761.
[945ccaa]777 config DNS1
778 string "Primary Name server"
779 default "10.0.2.3"
780 config DNS2
781 string "Secondary Name server"
782 default "8.8.8.8"
783 endmenu # Network configuration
784
785 menu "Console configuration"
786 config FONT
787 string "Console font"
788 default "lat0-16"
[3b43e17b]789 help
790 Unicode mode is set by default. Setting FONT_MAP, FONT_UNIMAP,
791 etc, must be done manually.
[945ccaa]792 config KEYMAP
793 string "Keymap name"
794 default "us"
[3b43e17b]795 config LOCAL
796 boolean "Hardware clock is set to local time"
797 default n
798 help
799 If the harware clock is set to local time, answer yes,
800 If it is set to UTC, answer no
801 config LOG_LEVEL
802 string "Default log level (1-8)"
803 default "4"
[f596dde]804 depends on BOOK_LFS
[3b43e17b]805 help
806 This can be changed using dmesg. 1 means "no message",
807 8 shows every message sent by the kernel, which is very
808 noisy. The default at boot time is 7, which is quite
809 noisy too.
[945ccaa]810 endmenu # Console configuration
811
812endmenu #--- System configuration
[a705708]813
[e5d44f5]814menu "Advanced Features"
[e3ccc27]815depends on !BOOK_BLFS
[e5d44f5]816
817 #--- Optimizations
818 config CONFIG_OPTIMIZE
[74601a7]819 bool "Optimization"
[e5d44f5]820 default n
821 help
822 # Opens a menu for various optimization settings:
823 # Actual optimization flags MUST be defined in ./optimize/*
824 # before activating this option.
825 #
826 # WARNING: The use of build optimizations may lead to build issues.
827 # If the system doesn't work as expected, please rebuild
828 # without optimizations before asking for support.
[74601a7]829 menu "Optimization settings"
[e5d44f5]830 depends on CONFIG_OPTIMIZE
831
832 choice
[f596dde]833 prompt "Optimization level"
[e5d44f5]834 default OPT_1
835 help
836 #-- Optimization values are set in optimize/* files
837
838 config OPT_1
839 bool "Final system only"
840
841 config OPT_2
842 bool "Both temp tools and final system"
843
844 endchoice
[84a3fda]845
[9d665db]846 endmenu # Optimization settings
[e5d44f5]847 config OPTIMIZE
848 int
849 default "0" if !CONFIG_OPTIMIZE
850 default "1" if OPT_1
851 default "2" if OPT_2
[84a3fda]852
[e5d44f5]853 #--- End Optimizations
[74601a7]854
[645ec47]855 config REPORT
856 bool "Create SBU and disk usage report"
857 default y
[74601a7]858
[645ec47]859 config SAVE_CH5
[cd87e52]860 bool "Save temporary system work"
[645ec47]861 depends on BOOK_LFS || BOOK_LFS_SYSD
[74601a7]862 default n
863 help
[cd87e52]864 Save the state of jhalfs after finishing building the temporary
865 system
[645ec47]866
867 if you tick this item, the whole $LFS directory is
[cd87e52]868 saved when chapter 7 is finished. It'll be in a .tar
869 file in the $BUILD_DIR/jhalfs directory
[74601a7]870
[645ec47]871 #--- ICA
872 config COMPARE
873 bool "Run comparison analysis on final stage"
874 default n
[74601a7]875 help
[645ec47]876 #-- Should an iterative comparison analysis be performed?
877 #
878 # Unless you are familiar with ICA, do not
879 # select this option
880 #
881 # ICA is an analysis tool for comparing one
882 # build to the next. Builds mays differ from one iteration
883 # to another due to the build order and this tool try
884 # to ferret out those differences by examining the stored
885 # build logs and binary files.
886 #
887 # The scripts are well commented and can be found in ./extras/*
888 #
889
890 config ITERATIONS
891 int "Number of test runs (2,3,4,5)" if COMPARE
892 depends on COMPARE
893 range 2 5
894 default 3
[74601a7]895
[645ec47]896 config RUN_ICA
897 bool
898 default y if COMPARE
899
900 #--- End ICA
[a705708]901
[e5d44f5]902 #-- Internal Settings
903 menu "Internal Settings (WARNING: for jhalfs developers only)"
[4da2512]904
[e5d44f5]905 config SCRIPT_ROOT
906 string "Scripts root"
907 default "jhalfs"
[4da2512]908
[e5d44f5]909 config JHALFSDIR
910 string "jhalfs directory"
911 default "$BUILDDIR/$SCRIPT_ROOT"
[4da2512]912
[e5d44f5]913 config LOGDIRBASE
914 string "Build logs directory basename"
915 default "logs"
[93346ee]916
[e5d44f5]917 config LOGDIR
918 string "Build logs directory"
919 default "$JHALFSDIR/$LOGDIRBASE"
[93346ee]920
[e5d44f5]921 config TESTLOGDIRBASE
922 string "Test suites logs directory basename"
923 default "test-logs"
[4da2512]924
[e5d44f5]925 config TESTLOGDIR
926 string "Test suites logs directory"
927 default "$JHALFSDIR/$TESTLOGDIRBASE"
[93346ee]928
[e5d44f5]929 config FILELOGDIRBASE
930 string "Installed files logs directory basename"
931 default "installed-files"
[93346ee]932
[e5d44f5]933 config FILELOGDIR
934 string "Installed files logs directory"
935 default "$JHALFSDIR/$FILELOGDIRBASE"
[4da2512]936
[e5d44f5]937 config ICALOGDIR
938 string "ICA logs directory"
939 default "$LOGDIR/ICA"
[4da2512]940
[e5d44f5]941 config MKFILE
942 string "Makefile"
943 default "$JHALFSDIR/Makefile"
[4da2512]944
[e5d44f5]945 config XSL
946 string "XSL stylesheet"
[8825e69]947 default "lfs.xsl"
[4da2512]948
[e5d44f5]949 config PKG_LST
950 string "Package contents list"
951 default "unpacked"
[4da2512]952
[0861416]953 config DEL_LA_FILES
954 bool "Remove libtool .la files"
955 default y
956 help
957 #-- Remove files libxxx.la installed by libtool. Only set to
958 # "n" if you know what you are doing. For a rationale
959 # see https://blog.flameeyes.eu/tags/lafiles/
960
[e5d44f5]961 #--- End Internal Settings
962 endmenu
[4da2512]963
[a705708]964#--- End Advanced Features
965endmenu
[7b6ecc5]966
[a16f769]967config REBUILD_MAKEFILE
[06eddf4]968# depends on !BOOK_BLFS
[e5d44f5]969 bool "Rebuild the Makefile (see help)"
970 default n
971 help
972 #-- Rebuild the Makefile
973 #
974 # This option allows to rebuild the Makefile after
975 # customizing the base system build scripts.
976 #
977 # See README.CUSTOM for more info about this feature.
[06eddf4]978 # Note that you should do that after configuring a jhalfs
979 # build, and only if you need changing the build scripts order
980 # or add a new one.
Note: See TracBrowser for help on using the repository browser.