Cross compilation allows you get aarch64 executable. The plan gets created when you run the executable on drivePX2 and serialize the plan to reuse for future purpose.
Any TRT sample that gets compiled on Host PC can be compiled on DrivePX2 out of box with the Makefile structure.