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 | |
| 7 | |
| 8 | PROJECT_ROOT=$(realpath $(dirname ${BASH_SOURCE[0]})/..) |
| 9 | BUILD=${PROJECT_ROOT}/build/hps_platform |
| 10 | |
| 11 | echo "Recompile software and Load the HPS SoC. " |
| 12 | echo "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 |