diff --git a/libcaliptra/examples/generic/main.c b/libcaliptra/examples/generic/main.c index 85db661916..50eb0a7ba9 100644 --- a/libcaliptra/examples/generic/main.c +++ b/libcaliptra/examples/generic/main.c @@ -34,6 +34,10 @@ static void set_fuses(test_info* info) fuses->owner_pk_hash[x] = __builtin_bswap32(((uint32_t*)opk_hash)[x]); fuses->key_manifest_pk_hash[x] = __builtin_bswap32(((uint32_t*)vpk_hash)[x]); } + +#if !defined(SKIP_LMS_VERIFY) + fuses->lms_verify = true; +#endif } static struct caliptra_buffer read_file_or_exit(const char* path) diff --git a/libcaliptra/examples/hwmodel/Makefile b/libcaliptra/examples/hwmodel/Makefile index 5644c43321..7a63feb9cd 100644 --- a/libcaliptra/examples/hwmodel/Makefile +++ b/libcaliptra/examples/hwmodel/Makefile @@ -23,6 +23,9 @@ BUILDER_PATH = ../../../builder # main sources don't need a command line. DEFINES = -DROM_PATH=\"$(ROM_FILE)\" DEFINES += -DFW_PATH=\"$(FW_FILE)\" +ifdef SKIP_LMS_VERIFY + DEFINES += -DSKIP_LMS_VERIFY=\"$(SKIP_LMS_VERIFY)\" +endif # HW MODEL HWMODEL_DIR = $(OUTPUT_DIR)