1M baud Optiboot for mighty1284p

Take your time. Consider how long any change would take to boil down to arduino production code, anyway.
(and it's not actually interesting on a 1284, since that has plenty of code space...)