[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Grub2 efi compiling



Hi,


I use grub from debian on my tablet and it works fine (altough it need external keyboard to select menu entries).

I'm trying to recompile grub-1.99 from debian source. I'd like add tablet keys up/down to select grub menu items.



I made my changes to grub-core/menu.c and I done:

./configure --disable-werror

output ends with:

*******************************************************
GRUB2 will be compiled with following components:
Platform: i386-pc
With devmapper support: No (need libdevmapper header)
With memory debugging: No
efiemu runtime: Yes
grub-mkfont: No (need freetype2 library)
*******************************************************

but debian original file
/boot/grub/normal.mod: ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), not stripped


I executed make (for test) and normal.mod was 32bit. Grub failed to start.



I tryed:

./configure --with-platform=x86_64-pc --disable-werror

checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
configure: error: platform "x86_64-pc" is not supported for target CPU "i386"





How can I configure grub soure for x86_64?


Thanks in advance






Reply to: