The patch to set PREFIX needed updating to apply. Rewrite it in a way that allows submitting upstream. That means we don't hardcode PREFIX=$out inside the patch but allow the PREFIX to be passed to make at build time.
Fatsort sorts partition table on FAT12/16/32 partitions for devices that don't sort the files for themselves (e.g. some media players).