blob: 790f681c6acccb0db1be83dbbf9fa5df772c5a78 [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
7
8PROJECT_ROOT=$(realpath $(dirname ${BASH_SOURCE[0]})/..)
9BUILD=${PROJECT_ROOT}/build/hps_platform
10
11echo "Recompile software and Load the HPS SoC. "
12echo "Use --build to also build gateware"
13
14${PROJECT_ROOT}/scripts/pyrun ${PROJECT_ROOT}/soc/hps_soc.py $*
15
16${PROJECT_ROOT}/scripts/prog bitstream ${BUILD}/gateware/hps_platform.bit
17${PROJECT_ROOT}/scripts/prog rom ${BUILD}/software/bios/out/riscv-gcc/rom.bin