simulation framework refactoring
This commit is contained in:
19
hw/Makefile
19
hw/Makefile
@@ -1,9 +1,16 @@
|
||||
.PHONY: build_config
|
||||
RTL_DIR=./rtl
|
||||
SCRIPT_DIR=./scripts
|
||||
DESTDIR ?= .
|
||||
|
||||
build_config: ./rtl/VX_config.vh
|
||||
./scripts/gen_config.py -i ./rtl/VX_config.vh -o ./VX_config.h
|
||||
$(MAKE) -C simulate
|
||||
all: VX_config.h vortex_afu.h
|
||||
|
||||
VX_config.h: $(RTL_DIR)/VX_config.vh
|
||||
$(SCRIPT_DIR)/gen_config.py -i $(RTL_DIR)/VX_config.vh -o $(DESTDIR)/VX_config.h
|
||||
|
||||
vortex_afu.h : $(RTL_DIR)/afu/vortex_afu.vh
|
||||
$(SCRIPT_DIR)/gen_config.py -i $(RTL_DIR)/afu/vortex_afu.vh -o $(DESTDIR)/vortex_afu.h
|
||||
|
||||
clean:
|
||||
rm -f ./VX_config.h
|
||||
$(MAKE) -C simulate clean
|
||||
rm -f $(DESTDIR)/VX_config.h $(DESTDIR)/vortex_afu.h
|
||||
|
||||
.PHONY: VX_config.h vortex_afu.h
|
||||
Reference in New Issue
Block a user