Support already exists for building "baremetal" cross-compilers for various CPUs. At present, when adding a new CPU support, we need to modify time: meta/classes/insane.bbclass meta/classes/kernel-arch.bbclass meta/classes/siteinfo.bbclass The modifications themselves are simple, but it would be a cleaner solution if whatever info is needed by these classes would be pulled from CPU specific meta-layer (somehow). This way the meta-layer would be self-contained.
s/we need to modify time:/we need to modify:/
I've posted patches for siteinfo and insane. For kernel-arch, firstly there are only a limited number of supported linux kernel arches and secondly, an overide like ARCH_pn-linux-XXX = "Y" can usually be used. I'm therefore not proposing to change that one.
http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=ebc80fa30a98484b7fd1d568bd0f3d701a6f68d5 http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=e693f2e641afa88dfb53371482e9c5be8dc8eb92