Changeset 645ec47
- Timestamp:
- 11/15/2023 05:24:22 PM (6 months ago)
- Branches:
- ablfs-more, trunk
- Children:
- 3c43655
- Parents:
- 1352172
- git-author:
- Pierre Labastie <pierre.labastie@…> (11/15/2023 05:04:05 PM)
- git-committer:
- Pierre Labastie <pierre.labastie@…> (11/15/2023 05:24:22 PM)
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
Config.in
r1352172 r645ec47 772 772 depends on !BOOK_BLFS 773 773 774 #--- Parallelism 775 menu "Parallelism settings" 776 if HAVE_NPROC 777 config ALL_CORES 778 bool "Use all cores as in new books (say n for old books)" 779 default y 780 help 781 Use book instructions as written for parallelism since version 782 r12.0-87 included. If you answer no, then jhalfs will fall back 783 to a static number of cores, defined below. If you answer y, and 784 your system supports it, you'll be asked for a cpu set to use. 785 There is no detection of book version. If the book version 786 is lower than r12.0-87, say no! 787 788 if ALL_CORES && HAVE_CGROUP 789 config CPUSET 790 string "set of cpus to use, or 'all' for all cpus" 791 default "all" 792 help 793 See "List format" in cpuset(7). Choosing cpus depend 794 on the topology of your processors. Sometimes two 795 hyperthreads on the same core are numbered consecutively. 796 For example for using all cores and no hyperthreading on 797 a Haswell, use "0,2,4,6". Other brands may have a different 798 topology, and may require e.g. "0-3" to use the first 4 cores. 799 If not sure, keep the default. 800 endif 801 802 endif # HAVE_NPROC 803 if !HAVE_NPROC 804 config ALL_CORES 805 bool 806 default n 807 endif 808 809 config N_PARALLEL 810 int "Number of parallel `make' jobs" 811 depends on !ALL_CORES 812 default 1 813 help 814 #-- The usual recommandation is (number of CPU cores)+1 815 # Do not set for meaningful SBU calculations. 816 817 config REALSBU 818 bool "Build Binutils pass1 without parallelism (Real SBU)" 819 default n 820 help 821 #-- Use -j1 in make invokation for Binutils pass1 to 822 # get a valid SBU value. 823 endmenu # parallelism 824 825 #--- Optimizations 826 config CONFIG_OPTIMIZE 827 bool "Optimization" 828 default n 829 help 830 # Opens a menu for various optimization settings: 831 # Actual optimization flags MUST be defined in ./optimize/* 832 # before activating this option. 833 # 834 # WARNING: The use of build optimizations may lead to build issues. 835 # If the system doesn't work as expected, please rebuild 836 # without optimizations before asking for support. 837 menu "Optimization settings" 838 depends on CONFIG_OPTIMIZE 839 840 choice 841 prompt "Optimization level" 842 default OPT_1 843 help 844 #-- Optimization values are set in optimize/* files 845 846 config OPT_1 847 bool "Final system only" 848 849 config OPT_2 850 bool "Both temp tools and final system" 851 852 endchoice 853 854 endmenu # Optimization settings 855 config OPTIMIZE 856 int 857 default "0" if !CONFIG_OPTIMIZE 858 default "1" if OPT_1 859 default "2" if OPT_2 860 861 #--- End Optimizations 862 774 863 config REPORT 775 864 bool "Create SBU and disk usage report" … … 817 906 818 907 #--- End ICA 819 820 #--- Optimizations821 config CONFIG_OPTIMIZE822 bool "Optimization"823 default n824 help825 # Opens a menu for various optimization settings:826 # Actual optimization flags MUST be defined in ./optimize/*827 # before activating this option.828 #829 # WARNING: The use of build optimizations may lead to build issues.830 # If the system doesn't work as expected, please rebuild831 # without optimizations before asking for support.832 menu "Optimization settings"833 depends on CONFIG_OPTIMIZE834 835 choice836 prompt "Optimization level"837 default OPT_1838 help839 #-- Optimization values are set in optimize/* files840 841 config OPT_1842 bool "Final system only"843 844 config OPT_2845 bool "Both temp tools and final system"846 847 endchoice848 849 endmenu # Optimization settings850 config OPTIMIZE851 int852 default "0" if !CONFIG_OPTIMIZE853 default "1" if OPT_1854 default "2" if OPT_2855 856 #--- End Optimizations857 #--- Parallelism858 menu "Parallelism settings"859 if HAVE_NPROC860 config ALL_CORES861 bool "Use all cores as in the book"862 default y863 help864 Use book instructions as written for parallelism. If you865 answer no, then jhalfs will fall back to a static number of866 cores, defined below. If you answer y, and your system867 supports it, you'll be asked for a cpu set to use.868 869 if HAVE_CGROUP870 config CPUSET871 string "set of cpus to use, or 'all' for all cpus"872 default "all"873 help874 See "List format" in cpuset(7). Choosing cpus depend875 on the topology of your processors. Sometimes two876 hyperthreads on the same core are numbered consecutively.877 For example for using all cores and no hyperthreading on878 a Haswell, use "0,2,4,6". Other brands may have a different879 topology, and may require e.g. "0-3" to use the first 4 cores.880 If not sure, keep the default.881 endif882 if !HAVE_CGROUP883 config CPUSET884 string885 default "all"886 endif887 888 endif # HAVE_NPROC889 if !HAVE_NPROC890 config ALL_CORES891 bool892 default n893 endif894 895 config N_PARALLEL896 int "Number of parallel `make' jobs"897 depends on !ALL_CORES898 default 1899 help900 #-- The usual recommandation is (number of CPU cores)+1901 # Do not set for meaningful SBU calculations.902 903 config REALSBU904 bool "Build Binutls pass1 without parallelism (Real SBU)"905 depends on ALL_CORES != 1906 default n907 help908 #-- Use -j1 in make invokation for Binutils pass1 to909 # get a valid SBU value.910 endmenu # parallelism911 912 908 913 909 #-- Internal Settings -
common/libs/func_validate_configs.sh
r1352172 r645ec47 36 36 37 37 # Full list of books settings 38 local -r lfs_PARAM_LIST="$LFS_book $GENERAL_common $LFS_build $LFS_system $ADVANCED_chroot N_PARALLEL REALSBU SAVE_CH5 $ADVANCED_common"38 local -r lfs_PARAM_LIST="$LFS_book $GENERAL_common $LFS_build $LFS_system $ADVANCED_chroot ALL_CORES CPUSET N_PARALLEL REALSBU SAVE_CH5 $ADVANCED_common" 39 39 # local -r blfs_PARAM_LIST="BRANCH_ID BLFS_ROOT BLFS_XML TRACKING_DIR" 40 40 … … 134 134 RETRYDOWNLOADCNT) [[ "$GETPKG" = "y" ]] && echo -e "`eval echo $PARAM_VALS`" ;; 135 135 DOWNLOADTIMEOUT) [[ "$GETPKG" = "y" ]] && echo -e "`eval echo $PARAM_VALS`" ;; 136 N_PARALLEL) [[ "$OPTIMIZE" -gt "0" ]] && echo -e "`eval echo $PARAM_VALS`" ;;137 REALSBU) [[ "$OPTIMIZE" = "2" ]] && echo -e "`eval echo $PARAM_VALS`" ;;136 CPUSET) [[ "$HAVE_CGROUP" = "y" ]] && [[ "$ALL_CORES" = "y" ]] && echo -e "`eval echo $PARAM_VALS`" ;; 137 N_PARALLEL) [[ "$ALL_CORES" = "n" ]] && echo -e "`eval echo $PARAM_VALS`" ;; 138 138 139 139 # Envars that requires some validation -
jhalfs
r1352172 r645ec47 176 176 UNICODE=${UNICODE:=n} 177 177 LOCAL=${LOCAL:=n} 178 ALL_CORES=${ALL_CORES:=n} 178 179 REALSBU=${REALSBU:=n} 179 180 SAVE_CH5=${SAVE_CH5:=n} … … 288 289 # optimize configurations 289 290 load_file optimize/opt_config 'Loading optimization config' 290 # The number of parallel jobs is taken from configuration now 291 # Validate optimize settings, if required 292 validate_opt_settings 293 fi 294 # Parallelization is outside optimization, because it is now in the book 295 if [[ "$ALL_CORES" = "n" ]]; then 291 296 # shellcheck disable=SC2034 292 297 JH_MAKEFLAGS="-j${N_PARALLEL}" 293 # Validate optimize settings, if required294 validate_opt_settings295 298 fi 296 299 # -
optimize/optimize_functions
r1352172 r645ec47 17 17 echo -e "asking for support.${OFF}\n" 18 18 19 echo -e "MAKEFLAGS: ${L_arrow}${BOLD}${JH_MAKEFLAGS}${OFF}${R_arrow}" 20 [ -n "$JH_MAKEFLAGS" ] && \ 21 echo -e "BLACK_LIST: ${L_arrow}${BOLD}${BLACK_LIST}${OFF}${R_arrow}\n" 19 # [ -n "$JH_MAKEFLAGS" ] && \ 20 # echo -e "BLACK_LIST: ${L_arrow}${BOLD}${BLACK_LIST}${OFF}${R_arrow}\n" 22 21 23 22 echo -e "DEF_OPT_MODE: ${L_arrow}${BOLD}${DEF_OPT_MODE}${OFF}${R_arrow}\n"
Note:
See TracChangeset
for help on using the changeset viewer.