Compiling source code for amlogic device

I have some source code which i try to build my personal version for amlogic devices.
My question is, ow to make cross compiling for amlogic s905?
I talk here about toolchain? How I can get it?

Make a proper package like everything else under packages folder. If you just need to compile some simple program then it can be done manually by specifying CC to make like
make CC=/path/to/build.CoreELEC-Amlogic-ng.arm-9.1-devel/toolchain/bin/armv8a-libreelec-linux-gnueabi-gcc