blob: 7f5f61f611ec870c95a048a9ddb2bc85710862e5 [file] [log] [blame]
#!/bin/bash
# Copyright 2021 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
set -o errexit
PROJECT_ROOT=$(realpath "$(dirname "${BASH_SOURCE[0]}")"/..)
# If we're outside the chroot, rerun inside.
if [ ! -e /etc/cros_chroot_version ] ; then
exec "${PROJECT_ROOT}/scripts/run-tool" "$0" "$@"
fi
cd "${PROJECT_ROOT}"
scripts/pyrun -m soc.hps_soc "$@"