ROM: Add ability to compile several devices

Thanks to @vocoderism for the idea