Download map area to xcsoar format

Hello forum Members
i am trying to create a basic map to use with xcsoar program
the xcsoar map file format is .xcm
can any one advice how i can use / convert the file from openstrretmap to use with xcsoar ?
Thanks in advance for any

According to

you can use shapefiles for XCSoar map file generation.

You can convert raw OSM data to SHP format via tools listed on

For quality check on shapefiles I recommend QGIS