David Lattimore | 42b2bb1 | 2022-01-06 08:58:29 +1100 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
David Lattimore | 3b6faa2 | 2022-10-18 14:10:43 +1100 | [diff] [blame] | 3 | # Copyright 2021 The ChromiumOS Authors |
David Lattimore | 42b2bb1 | 2022-01-06 08:58:29 +1100 | [diff] [blame] | 4 | # Use of this source code is governed by a BSD-style license that can be |
| 5 | # found in the LICENSE file. |
| 6 | |
| 7 | # Builds the Rust FPGA ROM. This is intended for development purposes only. |
| 8 | |
| 9 | set -e |
| 10 | |
| 11 | PROJECT_ROOT=$(git rev-parse --show-toplevel) |
David Lattimore | 8027c8c | 2022-02-14 14:47:34 +1100 | [diff] [blame] | 12 | FEATURES=image-transfer,dev |
David Lattimore | 5112466 | 2022-07-28 14:33:01 +1000 | [diff] [blame] | 13 | if [ "${TFLM-}" != "0" ]; then |
David Lattimore | 42b2bb1 | 2022-01-06 08:58:29 +1100 | [diff] [blame] | 14 | FEATURES+=,tflm |
| 15 | fi |
| 16 | export FEATURES |
David Lattimore | 5112466 | 2022-07-28 14:33:01 +1000 | [diff] [blame] | 17 | export PROFILE=dev |
David Lattimore | 42b2bb1 | 2022-01-06 08:58:29 +1100 | [diff] [blame] | 18 | |
| 19 | exec "${PROJECT_ROOT}/scripts/build-fpga-rom" |