review fpga configuration recipe - ArrowElectronics/arrow-soc-workshops GitHub Wiki
This recipe's function is to move the FPGA Configuration RBF file from the custom meta layer to a build/tmp/deploy/images/ folder. It will then be combined into the SD card image as described in the previous section
Open the recipe socfpga_yocto_workshop/poky/meta-my-custom-soc-board/recipes-bsp/rbf/my-custom-soc-board-rbf.bb in the default editor, gedit.
The following line extends the bitbake search path to the meta-my-custom-soc-board/recipes-bsp/rbf/files sub directory.
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
The SRC_URI variable indicates that the RBF file is located in the files sub-directory
SRC_URI = " \
file://soc_system.rbf \
"
The following lines of code create an intermediary images/MACHINE directory and install the RBF file there. The file is then copied to the build/tmp/deploy/images/ folder.
install -d ${D}/images/${MACHINE}/
install -m 0777 ${WORKDIR}/soc_system.rbf ${D}/images/${MACHINE}/
cp ${WORKDIR}/soc_system.rbf ${DEPLOY_DIR}/images/${MACHINE}/
The RBF file was created previously by the reader.Refer to the individual board links for details.
Copy the FPGA configuration file to the custom layer
DE10-nano
$ cp ~/socfpga-workshop/socfpga_hw_workshop/de10nano_ghrd/output_files/soc_system.rbf ~/socfpga-workshop/socfpga_yocto_workshop/poky/meta-my-custom-soc-board/recipes-bsp/rbf/files
DataStorm DAQ
$ cp ~/socfpga-workshop/socfpga_hw_workshop/datastormdaq_ghrd/output_files/soc_system.rbf ~/socfpga-workshop/socfpga_yocto_workshop/poky/meta-my-custom-soc-board/recipes-bsp/rbf/files
SoCKit
$ cp ~/socfpga-workshop/socfpga_hw_workshop/sockit_ghrd/output_files/soc_system.rbf ~/socfpga-workshop/socfpga_yocto_workshop/poky/meta-my-custom-soc-board/recipes-bsp/rbf/files