cancel
Showing results for 
Search instead for 
Did you mean: 
645 Views
Registered: ‎09-27-2018

Error using a Makefile

Hi, i dont know if this is the correct section to post this.

I made a Makefile to run vivado and make a project:

#!/bin/sh
FINN_ROOT=/home/franco/FINN/FINN
GENDIR=$(pwd)
SYN_TCL="make-pynq-vivado-proj.tcl"
XDC_DIR="$(GENDIR)/misc"
JAM_REPO="$(GENDIR)/hls_syn/sol1/impl/ip"
PROJ_NAME="finnaccel"
PROJ_DIR="$(GENDIR)/finnaccel"

SRCS=docompute.cpp
INCLUDE=$(shell find . -maxdepth 1 -type f -regex ".*\.h*")
bitstream=$(PROJ_DIR)/$(PROJ_NAME).runs/impl_1/procsys_wrapper.bit


all: bitstream

# first, run HLS synthesis
.PHONY: ip
ip: hls_syn.tcl $(SRCS) $(INCLUDE)
	vivado_hls -f hls_syn.tcl

# now run bitstream generation
bitstream: ip
	vivado -mode batch -source $(SYN_TCL) -tclargs $(JAM_REPO) $(PROJ_NAME) $(PROJ_DIR) $(XDC_DIR)
	# copy resulting bitfile
	cp bitstream $(GENDIR)/finnaccel.bit

.PHONY: clean
clean:
	rm -rf *.log *.jou

.PHONY: disclean
disclean: clean
	rm -rf hls_syn $(PROJ_NAME)

But when i do the "make" i have an error after the ip (i think):

 

****** Vivado v2018.2 (64-bit)
  **** SW Build 2258646 on Thu Jun 14 20:02:38 MDT 2018
  **** IP Build 2256618 on Thu Jun 14 22:10:49 MDT 2018
    ** Copyright 1986-2018 Xilinx, Inc. All Rights Reserved.

source make-pynq-vivado-proj.tcl
# if {$argc != 4} {
#   puts "Expected: <jam repo> <proj name> <proj dir> <xdc_dir>"
#   exit
# }
# set config_jam_repo [lindex $argv 0]
# set config_proj_name [lindex $argv 1]
# set config_proj_dir [lindex $argv 2]
# set config_proj_part "xczu3eg-sbva484-1-e"
# set xdc_dir [lindex $argv 3]
# create_project $config_proj_name $config_proj_dir -part $config_proj_part
ERROR: [ProjectBase 2-116] Unable to create project directory: '/finnaccel'.
INFO: [Common 17-206] Exiting Vivado at Mon Nov  5 12:48:57 2018...
Makefile:25: recipe for target 'bitstream' failed
make: *** [bitstream] Error 1

This is my first Makefile that i do so maybe i have something bad .

thanks for your time !


FC

0 Kudos
1 Reply
Highlighted
Teacher
Teacher
487 Views
Registered: ‎10-23-2018

Re: Error using a Makefile

@francocapraro12

you will notice that you ave no path /finaccel, so it is looking in the root ... use $(PWD) instead of $(pwd)

Hope that helps

If so, please mark as solution accepted... Kudos are also welcomed :-)

0 Kudos