Changes in Config.in [6d9bd8e:cd87e52]
Legend:
- Unmodified
- Added
- Removed
-
Config.in
r6d9bd8e rcd87e52 1 # Check for "nproc" presence: 2 config HAVE_NPROC 3 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_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 1 9 menu "BOOK Settings" 2 10 … … 422 430 # timing out. 423 431 424 config SERVER425 string "FTP mirror"426 default "http://ftp.osuosl.org"427 depends on GETPKG428 help429 #-- FTP mirror to download packages and patches if not found430 # in $SRC_ARCHIVE431 # As a last resort, the files will downloaded from upstream,432 # if possible.433 434 432 config RUNMAKE 435 433 bool "Run the makefile" … … 451 449 menu "Build Settings" 452 450 depends on !BOOK_BLFS 451 452 #--- Parallelism 453 menu "Parallelism settings" 454 if HAVE_NPROC 455 config ALL_CORES 456 bool "Use all cores" 457 default y 458 help 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. 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 453 507 454 508 #--- Test Suites … … 468 522 # do not stop on test suite failures. 469 523 470 menu "Test settings"471 depends on CONFIG_TESTS472 524 choice 525 depends on CONFIG_TESTS 473 526 prompt "Tests level" 474 527 default TST_1 … … 490 543 491 544 endchoice 492 493 endmenu # test settings494 545 495 546 config TEST … … 764 815 depends on !BOOK_BLFS 765 816 817 #--- Optimizations 818 config CONFIG_OPTIMIZE 819 bool "Optimization" 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. 829 menu "Optimization settings" 830 depends on CONFIG_OPTIMIZE 831 832 choice 833 prompt "Optimization level" 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 845 846 endmenu # Optimization settings 847 config OPTIMIZE 848 int 849 default "0" if !CONFIG_OPTIMIZE 850 default "1" if OPT_1 851 default "2" if OPT_2 852 853 #--- End Optimizations 854 766 855 config REPORT 767 856 bool "Create SBU and disk usage report" … … 769 858 770 859 config SAVE_CH5 771 bool "Save Chapter 5work"860 bool "Save temporary system work" 772 861 depends on BOOK_LFS || BOOK_LFS_SYSD 773 862 default n 774 863 help 775 Save the state of jhalfs at the end of chapter 5: 864 Save the state of jhalfs after finishing building the temporary 865 system 776 866 777 867 if you tick this item, the whole $LFS directory is 778 saved when chapter 5 is finished. It'll be in an xz779 compressed tarball in the $LFS/jhalfs directory868 saved when chapter 7 is finished. It'll be in a .tar 869 file in the $BUILD_DIR/jhalfs directory 780 870 781 871 #--- ICA … … 809 899 810 900 #--- End ICA 811 812 #--- Optimizations813 config CONFIG_OPTIMIZE814 bool "Optimization and parallelization"815 default n816 help817 # 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 rebuild823 # without optimizations before asking for support.824 menu "Parallelization and Optimization settings"825 depends on CONFIG_OPTIMIZE826 827 config N_PARALLEL828 int "Number of parallel `make' jobs"829 default 1830 help831 #-- The usual recommandation is (number of CPU cores)+1832 # Do not set for meaningful SBU calculations.833 834 choice835 prompt "Optimization level"836 default OPT_1837 help838 #-- Optimization values are set in optimize/* files839 840 config OPT_1841 bool "Final system only"842 843 config OPT_2844 bool "Both temp tools and final system"845 846 endchoice847 848 config REALSBU849 bool "Build Binutls pass1 without optimization (Real SBU)"850 depends on OPT_2851 default n852 help853 #-- Use -j1 in make invokation for Binutils pass1 to854 # get a valid SBU value.855 856 endmenu # Optimization settings857 config OPTIMIZE858 int859 default "0" if !CONFIG_OPTIMIZE860 default "1" if OPT_1861 default "2" if OPT_2862 863 #--- End Optimizations864 901 865 902 #-- Internal Settings
Note:
See TracChangeset
for help on using the changeset viewer.