怎么还有这种问题(
解决Vitis导入自制IP导致无法构建Platform – TaterLi 个人博客
Vitis报错:fatal error: xxx.h: No such file or directory._ly2lj的博客-CSDN博客
在指定位置黏入以上代码即可:
INCLUDEFILES=$(wildcard *.h)
LIBSOURCES=$(wildcard *.c *.cpp)
OUTS = $(addsuffix .o, $(basename $(wildcard *.c)))OBJECTS = $(addsuffix .o, $(basename $(wildcard *.c *.cpp)))
ASSEMBLY_OBJECTS = $(addsuffix .o, $(basename $(wildcard *.S)))
呃,有一个报错,发生在FSBL文件编译里:
make: *** [makefile:37: package] Error 1
上面那个对vitis22.2不行,
得用:
vitis报错:platform out-of-date,编译时makefile error;修改后application编译报undefined reference_vitis out of date_不缺席的阳光的博客-CSDN博客
DRIVER_LIB_VERSION = 1.0
COMPILER=
ARCHIVER=
CP=cp
COMPILER_FLAGS=
EXTRA_COMPILER_FLAGS=
LIB=libxil.aCC_FLAGS = $(COMPILER_FLAGS)
ECC_FLAGS = $(EXTRA_COMPILER_FLAGS)RELEASEDIR=../../../lib/
INCLUDEDIR=../../../include/
INCLUDES=-I./. -I$(INCLUDEDIR)SRCFILES:=$(wildcard *.c)OBJECTS = $(addprefix $(RELEASEDIR), $(addsuffix .o, $(basename $(wildcard *.c))))libs: $(OBJECTS)DEPFILES := $(SRCFILES:%.c=$(RELEASEDIR)%.d)include $(wildcard $(DEPFILES))include $(wildcard ../../../../dep.mk)$(RELEASEDIR)%.o: %.c${COMPILER} $(CC_FLAGS) $(ECC_FLAGS) $(INCLUDES) $(DEPENDENCY_FLAGS) $< -o $@.PHONY: include
include: $(addprefix $(INCLUDEDIR),$(wildcard *.h))$(INCLUDEDIR)%.h: %.h$(CP) $< $@clean:rm -rf ${OBJECTS}rm -rf $(DEPFILES)