Skip to content

Commit

Permalink
[TB] Copy WNTZ test vector generator script to run dir in some overlo…
Browse files Browse the repository at this point in the history
…oked scripts (#485)

* Add wntz vec gen for TRNG tb builds

* Also grab wntz vec gen for Makefile flow
  • Loading branch information
calebofearth committed Apr 2, 2024
1 parent 4961791 commit 648282f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/integration/config/compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,9 @@ targets:
tb:
tops: [caliptra_top_tb]
sim:
pre_exec: '$MSFT_TOOLS/scripts/run_test_makefile && echo "[PRE-EXEC] Copying ECC vector generator to ${pwd}" && cp $COMPILE_ROOT/../ecc/tb/ecdsa_secp384r1.exe .
&& echo "[PRE-EXEC] Copying DOE vector generator to ${pwd}" && cp $COMPILE_ROOT/../doe/tb/doe_test_gen.py .'
pre_exec: '$MSFT_SCRIPTS_DIR/run_test_makefile && echo "[PRE-EXEC] Copying ECC vector generator to ${pwd}" && cp $COMPILE_ROOT/../ecc/tb/ecdsa_secp384r1.exe .
&& echo "[PRE-EXEC] Copying DOE vector generator to ${pwd}" && cp $COMPILE_ROOT/../doe/tb/doe_test_gen.py .
&& echo "[PRE-EXEC] Copying SHA256 wntz vector generator to ${pwd}" && cp $COMPILE_ROOT/../sha256/tb/sha256_wntz_test_gen.py .'
global:
tool:
vcs:
Expand Down
3 changes: 2 additions & 1 deletion tools/scripts/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ HEADER_FILES := $(INCLUDES_DIR)/caliptra_defines.h \
$(foreach comp_lib, $(COMP_LIBS), $(wildcard $(comp_lib)/*.h))

TEST_GEN_FILES := $(CALIPTRA_ROOT)/src/ecc/tb/ecdsa_secp384r1.exe \
$(CALIPTRA_ROOT)/src/doe/tb/doe_test_gen.py
$(CALIPTRA_ROOT)/src/doe/tb/doe_test_gen.py \
$(CALIPTRA_ROOT)/src/sha256/tb/sha256_wntz_test_gen.py

# Separate OFILE variable since this is not used to build remote images
# (i.e. FMC or RunTime)
Expand Down

0 comments on commit 648282f

Please sign in to comment.