Generating genesis blob corresponding to the waypoint

I learned the waypoints are designed to avoid long range attacks and a full node/validator can sync data from the most recent waypoint instead of genesis waypoint. I also learnt that waypoint has one on one mapping to genesis blob. How can I create a new genesis blob corresponding to the current waypoint?
I assume it should be node-config related, but not sure, thanks in advance!