#!/bin/bash # Run native build out of build directory, using host-tools.sh if # available. global SYSIMG := ""build/system-image-$1"" if test ! -e $SYSIMG { echo "no $SYSIMG" > !2 exit 1 } global PATH := ""$PWD/build/host:$PWD/build/native-compiler-$1:$PATH"" global X := $[readlink -f $2 !2 >/dev/null] if test -z $X { echo "No control image $2" > !2 exit 1 } cd $SYSIMG && ./native-build.sh $X