I was confused between arm-none-linux-gnueabi and arm-none-eabi .I didn’t know where to use what. The gcc naming convention is like as below arch-vendor-(os-)-eabi

so for arm-none-linux-gnueabi is meant for the compilation to elf which uses linux.
and arm-none-eabi is meant for the compilation of the codes which will run on bare metal arm core.

The difference is that they use library accordingly to compile the source codes.