Yocto Build SCFW
From Variscite Wiki
Yocto Build SCFW from source code
Install the SCFW toolchain
$ wget https://developer.arm.com/-/media/Files/downloads/gnu-rm/8-2018q4/gcc-arm-none-eabi-8-2018-q4-major-linux.tar.bz2 $ sudo tar xf gcc-arm-none-eabi-8-2018-q4-major-linux.tar.bz2 -C /opt
Download the SCFW source code
$ git clone https://github.com/varigit/imx-sc-firmware.git -b 1.5.1
Build the SCFW image
$ cd imx-sc-firmware/src/scfw_export_mx8qx_b0 $ export TOOLS=/opt
$ make clean-qx $ make qx R=B0 B=var_som V=1
The SCFW image, scfw_tcm.bin, is located under build_mx8qx_b0