grub2: make some change to add efi platform support