From 7a4a69d1c0df57118e47c617ad8bf0c518050de0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Stro=CC=88mbergson?= Date: Fri, 25 Jan 2019 08:32:14 +0100 Subject: Added flags for building and linting source. --- toolruns/Makefile | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) (limited to 'toolruns/Makefile') diff --git a/toolruns/Makefile b/toolruns/Makefile index b4d8924..50e4f26 100644 --- a/toolruns/Makefile +++ b/toolruns/Makefile @@ -54,26 +54,31 @@ TRNG_SRC=../src/rtl/trng.v $(MIXER_SRC) $(SHA512_SRC) $(CSPRNG_SRC) $(CHACHA_SRC TB_TRNG_SRC=../src/tb/tb_trng.v FAKE_ENTROPY_SRC=../src/tb/fake_modules/avalanche_entropy.v ../src/tb/fake_modules/pseudo_entropy.v ../src/tb/fake_modules/rosc_entropy.v -CC =iverilog -LINT = verilator -Wall --lint-only + +CC=iverilog +CC_FLAGS = -Wall + +LINT=verilator +LINT_FLAGS = +1364-2001ext+ --lint-only -Wall -Wno-fatal -Wno-DECLFILENAME + all: trng.sim mixer.sim csprng.sim csprng_fifo.sim csprng.sim: $(TB_CSPRNG_SRC) $(CSPRNG_SRC) $(CHACHA_SRC) - $(CC) -o csprng.sim $(TB_CSPRNG_SRC) $(CSPRNG_SRC) $(CHACHA_SRC) + $(CC) $(CC_FLAGS) -o csprng.sim $(TB_CSPRNG_SRC) $(CSPRNG_SRC) $(CHACHA_SRC) csprng_fifo.sim: $(TB_CSPRNG_FIFO_SRC) $(CSPRNG_FIFO_SRC) - $(CC) -o csprng_fifo.sim $(TB_CSPRNG_FIFO_SRC) $(CSPRNG_FIFO_SRC) + $(CC) $(CC_FLAGS) -o csprng_fifo.sim $(TB_CSPRNG_FIFO_SRC) $(CSPRNG_FIFO_SRC) mixer.sim: $(TB_MIXER_SRC) $(MIXER_SRC) $(SHA512_SRC) - $(CC) -o mixer.sim $(TB_MIXER_SRC) $(MIXER_SRC) $(SHA512_SRC) + $(CC) $(CC_FLAGS) -o mixer.sim $(TB_MIXER_SRC) $(MIXER_SRC) $(SHA512_SRC) trng.sim: $(TRNG_SRC) $(FAKE_ENTROPY_SRC) - $(CC) -o trng.sim $(TB_TRNG_SRC) $(TRNG_SRC) $(FAKE_ENTROPY_SRC) + $(CC) $(CC_FLAGS) -o trng.sim $(TB_TRNG_SRC) $(TRNG_SRC) $(FAKE_ENTROPY_SRC) sim-csprng_fifo: csprng_fifo.sim @@ -95,8 +100,8 @@ sim-trng: trng.sim lint: @echo "NOTE: Does not lint rosc and avalance noise sources." @echo "" - $(LINT) $(CSPRNG_SRC) $(CHACHA_SRC) - $(LINT) $(MIXER_SRC) $(SHA512_SRC) + $(LINT) $(LINT_FLAGS) $(CSPRNG_SRC) $(CHACHA_SRC) + $(LINT) $(LINT_FLAGS) $(MIXER_SRC) $(SHA512_SRC) clean: -- cgit v1.2.3