fpga_rom: Put debug commands behind a feature
This keeps down the size of the binary in cases when we don't need the
debug commands. In particular when we don't need the self-test data.
./scripts/run-tests is adjusted to make sure we cover building with all
features.
BUG=b:206337455
TEST=./scripts/fpga-rom-run
TEST=(brya) hps-factory --dev /dev/i2c-15 capture-images --out-dir hps-images
Change-Id: Ifbea099d0ea0f57f8472a5575519a7d32699f4c8
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/hps-firmware/+/3298547
Reviewed-by: Dan Callaghan <dcallagh@chromium.org>
Commit-Queue: David Lattimore <dml@chromium.org>
Tested-by: David Lattimore <dml@chromium.org>
diff --git a/scripts/fpga-rom-run b/scripts/fpga-rom-run
index ad2a9d1..3a13d97 100755
--- a/scripts/fpga-rom-run
+++ b/scripts/fpga-rom-run
@@ -12,7 +12,7 @@
PROJECT_ROOT=$(git rev-parse --show-toplevel)
ROM="${PROJECT_ROOT}/build/hps_platform/soc_rom.bin"
-FEATURES=image-transfer
+FEATURES=image-transfer,debug-commands
if [ "$TFLM" != "0" ]; then
FEATURES+=,tflm_inference
fi