Skip to content

Commit

Permalink
Merged PR 170032: Add build arguments for hw config when compiling FW
Browse files Browse the repository at this point in the history
Add build arguments for hw config when compiling FW
Supports Makefile changes made in #486

Related work items: #697488
  • Loading branch information
calebofearth committed Apr 29, 2024
1 parent 7517d2f commit abed398
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tools/scripts/run_test_makefile
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,13 @@ elif [[ ! -z $(echo $TESTNAME | grep -E "caliptra_top_\w*_test") ]]; then
$cmd
# This is any other FW-based smoke test running on the basic caliptra top SV bench
else
cmd="make -f $SCRIPTS_DIR/Makefile program.hex"
build_args="CALIPTRA_INTERNAL_QSPI=0 CALIPTRA_INTERNAL_UART=0 CALIPTRA_INTERNAL_I3C=0"
if [[ "${CONFIG}" == "caliptra_top_trng_tb" ]]; then
build_args="${build_args} CALIPTRA_INTERNAL_TRNG=1"
else
build_args="${build_args} CALIPTRA_INTERNAL_TRNG=0"
fi
cmd="make -f $SCRIPTS_DIR/Makefile ${build_args} program.hex"
echo "$cmd"
$cmd
fi

0 comments on commit abed398

Please sign in to comment.