Changeset d3357e9 in mainline for build_all.sh


Ignore:
Timestamp:
2019-08-17T12:49:43Z (6 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:
f69d5a8
Parents:
56440a5
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-06-30 15:23:58)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-08-17 12:49:43)
Message:

Make building bootable images optional

File:
1 edited

Legend:

Unmodified
Added
Removed
  • build_all.sh

    r56440a5 rd3357e9  
    2222
    2323
    24 echo "Configuring all profiles."
     24echo
     25echo "###################### Configuring all profiles ######################"
    2526
    2627for profile in $PROFILES; do
    2728        if [ -f ${profile}/build.ninja ]; then
    28                 echo "Profile ${profile} already configured."
     29                ninja -C ${profile} build.ninja || exit 1
    2930                continue
    3031        fi
     
    5152done
    5253
    53 
    54 echo "Building all profiles."
     54echo
     55echo "###################### Building all profiles ######################"
    5556
    5657for profile in $PROFILES; do
    57         ninja -C ${profile}
     58        ninja -C ${profile} || exit 1
    5859done
     60
     61
     62if [ "$#" -eq 1 ] && [ "$1" = 'images' ]; then
     63        echo "###################### Building all images ######################"
     64
     65        for profile in $PROFILES; do
     66                ninja -C ${profile} image_path || exit 1
     67        done
     68else
     69        echo
     70        echo "Bootable images not built."
     71        echo "Run '$0 images' to build them as well."
     72fi
Note: See TracChangeset for help on using the changeset viewer.