Build CUDA for Custom Linux Distribution

Hello,
How do I use the Cuda toolchain to build CUDA support for my custom distribution of linux OS x86-64 machine with Tesla T4 Card?

I am already using Yocto to build my custom OS.

You’ll have to use the runfile installers for driver and cuda and make sure you have the correct kernel headers/gcc and toolchain installed.