distinguish Xavier and TX2 in Makefile

Hi,

I want to automatically switch the compute capability in Makefile.
Is there any way to distinguish xavier and tx2 in Makefile, or get a compute capability information ?

Thanks in advance.

The /proc/cpuinfo should be tell.

Thank you, I’ll try that.