Extract common toolchain build scripts from elf-specific

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Add linux toolchain build scripts

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>