Create EFI Partition

Just wondering how to create an EFI partition in/on OS X/macOS. I’m able to do so in the Windows installer using diskpart, but it’s not very as well recognized when OS X/macOS formats GUID drives.

This should work as long as you are not using APFS

Right, but I think that’s for getting a Hackintosh system to boot with modifications to the EFI partition. I’m just wondering how to make/create a standard one.