Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • LFS/master.sh

    r04a608b rc552eab  
    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           *kernel*) ;; # No CFLAGS for kernel
    132           *)  wrt_optimize "$name" ;;
     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" ;;
    133136      esac
    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
     137    fi
    141138
    142139# Some scriptlet have a special treatment; otherwise standard
     
    290287  done
    291288
    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 
    298 all-with-cpuset:
    299         @CPUSPEC="\$(CPUSET)" ./run-in-cgroup.sh \$(MAKE) all
    300 EOF
    301 ) >> $MKFILE
    302   fi
    303289  # Drop in the main target 'all:' and the chapter targets with each sub-target
    304290  # as a dependency. Also prevent running targets in parallel.
Note: See TracChangeset for help on using the changeset viewer.