with dhcp server having conditions and rules
example in dnsmasq:
dhcp-match=set:x86,option:client-arch,0
dhcp-match=set:efi,option:client-arch,7
dhcp-boot=tag:efi,tag:!ipxe,ipxe.efi
dhcp-boot=tag:x86,tag:!ipxe,undionly.kpxe
we can conditionally set to use efi file or legacy.
ipxe can do so much more than regular pxe. please consider.