The overall process is documented here: https://kernelshaman.blogspot.com/2021/02/building-xnu-for-m...