SDSoCのビルドメモ

SDSoCデバッグのメモです。

プロジェクト/Release/_sds/swstubsの配下でSDSoCが生成したソースコードを修正する場合、次のような感じでコンパイルするとソフト側のELFファイルを生成できる。

"cd"は要らないかもしれないが・・・

cd /home/hidemi/workspace/SDSoC/OpenCV_Sample03-zturn/Release/_sds/swstubs

arm-poky-linux-gnueabi-gcc    -march=armv7-a -marm -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a9 --sysroot=/opt/poky/2.2.1-zturn/sysroots/cortexa9hf-neon-poky-linux-gnueabi    -I /opt/Xilinx/SDx/2016.3/aarch32-linux/include  -I /opt/Xilinx/SDx/2016.3/Vivado_HLS/include -c  /home/hidemi/workspace/SDSoC/OpenCV_Sample03-zturn/Release/_sds/swstubs/portinfo.c

arm-poky-linux-gnueabi-g++   -march=armv7-a -marm -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a9 --sysroot=/opt/poky/2.2.1-zturn/sysroots/cortexa9hf-neon-poky-linux-gnueabi    -I /opt/Xilinx/SDx/2016.3/aarch32-linux/include  -I /opt/Xilinx/SDx/2016.3/Vivado_HLS/include -c  /home/hidemi/workspace/SDSoC/OpenCV_Sample03-zturn/Release/_sds/swstubs/cf_stub.c

arm-poky-linux-gnueabi-ar crs /home/hidemi/workspace/SDSoC/OpenCV_Sample03-zturn/Release/_sds/swstubs/libxlnk_stub.a /home/hidemi/workspace/SDSoC/OpenCV_Sample03-zturn/Release/_sds/swstubs/portinfo.o /home/hidemi/workspace/SDSoC/OpenCV_Sample03-zturn/Release/_sds/swstubs/cf_stub.o

cd /home/hidemi/workspace/SDSoC/OpenCV_Sample03-zturn/Release/_sds/swstubs

arm-poky-linux-gnueabi-g++ -c fpga_func.cpp -I/home/hidemi/workspace/SDSoC/OpenCV_Sample03-zturn/src -I/home/hidemi/workspace/SDSoC/OpenCV_Sample03-zturn/src -Wall -O3 -fmessage-length=0 -MMD -MP -D __SDSCC__   -march=armv7-a -marm -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a9 --sysroot=/opt/poky/2.2.1-zturn/sysroots/cortexa9hf-neon-poky-linux-gnueabi    -I /opt/Xilinx/SDx/2016.3/aarch32-linux/include  -I /opt/Xilinx/SDx/2016.3/Vivado_HLS/include -o fpga_func.o

cd /home/hidemi/workspace/SDSoC/OpenCV_Sample03-zturn/Release

cd /home/hidemi/workspace/SDSoC/OpenCV_Sample03-zturn/Release/_sds/swstubs

arm-poky-linux-gnueabi-ar crs /home/hidemi/workspace/SDSoC/OpenCV_Sample03-zturn/Release/_sds/swstubs/libOpenCV_Sample03-zturn.a /home/hidemi/workspace/SDSoC/OpenCV_Sample03-zturn/Release/_sds/swstubs/portinfo.o /home/hidemi/workspace/SDSoC/OpenCV_Sample03-zturn/Release/_sds/swstubs/cf_stub.o /home/hidemi/workspace/SDSoC/OpenCV_Sample03-zturn/Release/_sds/swstubs/fpga_func.o

cd /home/hidemi/workspace/SDSoC/OpenCV_Sample03-zturn/Release

arm-poky-linux-gnueabi-g++  --sysroot=/opt/poky/2.2.1-zturn/sysroots/cortexa9hf-neon-poky-linux-gnueabi   /home/hidemi/workspace/SDSoC/OpenCV_Sample03-zturn/Release/_sds/swstubs/fpga_func.o /home/hidemi/workspace/SDSoC/OpenCV_Sample03-zturn/Release/src/opencv_sample.o  -lopencv_core -lopencv_imgcodecs -lopencv_imgproc   -L /opt/Xilinx/SDx/2016.3/aarch32-linux/lib -L/home/hidemi/workspace/SDSoC/OpenCV_Sample03-zturn/Release/_sds/swstubs -Wl,--start-group  -Wl,--end-group -Wl,--start-group    -lpthread -lsds_lib -lxlnk_stub  -Wl,--end-group -o /home/hidemi/workspace/SDSoC/OpenCV_Sample03-zturn/Release/_sds/swstubs/OpenCV_Sample03-zturn.elf

arm-poky-linux-gnueabi-objcopy -R .xdinfo -R .xddata -R .xdasm -R .xdfcnmap -R .xdhlscore -R .xdif -R .xdparams -R .xdcore -R .xdsdata -R .xdpp /home/hidemi/workspace/SDSoC/OpenCV_Sample03-zturn/Release/_sds/swstubs/OpenCV_Sample03-zturn.elf
write: 2017/01/30/ 00:39:03