Peer review feedback

pull/467/merge
David Garske 2026-04-30 10:32:34 -07:00 committed by Daniele Lacamera
parent 87e913955f
commit 6a036ffe6e
2 changed files with 12 additions and 3 deletions

View File

@ -24,6 +24,10 @@ WOLFSSL_ROOT ?= ../../wolfssl
BUILD_DIR = ./Build
BIN = puf_example
# PUF test mode (default on): synthetic SRAM data for testing without hardware.
# Set PUF_TEST=0 to build for real hardware SRAM.
PUF_TEST ?= 1
# Architecture
ARCHFLAGS = -mcpu=cortex-m33 -mthumb -mabi=aapcs
@ -33,6 +37,10 @@ CFLAGS += -ffunction-sections -fdata-sections -fno-builtin
CFLAGS += -DWOLFSSL_USER_SETTINGS
CFLAGS += -I. -I$(WOLFSSL_ROOT)
ifeq ($(PUF_TEST),1)
CFLAGS += -DWOLFSSL_PUF_TEST
endif
# Linker flags
LDFLAGS = $(ARCHFLAGS)
LDFLAGS += --specs=nosys.specs --specs=nano.specs

View File

@ -47,9 +47,10 @@ extern "C" {
#define WOLFSSL_PUF
#define WOLFSSL_PUF_SRAM
/* Enable test mode: allows synthetic SRAM data for testing without hardware.
* Comment out to use real SRAM PUF on actual hardware. */
#define WOLFSSL_PUF_TEST
/* WOLFSSL_PUF_TEST enables test mode (synthetic SRAM data for testing
* without hardware). Controlled by the Makefile PUF_TEST switch:
* make (PUF_TEST=1, default) - test mode enabled
* make PUF_TEST=0 - real hardware SRAM PUF */
/* ------------------------------------------------------------------------- */
/* Required Dependencies */