[Cryptech-Commits] [core/rng/rosc_entropy] branch master updated: Updated CC and Lint flags. Updated make help.

git at cryptech.is git at cryptech.is
Fri Jan 25 08:16:53 UTC 2019


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

joachim at secworks.se pushed a commit to branch master
in repository core/rng/rosc_entropy.

The following commit(s) were added to refs/heads/master by this push:
     new db81c0e  Updated CC and Lint flags. Updated make help.
db81c0e is described below

commit db81c0e56dca48a0d8dee8a4359fb2096e4c1faf
Author: Joachim Strömbergson <joachim at assured.se>
AuthorDate: Fri Jan 25 09:16:24 2019 +0100

    Updated CC and Lint flags. Updated make help.
---
 toolruns/Makefile | 23 +++++++++++++++++++----
 1 file changed, 19 insertions(+), 4 deletions(-)

diff --git a/toolruns/Makefile b/toolruns/Makefile
index 7b613ee..6d579d8 100644
--- a/toolruns/Makefile
+++ b/toolruns/Makefile
@@ -40,20 +40,31 @@
 CORE_SRC=../src/rtl/rosc_entropy_core.v ../src/rtl/rosc.v
 TOP_SRC=../src/rtl/rosc_entropy.v
 
+
 CC=iverilog
-LINT=verilator --lint-only
+CC_FLAGS = -Wall
+
+LINT=verilator
+LINT_FLAGS = +1364-2001ext+ --lint-only  -Wall -Wno-fatal -Wno-DECLFILENAME
+
 
 all: rosc.sim
 
 
 rosc.sim: $(TOP_SRC) $(CORE_SRC)
-	$(CC) -o rosc.sim $(TOP_SRC) $(CORE_SRC)
+	$(CC) $(CC_FLAGS) -o rosc.sim $(TOP_SRC) $(CORE_SRC)
+
+
+sim-rosc: rosc.sim
+	./rosc.sim
+
 
 lint:  $(TOP_SRC) $(CORE_SRC)
-	$(LINT) --top-module rosc_entropy $(TOP_SRC) $(CORE_SRC)
+	$(LINT) $(LINT_FLAGS) --top-module rosc_entropy $(TOP_SRC) $(CORE_SRC)
+
 
 clean:
-	rm -f rosc.sim
+	rm -f *.sim
 
 
 help:
@@ -61,6 +72,10 @@ help:
 	@echo ""
 	@echo "Supported targets:"
 	@echo "------------------"
+	@echo "all:         Build all simulation targets."
+	@echo "rosc.sim:    Build the ROSC sim target."
+	@echo "sim-rosc:    Run ROSC simulation."
+	@echo "lint:        Run linter on the ROSC source."
 	@echo "clean:       Delete all built files."
 
 #===================================================================

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


More information about the Commits mailing list