Alan Green | e56b7ac | 2021-04-07 14:52:42 +1000 | [diff] [blame] | 1 | #!/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 Green | 9bdd666 | 2021-04-10 07:49:12 +1000 | [diff] [blame] | 7 | set -o errexit |
Alan Green | e56b7ac | 2021-04-07 14:52:42 +1000 | [diff] [blame] | 8 | |
| 9 | PROJECT_ROOT=$(realpath $(dirname ${BASH_SOURCE[0]})/..) |
| 10 | BUILD=${PROJECT_ROOT}/build/hps_platform |
| 11 | |
| 12 | echo "Recompile software and Load the HPS SoC. " |
| 13 | echo "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 |