Changeset 53bc10b


Ignore:
Timestamp:
05/06/2006 11:06:07 AM (18 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
experimental
Children:
5f7d08f
Parents:
2c2471d
Message:

Added MAKEFLAGS support.

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • LFS/master.sh

    r2c2471d r53bc10b  
    113113      # Insert instructions for unpacking the package and to set the PKGDIR variable.
    114114      wrt_unpack "$FILE"
    115       [[ "$OPTIMIZE" = "2" ]] &&  wrt_optimize "$name"
     115      [[ "$OPTIMIZE" = "2" ]] &&  wrt_optimize "$name" && wrt_makeflags
    116116    fi
    117117
     
    217217      FILE="$name-$vrs.tar.*"
    218218      wrt_unpack2 "$FILE"
    219       [[ "$OPTIMIZE" != "0" ]] &&  wrt_optimize "$name"
     219      [[ "$OPTIMIZE" != "0" ]] &&  wrt_optimize "$name" && wrt_makeflags
    220220    fi
    221221
  • optimize/opt_config

    r2c2471d r53bc10b  
    77#$Id$
    88#
     9
     10#--- Extra flags passed to the packages make commands
     11#    "unset" will cause the variable to be not set
     12#    instead of just set to null.
     13MAKEFLAGS="-j3"
    914
    1015#--- Default optimization mode
  • optimize/opt_config.d/noOpt

    r2c2471d r53bc10b  
    99#          doing.  By default, this is set to disable optimization
    1010#          of packages known to have build or runtime failure.
     11#
     12#          Also, if you what to use MAKEFLAGS but no build
     13#          optimizations, set this mode in DEF_OPT_LVL
    1114#
    1215# Usage: - Apply optimization string to each variable
  • optimize/optimize_functions

    r2c2471d r53bc10b  
    3131  done
    3232}
     33
     34#----------------------------------#
     35wrt_makeflags() {                  # Apply MAKEFLAGS to build
     36#----------------------------------#
     37  if [[ "$MAKEFLAGS" != "unset" ]]; then
     38(
     39cat << EOF
     40        @echo "export MAKEFLAGS=\"$MAKEFLAGS\"" >> envars
     41EOF
     42) >> $MKFILE.tmp
     43  else
     44    continue
     45  fi
     46}
Note: See TracChangeset for help on using the changeset viewer.