File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
hls4ml/templates/vivado_accelerator Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 99INCFLAGS=" -Ifirmware/ap_types/"
1010PROJECT=myproject
1111LIB_STAMP=mystamp
12+ BASEDIR=" $( cd " $( dirname " $0 " ) " && pwd) "
13+ WEIGHTS_DIR=" \" ${BASEDIR} /firmware/weights\" "
1214
13- ${CC} ${CFLAGS} ${INCFLAGS} -c firmware/${PROJECT} .cpp -o ${PROJECT} .o
14- ${CC} ${CFLAGS} ${INCFLAGS} -c firmware/${PROJECT} _axi.cpp -o ${PROJECT} _axi.o
15- ${CC} ${CFLAGS} ${INCFLAGS} -c ${PROJECT} _bridge.cpp -o ${PROJECT} _bridge.o
15+ ${CC} ${CFLAGS} ${INCFLAGS} -D WEIGHTS_DIR= " ${WEIGHTS_DIR} " - c firmware/${PROJECT} .cpp -o ${PROJECT} .o
16+ ${CC} ${CFLAGS} ${INCFLAGS} -D WEIGHTS_DIR= " ${WEIGHTS_DIR} " - c firmware/${PROJECT} _axi.cpp -o ${PROJECT} _axi.o
17+ ${CC} ${CFLAGS} ${INCFLAGS} -D WEIGHTS_DIR= " ${WEIGHTS_DIR} " - c ${PROJECT} _bridge.cpp -o ${PROJECT} _bridge.o
1618${CC} ${CFLAGS} ${INCFLAGS} -shared ${PROJECT} .o ${PROJECT} _axi.o ${PROJECT} _bridge.o -o firmware/${PROJECT} -${LIB_STAMP} .so
1719rm -f * .o
You can’t perform that action at this time.
0 commit comments