There has been a lot of work on how to best design a vaccine against coronaviruses in general.
By using more than one feature of the virus (epitope) to train the immune system, more viral variations can be resisted. If you pick them carefully, relatively few epitopes are needed to stimulate wide resistance across the whole family of Coronaviruses.
Some experimental vaccines that I have heard of use as few as three, others up to twelve. The Walter Reed Army Institute of Research (WRAIR) has a broad spectrum coronavirus vaccine in development, as do several other research organizations in the USA.
Whole coronavirus vaccines can produce severe and fatal reactions (such as ADE), so excluding the problematic epitopes for safety is vitally important, in addition to choosing the right ones for effectiveness.
So far, it looks very promising that vaccines will be able to be made for coronaviruses in general, but it is not a near term prospect (multi-year). If it was needed on an emergency basis however, we are pretty far down the road of figuring out how to best configure one, and mRNA technology would allow for very rapid creation and production.