Skip to content

Commit

Permalink
target: Add rule to make BIN_DIR
Browse files Browse the repository at this point in the history
  • Loading branch information
colluca committed Sep 12, 2024
1 parent 99d44b8 commit 7c6815b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions target/sim/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ CVA6_TRACE = trace_hart_0.log
DEFAULT_CFG = cfg/full.hjson
CFG = cfg/lru.hjson

# Common dependency for all RTL simulators
$(BIN_DIR):
mkdir -p $@

#####################
# Simulator options #
#####################
Expand Down Expand Up @@ -453,8 +457,7 @@ $(BIN_DIR)/$(TARGET).vsim: $(TARGET_TEST_DIR)/bootrom.bin
#######

# Build compilation script and compile all sources for VCS simulation
$(BIN_DIR)/$(TARGET).vcs: work-vcs/compile.sh work/lib/libfesvr.a ${TB_CC_SOURCES} $(TARGET_TEST_DIR)/bootrom.bin
mkdir -p bin
$(BIN_DIR)/$(TARGET).vcs: work-vcs/compile.sh work/lib/libfesvr.a ${TB_CC_SOURCES} $(TARGET_TEST_DIR)/bootrom.bin | $(BIN_DIR)
vcs $(VCS_FLAGS) -o $(BIN_DIR)/$(TARGET).vcs tb_bin -cc $(CC) -cpp $(CXX) \
$(TB_CC_SOURCES) -CFLAGS "$(TB_CC_FLAGS)" -LDFLAGS "-L${FESVR}/lib" -lfesvr -lutil

Expand Down

0 comments on commit 7c6815b

Please sign in to comment.