I have a (newer model) Honda EU2200i generator. I also needed/have a homemade neutral to ground (bonding) pigtail occupying one of the 120V outlets when using it to charge the M3. The M3 eats the true sine wave from the Honda just fine. In moderate temperatures (~75 degF) I have used it to test charge my M3 at 15A using the Tesla 5-20 Gen2 UMC charging adapter for 1 hour, without a hiccup. The 2200i is rated at 1800 watts continuous, which is 15A, and it already has 20 amp 5-20 outlets, so you don't even need a 5-15 to 5-20 'cheater' plug. I get 6 mph from this configuration. Honda is known for conservatively rating their small generators & I might try upping the charge current to 16A, which is the upper limit on the UMC 5-20 adapter, anyway. You can tell the little Honda gen is working pretty hard to crank out 15A continuously. Not a particularly efficient use of gasoline & not something you'd want to do routinely, but in a pinch.
Honda makes a bonded version of this generator, the EU2200b, which doesn't need a ground to neutral bonding plug. It's not real common to find this model, however.
You can also use the Companion model of this generator, which has a 3-pin 30 amp TT-30 (RV) outlet, together with a correctly wired non-standard TT-30 cable and TT-30 to 14-50 adapter, mated to the 14-50 charging adapter which (used to, anyway) comes with the Model 3. You could then parallel two of the Honda generators to double the charge current.