view more/native-build-from-build.sh @ 1737:1acbe7e78d9d draft

Switch from bz2 to gz tarball output. bz2 is slowly being replaced by lz variants, but gzip isn't going anywhere. (It retains a niche as a streaming protocol, it's the 80/20 solution optimizing for speed, low memory requirements, and simple compressor implementation.)
author Rob Landley <rob@landley.net>
date Fri, 20 Feb 2015 13:12:45 -0600
parents b89324905ca2
children
line wrap: on
line source

#!/bin/bash

# Run native build out of build directory, using host-tools.sh if
# available.

SYSIMG="build/system-image-$1"

if [ ! -e "$SYSIMG" ]
then
  echo "no $SYSIMG" >&2
  exit 1
fi

PATH="$PWD/build/host:$PWD/build/native-compiler-$1:$PATH"

X=$(readlink -f "$2" 2>/dev/null)
if [ -z "$X" ]
then
  echo "No control image $2" >&2
  exit 1
fi

cd "$SYSIMG" && ./native-build.sh "$X"