[Cryptech-Commits] [core/rng/trng] branch cleanup updated: Added flags for building and linting source.

git at cryptech.is git at cryptech.is
Fri Jan 25 07:32:31 UTC 2019


This is an automated email from the git hooks/post-receive script.

joachim at secworks.se pushed a commit to branch cleanup
in repository core/rng/trng.

The following commit(s) were added to refs/heads/cleanup by this push:
     new 7a4a69d  Added flags for building and linting source.
7a4a69d is described below

commit 7a4a69d1c0df57118e47c617ad8bf0c518050de0
Author: Joachim Strömbergson <joachim at assured.se>
AuthorDate: Fri Jan 25 08:32:14 2019 +0100

    Added flags for building and linting source.
---
 toolruns/Makefile | 21 +++++++++++++--------
 1 file changed, 13 insertions(+), 8 deletions(-)

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:

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Commits mailing list