Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Config.in

    rcd87e52 r6d9bd8e  
    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 
    91menu "BOOK Settings"
    102
     
    430422            #   timing out.
    431423
     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
    432434    config    RUNMAKE
    433435        bool    "Run the makefile"
     
    449451menu "Build Settings"
    450452depends 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
    507453
    508454    #--- Test Suites
     
    522468            #  do not stop on test suite failures.
    523469
     470    menu "Test settings"
     471    depends on    CONFIG_TESTS
    524472    choice
    525         depends on    CONFIG_TESTS
    526473        prompt    "Tests level"
    527474        default    TST_1
     
    543490
    544491    endchoice
     492
     493    endmenu # test settings
    545494
    546495    config    TEST
     
    815764depends on !BOOK_BLFS
    816765
    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 
    855766    config    REPORT
    856767        bool "Create SBU and disk usage report"
     
    858769
    859770    config    SAVE_CH5
    860         bool "Save temporary system work"
     771        bool "Save Chapter 5 work"
    861772        depends on BOOK_LFS || BOOK_LFS_SYSD
    862773        default n
    863774        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:
    866776           
    867777            if you tick this item, the whole $LFS directory is
    868             saved when chapter 7 is finished. It'll be in a .tar
    869             file in the $BUILD_DIR/jhalfs directory
     778            saved when chapter 5 is finished. It'll be in an xz
     779            compressed tarball in the $LFS/jhalfs directory
    870780
    871781    #--- ICA
     
    899809
    900810    #--- 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
    901864
    902865    #-- Internal Settings
Note: See TracChangeset for help on using the changeset viewer.