Changeset fa6fbad8 in mainline


Ignore:
Timestamp:
2019-08-17T12:49:44Z (5 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ee353dd8
Parents:
19c2b44
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-07-16 13:23:53)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-08-17 12:49:44)
Message:

Build images by default in build_all.sh

File:
1 edited

Legend:

Unmodified
Added
Removed
  • build_all.sh

    r19c2b44 rfa6fbad8  
    88SOURCE_DIR=`dirname -- "$SOURCE_DIR"`
    99SOURCE_DIR=`cd $SOURCE_DIR && echo $PWD`
     10
     11# Check command line arguments.
     12
     13if [ "$#" -gt 1 ] || [ "$#" -eq 1 -a "$1" != '--no-images' ]; then
     14        echo "Unknown command-line arguments."
     15        echo "Usage:"
     16        echo "\t$0                    # Build everything."
     17        echo "\t$0 --no-images        # Build all code, but don't create bootable images."
     18        exit 1
     19fi
     20
     21if [ "$#" -eq 1 ]; then
     22        NO_IMAGES=true
     23else
     24        NO_IMAGES=false
     25fi
    1026
    1127# Make sure we don't make a mess in the source root.
     
    6379done
    6480
     81if [ "$NO_IMAGES" = 'true' ]; then
     82        echo
     83        echo "Bootable images not built due to argument --no-images."
     84        exit 0
     85fi
    6586
    66 if [ "$#" -eq 1 ] && [ "$1" = 'images' ]; then
     87echo
     88echo "###################### Building all images ######################"
     89
     90for profile in $PROFILES; do
    6791        echo
    68         echo "###################### Building all images ######################"
     92        ninja -C ${profile} image_path || exit 1
     93done
    6994
    70         for profile in $PROFILES; do
    71                 echo
    72                 ninja -C ${profile} image_path || exit 1
    73         done
     95echo
     96for profile in $PROFILES; do
     97        path=`cat ${profile}/image_path`
    7498
    75         echo
    76         for profile in $PROFILES; do
    77                 path=`cat ${profile}/image_path`
    78 
    79                 if [ ! -z "$path" ]; then
    80                         echo "built ${profile}/${path}"
    81                 fi
    82         done
    83 else
    84         echo
    85         echo "Bootable images not built."
    86         echo "Run '$0 images' to build them as well."
    87 fi
     99        if [ ! -z "$path" ]; then
     100                echo "built ${profile}/${path}"
     101        fi
     102done
Note: See TracChangeset for help on using the changeset viewer.