How can set the compiler for jetons TX1 L4T 28.2?
and How can compile the jetons TX1 L4T 28.2 kernel source code?
gcc should already be there after a normal install.
nvidia@tegra-ubuntu:~$ gcc --version
gcc (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.9) 5.4.0 20160609
For building kernel, check: http://www.jetsonhacks.com/2017/07/31/build-kernel-ttyacm-module-nvidia-jetson-tx2/.