Author: pierre
Date: Sun Jan 14 02:26:43 2018
New Revision: 4028

Log:
Do not optimize binutils-pass1 in order to measure the SBU:
- introduce REALSBU variable if Config.in and jhalfs, and display it
- Adpat LFS/master.sh

Modified:
   jhalfs/trunk/Config.in
   jhalfs/trunk/LFS/master.sh
   jhalfs/trunk/common/libs/func_validate_configs.sh
   jhalfs/trunk/jhalfs

Modified: jhalfs/trunk/Config.in
==============================================================================
--- jhalfs/trunk/Config.in      Sat Jan 13 01:34:57 2018        (r4027)
+++ jhalfs/trunk/Config.in      Sun Jan 14 02:26:43 2018        (r4028)
@@ -1211,6 +1211,15 @@
         config    OPT_3
             bool    "Cross tools (only MAKEFLAGS), temp tools and final 
system" if BOOK_CLFS
     endchoice
+
+    config    REALSBU
+        bool    "Build Binutls pass1 without optimization (Real SBU)"
+        depends on (BOOK_LFS || BOOK_LFS_SYSD) && OPT_2
+        default    n
+        help
+           #-- Use -j1 in make invokation for Binutils pass1 to
+           #   get a valid SBU value.
+
 endmenu
     config    OPTIMIZE
         int
@@ -1219,6 +1228,7 @@
         default    "2"    if OPT_2
         default    "3"    if OPT_3
 endif
+
     #--- End Optimizations
 
     #-- Internal Settings

Modified: jhalfs/trunk/LFS/master.sh
==============================================================================
--- jhalfs/trunk/LFS/master.sh  Sat Jan 13 01:34:57 2018        (r4027)
+++ jhalfs/trunk/LFS/master.sh  Sun Jan 14 02:26:43 2018        (r4028)
@@ -131,7 +131,11 @@
       # "uncommented" by the user
       LUSER_wrt_test_log "${this_script}" "$pkg_version"
       # If using optimizations, write the instructions
-      [[ "$OPTIMIZE" = "2" ]] &&  wrt_optimize "$name" && wrt_makeflags "$name"
+      case "${OPTIMIZE}${this_script}${REALSBU}" in
+          *binutils-pass1y) ;;
+          2*) wrt_optimize "$name" && wrt_makeflags "$name" ;;
+          *) ;;
+      esac
     fi
 
     # Insert date and disk usage at the top of the log file, the script run

Modified: jhalfs/trunk/common/libs/func_validate_configs.sh
==============================================================================
--- jhalfs/trunk/common/libs/func_validate_configs.sh   Sat Jan 13 01:34:57 
2018        (r4027)
+++ jhalfs/trunk/common/libs/func_validate_configs.sh   Sun Jan 14 02:26:43 
2018        (r4028)
@@ -51,7 +51,7 @@
   local -r LFS_system="HOSTNAME INTERFACE IP_ADDR GATEWAY PREFIX BROADCAST 
DOMAIN DNS1 DNS2 FONT CONSOLE_MAP UNICODE KEYMAP"
 
   # Full list of books settings
-  local -r   lfs_PARAM_LIST="$LFS_book   $GENERAL_common $LFS_build 
$LFS_system  $ADVANCED_chroot $ADVANCED_common"
+  local -r   lfs_PARAM_LIST="$LFS_book   $GENERAL_common $LFS_build 
$LFS_system  $ADVANCED_chroot REALSBU $ADVANCED_common"
   local -r  hlfs_PARAM_LIST="$HLFS_book  $GENERAL_common $HLFS_build  
$ADVANCED_chroot $ADVANCED_common"
   local -r  clfs_PARAM_LIST="$CLFS_book  $GENERAL_common $CLFS_build  
$ADVANCED_chroot $ADVANCED_common"
   local -r clfs2_PARAM_LIST="$CLFS2_book $GENERAL_common $CLFS2_build          
        $ADVANCED_common"
@@ -156,6 +156,7 @@
       RETRYSRCDOWNLOAD) [[ "$GETPKG" = "y" ]] && echo -e "`eval echo 
$PARAM_VALS`" ;;
       RETRYDOWNLOADCNT) [[ "$GETPKG" = "y" ]] && echo -e "`eval echo 
$PARAM_VALS`" ;;
       DOWNLOADTIMEOUT)  [[ "$GETPKG" = "y" ]] && echo -e "`eval echo 
$PARAM_VALS`" ;;
+      REALSBU)          [[ "$OPTIMIZE" = "2" ]] && echo -e "`eval echo 
$PARAM_VALS`" ;;
 
       # Envars that requires some validation
       LUSER)      echo -e "`eval echo $PARAM_VALS`"

Modified: jhalfs/trunk/jhalfs
==============================================================================
--- jhalfs/trunk/jhalfs Sat Jan 13 01:34:57 2018        (r4027)
+++ jhalfs/trunk/jhalfs Sun Jan 14 02:26:43 2018        (r4028)
@@ -144,6 +144,7 @@
 SET_MISC=${SET_MISC:=n}
 SET_BLOWFISH=${SET_BLOWFISH:=n}
 UNICODE=${UNICODE:=n}
+REALSBU=${REALSBU:=n}
 
 if [[ "${NO_PROGRESS_BAR}" = "y" ]] ; then
        NO_PROGRESS="#"
-- 
http://lists.linuxfromscratch.org/listinfo/alfs-log
Unsubscribe: See the above information page

Reply via email to