blob: 9ff3dc4d92031999d9852876292774cd4e1e21c9 [file] [log] [blame]
Alan Green73b365c2021-05-05 20:22:37 +10001#!/bin/bash
Alan Greene56b7ac2021-04-07 14:52:42 +10002
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
Alan Green73b365c2021-05-05 20:22:37 +10009PROJECT_ROOT=$(realpath "$(dirname "${BASH_SOURCE[0]}")"/..)
10BUILD="${PROJECT_ROOT}/build/hps_platform"
Alan Greene56b7ac2021-04-07 14:52:42 +100011
12echo "Recompile software and Load the HPS SoC. "
13echo "Use --build to also build gateware"
14
Alan Green73b365c2021-05-05 20:22:37 +100015"${PROJECT_ROOT}/scripts/pyrun" "${PROJECT_ROOT}/soc/hps_soc.py" "$@"
Alan Greene56b7ac2021-04-07 14:52:42 +100016
Alan Green73b365c2021-05-05 20:22:37 +100017"${PROJECT_ROOT}/scripts/prog" bitstream "${BUILD}/gateware/hps_platform.bit"
18"${PROJECT_ROOT}/scripts/prog" rom \
19 "${BUILD}/software/bios/out/riscv-gcc/rom.bin"