GRUB EFI - Adding new class

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
twisted89
Posts: 1
Joined: Fri Nov 08, 2013 5:51 am

GRUB EFI - Adding new class

Post by twisted89 »

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

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
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
Post Reply