How to build a factory flash file with CUDA、cuDNN、TensorRT、OpenCV

Hi I have used SDKManager to make a factory flash file by the following command.
#create file
sudo ./nvmassflashgen.sh jetson-nano-devkit-emmc mmcblk0p1
#flash firmware to emmc
sudo ./nvmflash.sh [–showlogs]
But after flash firmware to a new Jetson Nano eMMC version, the package of CUDA、cuDNN、TensorRT、OpenCV did not include in it. Do I have any way to make a factory flash file with these package?
Thanks!