Skip to content

Commit

Permalink
fpga: remove the redundant include and disable DB on fpga
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaokamikami committed Nov 4, 2024
1 parent 4ac9cfa commit 6adf675
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,6 @@ SIM_VSRC = $(shell find $(VSRC_DIR) -name "*.v" -or -name "*.sv")
DIFFTEST_CSRC_DIR = $(abspath ./src/test/csrc/difftest)
# FPGA-Difftest support
FPGA ?= 0
ifeq ($(FPGA),1)
DIFFTEST_CSRC_DIR += $(abspath ./src/test/csrc/fpga)
endif

DIFFTEST_CXXFILES = $(shell find $(DIFFTEST_CSRC_DIR) -name "*.cpp")
ifeq ($(NO_DIFF), 1)
Expand All @@ -96,15 +93,19 @@ endif
endif

# ChiselDB
ifneq ($(FPGA),1)
WITH_CHISELDB ?= 1
endif
ifeq ($(WITH_CHISELDB), 1)
SIM_CXXFILES += $(BUILD_DIR)/chisel_db.cpp
SIM_CXXFLAGS += -I$(BUILD_DIR) -DENABLE_CHISEL_DB
SIM_LDFLAGS += -lsqlite3
endif

# ConstantIn
ifneq ($(FPGA),1)
WITH_CONSTANTIN ?= 1
endif
ifeq ($(WITH_CONSTANTIN), 1)
SIM_CXXFILES += $(BUILD_DIR)/constantin.cpp
SIM_CXXFLAGS += -I$(BUILD_DIR) -DENABLE_CONSTANTIN
Expand Down

0 comments on commit 6adf675

Please sign in to comment.