Hey, @openstreetmap community, is there a project that reads #osm2pgsql data and outputs a .osm or .osm.pbf (for use with mkgmap)?

Hey, @openstreetmap community, is there a project that reads #osm2pgsql data and outputs a .osm or .osm.pbf (for use with mkgmap)?