Skip to content

Commit

Permalink
[cheshire] Fix relative path in makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
mp-17 committed Jul 5, 2024
1 parent 3fe2309 commit 21ff6b3
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions cheshire/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@
# Solderpad Hardware License, Version 0.51, see LICENSE for details.
# SPDX-License-Identifier: SHL-0.51
#
# Author: Moritz Imfeld <[email protected]>
# Author: Moritz Imfeld <[email protected]>
# Author: Matteo Perotti <[email protected]>
#

# Chshire root reposiotry
MAKEFILE_DIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
ARA_ROOT := $(MAKEFILE_DIR)/..
BACKREF_CHS_ROOT ?= ../../../../..
BACKREF_CHS_ROOT ?= $(realpath ../../../../..)
BACKREF_CHS_XIL_SCRIPTS := $(BACKREF_CHS_ROOT)/target/xilinx/scripts


Expand All @@ -19,15 +20,14 @@ include $(ARA_ROOT)/config/$(ARA_CONFIGURATION).mk
BOARD := vcu128
CUSTOM_BENDER_TARGETS := -t fpga -t cv64a6_imafdcv_sv39 -t cva6 -t $(BOARD) --define ARA --define NR_LANES=$(nr_lanes) --define VLEN=$(vlen)

.PHONY: ara-chs-xilinx-$(BOARD) clean
.PHONY: ara-chs-xilinx-$(BOARD) update_xilinx_src clean

ara-chs-xilinx-$(BOARD): $(MAKEFILE_DIR)/add_sources.vcu128.tcl
ara-chs-xilinx-$(BOARD): update_xilinx_src
make -C $(BACKREF_CHS_ROOT) chs-xilinx-$(BOARD)

$(MAKEFILE_DIR)/add_sources.vcu128.tcl:
update_xilinx_src:
cd $(BACKREF_CHS_ROOT) && \
bender script vivado $(CUSTOM_BENDER_TARGETS) > $@ && \
cp $(MAKEFILE_DIR)/add_sources.vcu128.tcl $(BACKREF_CHS_XIL_SCRIPTS)/add_sources.vcu128.tcl
bender script vivado $(CUSTOM_BENDER_TARGETS) > $(BACKREF_CHS_XIL_SCRIPTS)/add_sources.vcu128.tcl

clean:
rm $(BACKREF_CHS_XIL_SCRIPTS)/add_sources.vcu128.tcl
Expand Down

0 comments on commit 21ff6b3

Please sign in to comment.