This problem may be a bug of version 2021.1 only. Unfortunately, I'm just currently using this version.
After Build Project:

Find where this Makefile is through "make: Leaving directory" information. For me, it is located at Zynq_CPU_wrapper_hw_platform_1\zynq_fsbl\zynq_fsbl_bsp\ps7_cortexa9_0\libsrc\rtl_multiplier_v1_0\src\Makefile (we assume Zynq_CPU_wrapper_hw_platform_1 is the platform name and is under the Vitis workspace folder). Locate this file, we see the following code:
COMPILER=
ARCHIVER=
CP=cp
COMPILER_FLAGS=
EXTRA_COMPILER_FLAGS=
LIB=libxil.a
RELEASEDIR=../../../lib
INCLUDEDIR=../../../include
INCLUDES=-I./. -I${INCLUDEDIR}
INCLUDEFILES=*.h
LIBSOURCES=*.c
OUTS = *.o
libs:
echo "Compiling rtl_multiplier..."
$(COMPILER) $(COMPILER_FLAGS) $(EXTRA_COMPILER_FLAGS) $(INCLUDES) $(LIBSOURCES)
$(ARCHIVER) -r ${RELEASEDIR}/${LIB} ${OUTS}
make clean
include:
${CP} $(INCLUDEFILES) $(INCLUDEDIR)
clean:
rm -rf ${OUTS}
According to
Drivers created in Vivado fail in Vitis 2021.1
https://support.xilinx.com/s/question/0D52E00006ihQSXSA2/drivers-created-in-vivado-fail-in-vitis-2021175527 - Drivers created in

本文档详细记录了在使用Vitis 2021.1版本时遇到的编译问题,包括Makefile的修改以及如何解决由于缺少qemu_args.txt文件导致的启动错误。通过修改Makefile中的LIBSOURCES变量,添加OBJECTS和ASSEMBLY_OBJECTS,并更新清理命令,成功解决了编译错误。同时,在指定目录下创建qemu_args.txt文件以消除QEMU启动时的错误。
最低0.47元/天 解锁文章
197

被折叠的 条评论
为什么被折叠?



