#!/bin/sh
# build entry point
#
#   build.sh <board> <stage>
#
# boards: x86_64-pc, x86_64-laptop, aarch64-phone
# stages: base, kernel, rootfs, iso, fetch-kernel, install-kernel

set -e
BOARD=${1:-x86_64-pc}
STAGE=${2:-base}
TOP=$(cd "$(dirname "$0")" && pwd)

exec make -C "$TOP" --no-print-directory BOARD="$BOARD" "$STAGE"
