blob: 652535502db2b204e096d469cea59d0e44301494 [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
Dan Callaghan80c299d2022-06-30 11:47:44 +10009if [ ! -e /etc/cros_chroot_version ] ; then
10 echo "HPS helper scripts must be run inside the ChromeOS chroot." >&2
11 exit 1
12fi
13
Alan Green73b365c2021-05-05 20:22:37 +100014PROJECT_ROOT=$(realpath "$(dirname "${BASH_SOURCE[0]}")"/..)
Alan Greene56b7ac2021-04-07 14:52:42 +100015
Dan Callaghan9c8c1b22022-01-06 13:47:57 +110016cd "${PROJECT_ROOT}"
Alan Greene56b7ac2021-04-07 14:52:42 +100017
Dan Callaghan9c8c1b22022-01-06 13:47:57 +110018scripts/pyrun -m soc.hps_soc "$@"