ifneq ($(filter x86%,$(TARGET_ARCH)),)
LOCAL_PATH := $(call my-dir)
-include $(CLEAR_VARS)
include $(CLEAR_VARS)
LOCAL_IS_HOST_MODULE := true
GENISOIMG := $(if $(shell which xorriso 2> /dev/null),xorriso -as mkisofs,genisoimage)
ISO_IMAGE := $(PRODUCT_OUT)/$(TARGET_PRODUCT).iso
+ISOHYBRID := LD_LIBRARY_PATH=$(LOCAL_PATH)/install/lib external/syslinux/bios/utils/isohybrid
$(ISO_IMAGE): $(boot_dir) $(BUILT_IMG)
@echo ----- Making iso image ------
$(hide) sed -i "s|\(Installation CD\)\(.*\)|\1 $(VER)|; s|CMDLINE|$(BOARD_KERNEL_CMDLINE)|" $</isolinux/isolinux.cfg
$(GENISOIMG) -vJURT -b isolinux/isolinux.bin -c isolinux/boot.cat \
-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 "$(if $(RELEASE_OS_TITLE),$(RELEASE_OS_TITLE),Android-x86) $(VER) ($(TARGET_ARCH))" -o $@ $^
- $(hide) external/syslinux/bios/utils/isohybrid.pl $@
+ $(hide) $(ISOHYBRID) --uefi $@
@echo -e "\n\n$@ is built successfully.\n\n"
rpm: $(wildcard $(LOCAL_PATH)/rpm/*) $(BUILT_IMG)
elif [ -e /mnt/$SRC/system.img ]; then
remount_rw
mount -o loop,noatime /mnt/$SRC/system.img system
- elif [ -d /mnt/$SRC/system ]; then
+ elif [ -s /mnt/$SRC/system/build.prop ]; then
remount_rw
mount --bind /mnt/$SRC/system system
- elif [ -z "$SRC" -a -e /mnt/build.prop ]; then
+ elif [ -z "$SRC" -a -s /mnt/build.prop ]; then
mount --bind /mnt system
else
rm -rf *