GRUB EFI - Adding new class
Posted: Fri Nov 08, 2013 6:02 am
Hi,
I've been trying to add a new class into the GRUB EFI source and rebuilding but running autogen.sh and make seems to ignores the new class and the new commands don't end up in the final binary.
The class I'm trying to add can be downloaded here: https://dl.dropboxusercontent.com/u/9950356/setup_var.c
I've been putting in into it into '\grub-core\commands\efi'
then running these commands
Anyone know what I'm doing wrong?
Edit:
Worked it out, had to add a new module section to Makefile.core.def then run autogen.sh
I've been trying to add a new class into the GRUB EFI source and rebuilding but running autogen.sh and make seems to ignores the new class and the new commands don't end up in the final binary.
The class I'm trying to add can be downloaded here: https://dl.dropboxusercontent.com/u/9950356/setup_var.c
I've been putting in into it into '\grub-core\commands\efi'
then running these commands
Code: Select all
./autogen.sh
export EFI_ARCH=x86_64
./configure --with-platform=efi --target=${EFI_ARCH} --program-prefix=""
make
cd grub-core
../grub-mkimage -O ${EFI_ARCH}-efi -d . -o grub.efi -p "/efi/boot" part_gpt part_msdos ntfs ntfscomp hfsplus fat ext2 normal chain boot configfile linux multiboot
Edit:
Worked it out, had to add a new module section to Makefile.core.def then run autogen.sh