@echo ----- Making iso image ------
$(hide) $(call check-density,$</isolinux/isolinux.cfg)
$(hide) sed -i "s|\(Installation CD\)\(.*\)|\1 $(VER)|; s|CMDLINE|$(BOARD_KERNEL_CMDLINE)|" $</isolinux/isolinux.cfg
+ $(hide) sed -i "s|VER|$(VER)|; s|CMDLINE|$(BOARD_KERNEL_CMDLINE)|" $</boot/grub/grub.cfg
+ $(hide) cp -r $(<D)/../../../../bootable/newinstaller/install/grub2/efi $</efi
genisoimage -vJURT -b isolinux/isolinux.bin -c isolinux/boot.cat \
- -no-emul-boot -boot-load-size 4 -boot-info-table \
+ -no-emul-boot -boot-load-size 4 -boot-info-table -eltorito-alt-boot -e boot/grub/efi.img -no-emul-boot \
-input-charset utf-8 -V "Android-x86 LiveCD" -o $@ $^
- $(hide) isohybrid $@ || echo -e "isohybrid not found.\nInstall syslinux 4.0 or higher if you want to build a usb bootable iso."
+ $(hide) isohybrid --uefi $@ || echo -e "isohybrid not found.\nInstall syslinux 4.0 or higher if you want to build a usb bootable iso."
@echo -e "\n\n$@ is built successfully.\n\n"
# Note: requires dosfstools
EFI_IMAGE := $(PRODUCT_OUT)/$(TARGET_PRODUCT).img
ESP_LAYOUT := $(LOCAL_PATH)/editdisklbl/esp_layout.conf
-$(EFI_IMAGE): $(wildcard $(LOCAL_PATH)/boot/efi/*/*) $(BUILT_IMG) $(ESP_LAYOUT) | $(edit_mbr)
+$(EFI_IMAGE): $(wildcard $(LOCAL_PATH)/boot/boot/*/*) $(BUILT_IMG) $(ESP_LAYOUT) | $(edit_mbr)
$(hide) sed "s|VER|$(VER)|; s|CMDLINE|$(BOARD_KERNEL_CMDLINE)|" $(<D)/grub.cfg > $(@D)/grub.cfg
$(hide) size=0; \
for s in `du -sk $^ | awk '{print $$1}'`; do \
size=$$(($$(($$(($$(($$(($$size + $$(($$size / 100)))) - 1)) / 32)) + 1)) * 32)); \
rm -f $@.fat; mkdosfs -n Android-x86 -C $@.fat $$size
$(hide) mcopy -Qsi $@.fat $(<D)/../../../install/grub2/efi $(BUILT_IMG) ::
- $(hide) mcopy -Qoi $@.fat $(@D)/grub.cfg ::efi/boot
+ $(hide) mcopy -Qoi $@.fat $(@D)/grub.cfg ::boot/grub
$(hide) cat /dev/null > $@; $(edit_mbr) -l $(ESP_LAYOUT) -i $@ esp=$@.fat
$(hide) rm -f $@.fat
+set timeout=30
+
menuentry 'Android-x86 VER Live' --class android-x86 {
search --file --no-floppy --set=root /system.sfs
- linuxefi /kernel CMDLINE quiet DATA=
- initrdefi /initrd.img
+ linux /kernel CMDLINE quiet DATA=
+ initrd /initrd.img
}
menuentry 'Android-x86 VER DEBUG mode' --class android-x86 {
search --file --no-floppy --set=root /system.sfs
- linuxefi /kernel CMDLINE DATA= DEBUG=2
- initrdefi /initrd.img
+ linux /kernel CMDLINE DATA= DEBUG=2
+ initrd /initrd.img
}
menuentry 'Android-x86 VER Installation' --class android-x86 {
search --file --no-floppy --set=root /system.sfs
- linuxefi /kernel CMDLINE DEBUG= INSTALL=1
- initrdefi /initrd.img
+ linux /kernel CMDLINE DEBUG= INSTALL=1
+ initrd /initrd.img
}
menuentry 'Windows' {