Support illumos amd64

In order to run Grafana on illumos I would like to add support for illumos amd64.

I'm willing to do the heavy lifting on this but I'm having trouble finding information on how to add a new platform. From what I gather a tool called generator should be run in order to generate the source files for the new platform. However I can't find the tool. Is there some information somewhere on how this projects works globally (adding OS'es, updating them, etc.)?