Changes in Config.in [cd87e52:6d9bd8e]
Legend:
- Unmodified
- Added
- Removed
-
Config.in
rcd87e52 r6d9bd8e 1 # Check for "nproc" presence:2 config HAVE_NPROC3 def_bool $(shell,if nproc &>/dev/null; then echo y; else echo n; fi)4 5 # Check for "cpuset controller in cgroup v2" presence:6 config HAVE_CGROUP7 def_bool $(shell,if grep -q cpuset /sys/fs/cgroup/cgroup.controllers 2>/dev/null; then echo y; else echo n; fi)8 9 1 menu "BOOK Settings" 10 2 … … 430 422 # timing out. 431 423 424 config SERVER 425 string "FTP mirror" 426 default "http://ftp.osuosl.org" 427 depends on GETPKG 428 help 429 #-- FTP mirror to download packages and patches if not found 430 # in $SRC_ARCHIVE 431 # As a last resort, the files will downloaded from upstream, 432 # if possible. 433 432 434 config RUNMAKE 433 435 bool "Run the makefile" … … 449 451 menu "Build Settings" 450 452 depends on !BOOK_BLFS 451 452 #--- Parallelism453 menu "Parallelism settings"454 if HAVE_NPROC455 config ALL_CORES456 bool "Use all cores"457 default y458 help459 If you answer y, MAKEFLAGS will be set to "-j$(nproc)" at the460 beginning of each package script, and book instructions will not461 be changed otherwise. This will run the scripts with the same462 settings as in the book since version r12.0-87 included. Before463 that version, this will run the builds with all cores, but some464 test suites may still be run sequentially. You'll be asked for465 a CPU set to use, so that the number of jobs can still be limited466 in this way (useful for measuring SBU values at -j4, for467 example).468 If you answer n, then jhalfs will fall back to a static number469 of cores, defined below.470 471 if ALL_CORES && HAVE_CGROUP472 config CPUSET473 string "set of cpus to use, or 'all' for all cpus"474 default "all"475 help476 See "List format" in cpuset(7). Choosing cpus depend477 on the topology of your processors. Sometimes two478 hyperthreads on the same core are numbered consecutively.479 For example for using all cores and no hyperthreading on480 a Haswell, use "0,2,4,6". Other brands may have a different481 topology, and may require e.g. "0-3" to use the first 4 cores.482 If not sure, keep the default.483 endif484 485 endif # HAVE_NPROC486 if !HAVE_NPROC487 config ALL_CORES488 bool489 default n490 endif491 492 config N_PARALLEL493 int "Number of parallel `make' jobs"494 depends on !ALL_CORES495 default 1496 help497 #-- The usual recommandation is (number of CPU cores)+1498 # Do not set for meaningful SBU calculations.499 500 config REALSBU501 bool "Build Binutils pass1 without parallelism (Real SBU)"502 default n503 help504 #-- Use -j1 in make invokation for Binutils pass1 to505 # get a valid SBU value.506 endmenu # parallelism507 453 508 454 #--- Test Suites … … 522 468 # do not stop on test suite failures. 523 469 470 menu "Test settings" 471 depends on CONFIG_TESTS 524 472 choice 525 depends on CONFIG_TESTS526 473 prompt "Tests level" 527 474 default TST_1 … … 543 490 544 491 endchoice 492 493 endmenu # test settings 545 494 546 495 config TEST … … 815 764 depends on !BOOK_BLFS 816 765 817 #--- Optimizations818 config CONFIG_OPTIMIZE819 bool "Optimization"820 default n821 help822 # 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 rebuild828 # without optimizations before asking for support.829 menu "Optimization settings"830 depends on CONFIG_OPTIMIZE831 832 choice833 prompt "Optimization level"834 default OPT_1835 help836 #-- Optimization values are set in optimize/* files837 838 config OPT_1839 bool "Final system only"840 841 config OPT_2842 bool "Both temp tools and final system"843 844 endchoice845 846 endmenu # Optimization settings847 config OPTIMIZE848 int849 default "0" if !CONFIG_OPTIMIZE850 default "1" if OPT_1851 default "2" if OPT_2852 853 #--- End Optimizations854 855 766 config REPORT 856 767 bool "Create SBU and disk usage report" … … 858 769 859 770 config SAVE_CH5 860 bool "Save temporary systemwork"771 bool "Save Chapter 5 work" 861 772 depends on BOOK_LFS || BOOK_LFS_SYSD 862 773 default n 863 774 help 864 Save the state of jhalfs after finishing building the temporary 865 system 775 Save the state of jhalfs at the end of chapter 5: 866 776 867 777 if you tick this item, the whole $LFS directory is 868 saved when chapter 7 is finished. It'll be in a .tar869 file in the $BUILD_DIR/jhalfs directory778 saved when chapter 5 is finished. It'll be in an xz 779 compressed tarball in the $LFS/jhalfs directory 870 780 871 781 #--- ICA … … 899 809 900 810 #--- End ICA 811 812 #--- Optimizations 813 config CONFIG_OPTIMIZE 814 bool "Optimization and parallelization" 815 default n 816 help 817 # Opens a menu for various optimization settings: 818 # Actual optimization flags MUST be defined in ./optimize/* 819 # before activating this option. 820 # 821 # WARNING: The use of build optimizations may lead to build issues. 822 # If the system doesn't work as expected, please rebuild 823 # without optimizations before asking for support. 824 menu "Parallelization and Optimization settings" 825 depends on CONFIG_OPTIMIZE 826 827 config N_PARALLEL 828 int "Number of parallel `make' jobs" 829 default 1 830 help 831 #-- The usual recommandation is (number of CPU cores)+1 832 # Do not set for meaningful SBU calculations. 833 834 choice 835 prompt "Optimization level" 836 default OPT_1 837 help 838 #-- Optimization values are set in optimize/* files 839 840 config OPT_1 841 bool "Final system only" 842 843 config OPT_2 844 bool "Both temp tools and final system" 845 846 endchoice 847 848 config REALSBU 849 bool "Build Binutls pass1 without optimization (Real SBU)" 850 depends on OPT_2 851 default n 852 help 853 #-- Use -j1 in make invokation for Binutils pass1 to 854 # get a valid SBU value. 855 856 endmenu # Optimization settings 857 config OPTIMIZE 858 int 859 default "0" if !CONFIG_OPTIMIZE 860 default "1" if OPT_1 861 default "2" if OPT_2 862 863 #--- End Optimizations 901 864 902 865 #-- Internal Settings
Note:
See TracChangeset
for help on using the changeset viewer.