add build script to support x86,mips etc