1#!/bin/sh
2
3# Copyright 2016 The Fuchsia Authors
4#
5# Use of this source code is governed by a MIT-style
6# license that can be found in the LICENSE file or at
7# https://opensource.org/licenses/MIT
8
9# restore config.mk from the cached configs directory
10# if it exists
11cp -f ./prebuilt/configs/config.mk ./prebuilt/config.mk
12
13echo "Downloading Toolchain"
14./scripts/download-prebuilt
15
16# save config.mk to the configs directory so it will be
17# cached along with the downloaded toolchain
18cp -f ./prebuilt/config.mk ./prebuilt/configs
19
20echo "Starting build '$PROJECT'"
21make $PROJECT -j16
22