Changeset 18b1643 in mainline for build_all.sh


Ignore:
Timestamp:
2019-08-17T12:49:43Z (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:
43255da
Parents:
8183b35
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-07-01 11:48:09)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-08-17 12:49:43)
Message:

Add standalone configure.sh script

File:
1 edited

Legend:

Unmodified
Added
Removed
  • build_all.sh

    r8183b35 r18b1643  
    2929for profile in $PROFILES; do
    3030        # echo "Configuring profile ${profile}"
    31         if [ -f ${profile}/build.ninja ]; then
    32                 script -q -e /dev/null -c "ninja -C '${profile}' build.ninja" </dev/null >"${profile}/configure_output.log" 2>&1  &
    33                 echo "$!" >"${profile}/configure.pid"
    34                 continue
    35         fi
    3631
    37         # Let HelenOS config tool write out Makefile.config and config.h.
    3832        mkdir -p ${profile} || exit 1
    39         cd ${profile} || exit 1
    40         "${SOURCE_DIR}/tools/config.py" "${CONFIG_RULES}" "${CONFIG_DEFAULTS}" hands-off "${profile}" || exit 1
    41         cd -
    42 
    43 
    44         if [ "$profile" = 'special/abs32le' ]; then
    45                 cross_target='ia32'
    46         else
    47                 cross_target=`dirname $profile`
    48                 if [ "$cross_target" = '.' ]; then
    49                         cross_target=$profile
    50                 fi
    51         fi
    52 
    53         script -q -e /dev/null -c "meson '${SOURCE_DIR}' '${profile}' --cross-file '${SOURCE_DIR}/meson/cross/${cross_target}'" </dev/null >"${profile}/configure_output.log" 2>&1 &
     33        script -q -e /dev/null -c "cd '${profile}' && '${SOURCE_DIR}/configure.sh' '${profile}' && ninja build.ninja" </dev/null >"${profile}/configure_output.log" 2>&1  &
    5434        echo "$!" >"${profile}/configure.pid"
    5535done
     
    7959
    8060for profile in $PROFILES; do
     61        echo
    8162        ninja -C ${profile} || exit 1
    8263done
     
    8869
    8970        for profile in $PROFILES; do
     71                echo
    9072                ninja -C ${profile} image_path || exit 1
     73        done
     74
     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
    9182        done
    9283else
Note: See TracChangeset for help on using the changeset viewer.