mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-20 22:48:22 +00:00
Implement grub_file tool and use it to implement generating of config
in separate root.
This commit is contained in:
1 parent
296f76068d
commit
ec824e0f2a
26 files changed
+1113
-122
No files matched your search
@@ -77,12 +77,17 @@ grub_xen_get_info (grub_elf_t elf, struct grub_xen_file_info * xi)
|
||||
{
|
||||
grub_memset (xi, 0, sizeof (*xi));
|
||||
|
||||
if (grub_elf_is_elf64 (elf))
|
||||
if (grub_elf_is_elf64 (elf)
|
||||
&& elf->ehdr.ehdr64.e_machine
|
||||
== grub_cpu_to_le16_compile_time (EM_X86_64)
|
||||
&& elf->ehdr.ehdr64.e_ident[EI_DATA] == ELFDATA2LSB)
|
||||
{
|
||||
xi->arch = GRUB_XEN_FILE_X86_64;
|
||||
return grub_xen_get_info64 (elf, xi);
|
||||
}
|
||||
if (grub_elf_is_elf32 (elf))
|
||||
if (grub_elf_is_elf32 (elf)
|
||||
&& elf->ehdr.ehdr32.e_machine == grub_cpu_to_le16_compile_time (EM_386)
|
||||
&& elf->ehdr.ehdr32.e_ident[EI_DATA] == ELFDATA2LSB)
|
||||
{
|
||||
xi->arch = GRUB_XEN_FILE_I386;
|
||||
return grub_xen_get_info32 (elf, xi);
|
||||
|
||||
Reference in new issue
Block a user