Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • LFS/master.sh

    rc552eab r04a608b  
    128128      # If using optimizations, write the instructions
    129129      case "${OPTIMIZE}$1${nb_chaps}${this_script}${REALSBU}" in
    130           0* | *binutils-pass1y | 15* | 167* | 177*)
    131               wrt_makeflags "$name" "-j1" "1" ;;
    132           *kernel*) # No CFLAGS for kernel
    133               wrt_makeflags "$name" "$JH_MAKEFLAGS" "$N_PARALLEL" ;;
    134           *)  wrt_optimize "$name" &&
    135               wrt_makeflags "$name" "$JH_MAKEFLAGS" "$N_PARALLEL" ;;
     130          0* | *binutils-pass1y | 15* | 167* | 177*) ;;
     131          *kernel*) ;; # No CFLAGS for kernel
     132          *)  wrt_optimize "$name" ;;
    136133      esac
    137     fi
     134      # There is no need to tweak MAKEFLAGS anymore, this is done
     135      # by lfs.xsl. But still, NINJAJOBS needs to be set if
     136      # N_PARALLEL is defined.
     137      if [ -n "N_PARALLEL" ]; then
     138         wrt_makeflags "$name" "$JH_MAKEFLAGS" "$N_PARALLEL"
     139      fi
     140    fi # end of package specific instructions
    138141
    139142# Some scriptlet have a special treatment; otherwise standard
     
    287290  done
    288291
     292  # If CPUSET is defined and not equal to "all", then we define a first target
     293  # that calls a script which re-enters make calling target all
     294  if [ -n "$CPUSET" ] && [ "$CPUSET" != all ]; then
     295(
     296    cat << EOF
     297
     298all-with-cpuset:
     299        @CPUSPEC="\$(CPUSET)" ./run-in-cgroup.sh \$(MAKE) all
     300EOF
     301) >> $MKFILE
     302  fi
    289303  # Drop in the main target 'all:' and the chapter targets with each sub-target
    290304  # as a dependency. Also prevent running targets in parallel.
Note: See TracChangeset for help on using the changeset viewer.