Changeset f5f857d for LFS/master.sh


Ignore:
Timestamp:
09/25/2007 09:34:03 PM (17 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
experimental
Children:
c5ae20a
Parents:
5a4f6a7
Message:

Set $TEST_LOG from inside the build scripts.
There is no need now to use the envars file.
Optimize support must be moved to an XSL-based code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LFS/master.sh

    r5a4f6a7 rf5f857d  
    5252        echo "umask 022" >> \$(LUSER_HOME)/.bashrc && \\
    5353        echo "LFS=\$(MOUNT_PT)" >> \$(LUSER_HOME)/.bashrc && \\
    54         echo "SRCDIR=\$(MOUNT_PT)/sources" >> \$(LUSER_HOME)/.bashrc && \\
    5554        echo "LC_ALL=POSIX" >> \$(LUSER_HOME)/.bashrc && \\
    5655        echo "PATH=/tools/bin:/bin:/usr/bin" >> \$(LUSER_HOME)/.bashrc && \\
    5756        echo "export LFS LC_ALL PATH" >> \$(LUSER_HOME)/.bashrc && \\
    5857        echo "source $JHALFSDIR/envars" >> \$(LUSER_HOME)/.bashrc && \\
    59         chown \$(LUSER):\$(LGROUP) \$(LUSER_HOME)/.bashrc && \\
    60         touch envars && \\
    61         chown \$(LUSER) envars
     58        chown \$(LUSER):\$(LGROUP) \$(LUSER_HOME)/.bashrc
    6259        @\$(call housekeeping)
    6360EOF
     
    9693    esac
    9794
    98     # Grab the package name, if the script is building a package
    99     name=`grep "^PACKAGE=" ${file} | sed -e 's@PACKAGE=@@'`
    100 
    10195    # Set the dependency for the first target.
    10296    if [ -z $PREV ] ; then PREV=04_04-settingenvironment ; fi
     
    109103    # as a dependency. Also call the echo_message function.
    110104    LUSER_wrt_target "${this_script}" "$PREV"
    111 
    112     # If $name isn't empty, we've got a package...
    113     if [ "$name" != "" ] ; then
    114       # If the testsuites must be run, initialize the log file
    115       [[ "$TEST" = "3" ]] && LUSER_wrt_test_log "${this_script}"
    116       # If using optimizations, write the instructions
    117       [[ "$OPTIMIZE" = "2" ]] &&  wrt_optimize "$name" && wrt_makeflags "$name"
    118     fi
    119105
    120106    # Run the script.
     
    176162    esac
    177163
    178     # Grab the name of the target.
     164    # Grab the name of the package, if any.
    179165    name=`grep "^PACKAGE=" ${file} | sed -e 's@PACKAGE=@@'`
    180166
     
    208194    esac
    209195
    210     # If $name isn't empty, we've got a package...
    211     if [ "$name" != "" ] ; then
    212       # Touch timestamp file if installed files logs will be created.
    213       # But only for the firt build when running iterative builds.
    214       if [ "${INSTALL_LOG}" = "y" ] && [ "x${N}" = "x" ] ; then
    215         CHROOT_wrt_TouchTimestamp
    216       fi
    217       # If the testsuites must be run, initialize the log file
    218       case $name in
    219         binutils | gcc | glibc )
    220           [[ "$TEST" != "0" ]] && CHROOT_wrt_test_log "${this_script}"
    221           ;;
    222         * )
    223           [[ "$TEST" = "2" ]] || [[ "$TEST" = "3" ]] && CHROOT_wrt_test_log "${this_script}"
    224           ;;
    225       esac
    226       # If using optimizations, write the instructions
    227       [[ "$OPTIMIZE" != "0" ]] &&  wrt_optimize "$name" && wrt_makeflags "$name"
     196    # Touch timestamp file if installed files logs will be created.
     197    # But only for the firt build when running iterative builds.
     198    if [ "$name" != "" ] && [ "${INSTALL_LOG}" = "y" ] && [ "x${N}" = "x" ] ; then
     199      CHROOT_wrt_TouchTimestamp
    228200    fi
    229201
     
    363335            sed -e "s@chroot@$CHROOT_LOC@" \
    364336                -e 's@ \\\@ @g' \
     337                -e 's/  */ /g' \
    365338                -e 's|\\$|&&|g' \
    366339                -e 's|"$$LFS"|$(MOUNT_PT)|' \
Note: See TracChangeset for help on using the changeset viewer.