Changeset cb15b49c in mainline for tools/toolchain.sh


Ignore:
Timestamp:
2018-12-03T20:38:54Z (6 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
59564e6
Parents:
4aba581
Message:

implement platform 'all' and adding help message to show_usage

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/toolchain.sh

    r4aba581 rcb15b49c  
    6161        echo "Syntax:"
    6262        echo " $0 [--no-install] [--non-helenos-target] <platform>"
     63        echo " $0 --test-version [<platform>]"
    6364        echo
    6465        echo "Possible target platforms are:"
     
    100101        echo "Start testing the version of the installed software"
    101102        echo
    102 
    103         PLATFORMS=("amd64" "arm32" "ia32" "ia64" "mips32" "mips32eb" "ppc32" "riscv64" "sparc64")
     103       
     104        if [ -z "$1" ] || [ "$1" == "all" ] ; then
     105                PLATFORMS=("amd64" "arm32" "ia32" "ia64" "mips32" "mips32eb" "ppc32" "riscv64" "sparc64")
     106        else
     107                PLATFORMS=("$1")
     108        fi
     109       
    104110       
    105111        if [ -z "${CROSS_PREFIX}" ] ; then
     
    465471while [ "$#" -gt 1 ] ; do
    466472        case "$1" in
     473                --test-version)
     474                        test_version "$2"
     475                        exit
     476                        ;;
    467477                --no-install)
    468478                        REAL_INSTALL=false
     
    484494
    485495case "$1" in
    486         "--test-version")
     496        --test-version)
    487497                test_version
    488498                ;;
Note: See TracChangeset for help on using the changeset viewer.