- cd $(DIR_APP) && \
- ./configure \
- --prefix=/usr \
- --sysconfdir=/etc \
- --with-platform=pc \
- --with-grubdir=grub \
- --program-transform-name=s,grub,grub, \
- --disable-grub-mount \
- --disable-werror
+
+ifeq "$(EFI)" "1"
+ cp -av $(DIR_APP) $(DIR_APP_EFI)
+ cd $(DIR_APP_EFI) && ./configure $(CONFIGURE_ARGS) --with-platform=efi
+ cd $(DIR_APP_EFI) && make $(MAKETUNING)
+
+ cd $(DIR_APP_EFI) && ./grub-mkimage \
+ -O i386-efi \
+ -p /EFI/ipfire/grub-efi \
+ -o grub.efi \
+ -d grub-core part_msdos part_gpt fat ext2 xfs normal chain \
+ boot configfile linux jpeg minicmd loadbios png gzio loadenv \
+ reboot halt serial search font gfxmenu gfxterm echo video all_video \
+ usb minicmd
+endif
+
+ cd $(DIR_APP) && ./configure $(CONFIGURE_ARGS) --with-platform=pc