blob: a7d1a4fde2e1e829809154a465826219f1d5615d [file] [log] [blame]
Alan Greene56b7ac2021-04-07 14:52:42 +10001#!/bin/sh
2
3# Copyright 2021 The Chromium OS Authors. All rights reserved.
4# Use of this source code is governed by a BSD-style license that can be
5# found in the LICENSE file.
6
Alan Green9bdd6662021-04-10 07:49:12 +10007set -o errexit
Alan Greene56b7ac2021-04-07 14:52:42 +10008
9PROJECT_ROOT=$(realpath $(dirname ${BASH_SOURCE[0]})/..)
10BUILD=${PROJECT_ROOT}/build/hps_platform
11
12echo "Recompile software and Load the HPS SoC. "
13echo "Use --build to also build gateware"
14
15${PROJECT_ROOT}/scripts/pyrun ${PROJECT_ROOT}/soc/hps_soc.py $*
16
17${PROJECT_ROOT}/scripts/prog bitstream ${BUILD}/gateware/hps_platform.bit
18${PROJECT_ROOT}/scripts/prog rom ${BUILD}/software/bios/out/riscv-gcc/rom.bin