V++ linker can link multiple independent compilation results together. The Makefile contains the V++ linker command:
LIBADF = pr0_gmio/libadf.a pr1_rtp/libadf.a pr2_perf/libadf.a
...
xsa: guard-PLATFORM_REPO_PATHS ${XSA}
${XSA}: ${LIBADF} ${VPP_SPEC} ${XOS}
${VCC} -g -l --platform ${PLATFORM} ${XOS} ${LIBADF} -t ${TARGET} ${VPP_FLAGS} -o $@
Note: Single partition flow uses multiple
libadf.aforv++ -lcommand.
In the system configuration file system.cfg, the graph ports in the graphs are prefixed with the partition name. For example, the PLIO port Dataout0 is named as pr1_Dataout0 in the configuration file:
[connectivity]
stream_connect=ai_engine_0.pr1_Dataout0:s2mm_1.s
stream_connect=datagen.out:ai_engine_0.pr1_Datain0
Run the following command to link the design:
cd <TUTORIAL_PATH>/independent_graphs
make xsa