Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Config.in

    r6d9bd8e rcd87e52  
     1# Check for "nproc" presence:
     2config 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:
     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
    19menu "BOOK Settings"
    210
     
    422430            #   timing out.
    423431
    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 
    434432    config    RUNMAKE
    435433        bool    "Run the makefile"
     
    451449menu "Build Settings"
    452450depends 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
    453507
    454508    #--- Test Suites
     
    468522            #  do not stop on test suite failures.
    469523
    470     menu "Test settings"
    471     depends on    CONFIG_TESTS
    472524    choice
     525        depends on    CONFIG_TESTS
    473526        prompt    "Tests level"
    474527        default    TST_1
     
    490543
    491544    endchoice
    492 
    493     endmenu # test settings
    494545
    495546    config    TEST
     
    764815depends on !BOOK_BLFS
    765816
     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
    766855    config    REPORT
    767856        bool "Create SBU and disk usage report"
     
    769858
    770859    config    SAVE_CH5
    771         bool "Save Chapter 5 work"
     860        bool "Save temporary system work"
    772861        depends on BOOK_LFS || BOOK_LFS_SYSD
    773862        default n
    774863        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
    776866           
    777867            if you tick this item, the whole $LFS directory is
    778             saved when chapter 5 is finished. It'll be in an xz
    779             compressed tarball in the $LFS/jhalfs directory
     868            saved when chapter 7 is finished. It'll be in a .tar
     869            file in the $BUILD_DIR/jhalfs directory
    780870
    781871    #--- ICA
     
    809899
    810900    #--- 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
    864901
    865902    #-- Internal Settings
Note: See TracChangeset for help on using the changeset viewer.