building Jetson nano kernel source code occurs errors:‘-mlittle-endian’ ‘-mgeneral-regs-only’

Hi:
I want to add a new camera driver to Jetson nano so I download the kernel source code and build it.But whether I modified the source code or not there are two errors:
gcc: error: unrecognized command line option ‘-mlittle-endian’
gcc: error: unrecognized command line option ‘-mgeneral-regs-only’
The gcc tool chain is installed according to NVIDIA Tegra Linux Driver Package Development Guide.I donot know what I did wrong?

well, I have solved this problem so record it. The reason is that the gcc tool chain path isn’t correct,even I set the path according to the guide. As the guide, the path is set in the top directory, later I reconfigure the tool chain path in the compile directory(/kernel/kernel4.9) and it worked.