Hi Shirokuma, if possible split request and use best Title to help other search topic.
About cubemx add library you need adapt your project or new board to existing product selection by board type.
From your writing appear you are using an ST board so:
Select board where you are working instead of processor based seems the best way to have BSP included.
If other package from preloaded: select middleware, enable product and fill relative configure page.
Last resource is to use project manager and add there remaining software/ add as library on generated code.
Also check FAQ: