vivado 自定义IP导入vitis报makefile错误解决办法:
找对对应的自定义IP的目录,在src的目录下的makefile文件中修改为如下的文件
COMPILER=
ARCHIVER=
CP=cp
COMPILER_FLAGS=
EXTRA_COMPILER_FLAGS=
LIB=libxil.a
RELEASEDIR=../../../lib
INCLUDEDIR=../../../include
INCLUDES=-I./. -I${INCLUDEDIR}
INCLUDEFILES=$(wildcard *.h)
LIBSOURCES=$(wildcard *.c *.cpp)
OUTS =*.o
OBJECTS = $(addsuffix .o, $(basename $(wildcard *.c *.cpp)))
ASSEMBLY_OBJECTS = $(addsuffix .o, $(basename $(wildcard *.S)))
libs:echo "Compiling myip"$(COMPILER) $(COMPILER_FLAGS) $(EXTRA_COMPILER_FLAGS) $(INCLUDES) $(LIBSOURCES)$(ARCHIVER) -r ${RELEASEDIR}/${LIB} ${OBJECTS} ${ASSEMBLY_OBJECTS}make clean
include:${CP} $(INCLUDEFILES) $(INCLUDEDIR)
clean:rm -rf ${OBJECTS} ${ASSEMBLY_OBJECTS}
在block design中删除自定义IP核,重新加入该IP核(注意,必须删除,不能通过更新IP核的方式)
在vitis中更新xsa后build平台文件即可