Skip to content

Commit dadae60

Browse files
committed
Update Makefiles
- In emulator/Makefile, update `clean` target to remove .log and .vcd - In Makefrag, added `CONFIG_TYPE` variable to pass desired Config while building a verilator model. -By default, it stores the `DefaultConfig` -But can be updated at command line. For example, running `make debug CONFIG_TYPE=BitManipCryptoConfig` will build the verilator model using `BitManipCryptoConfig`. Signed-off-by: Abdul Wadood <abdulwadood.afzal88@gmail.com>
1 parent f519be9 commit dadae60

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

Makefrag

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@ ifndef RISCV
33
$(error Please set environment variable RISCV. Please take a look at README)
44
endif
55

6+
CONFIG_TYPE ?= DefaultConfig
67
MODEL ?= TestHarness
78
PROJECT ?= freechips.rocketchip.system
89
CFG_PROJECT ?= $(PROJECT)
9-
CONFIG ?= $(CFG_PROJECT).DefaultConfig
10+
CONFIG ?= $(CFG_PROJECT).$(CONFIG_TYPE)
1011
# TODO: For now must match rocketchip.Generator
1112
comma := ,
1213
space := $() $()

emulator/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ all: $(emu)
2121
debug: $(emu_debug)
2222

2323
clean:
24-
rm -rf *.o *.a emulator-* $(generated_dir) $(generated_dir_debug) DVEfiles $(output_dir)
24+
rm -rf *.o *.vcd *.log *.a emulator-* $(generated_dir) $(generated_dir_debug) DVEfiles $(output_dir)
2525

2626
.PHONY: default all debug clean
2727

0 commit comments

Comments
 (0)