提交 86188d9d 创建 作者: Frans Kaashoek's avatar Frans Kaashoek

newer versions of qemu have different binary names (per Joel Nider <joel@nider.org>)

上级 ff278344
...@@ -29,7 +29,7 @@ OBJS = \ ...@@ -29,7 +29,7 @@ OBJS = \
vm.o\ vm.o\
# Cross-compiling (e.g., on Mac OS X) # Cross-compiling (e.g., on Mac OS X)
#TOOLPREFIX = i386-jos-elf- # TOOLPREFIX = i386-jos-elf
# Using native tools (e.g., on X86 Linux) # Using native tools (e.g., on X86 Linux)
#TOOLPREFIX = #TOOLPREFIX =
...@@ -51,12 +51,14 @@ TOOLPREFIX := $(shell if i386-jos-elf-objdump -i 2>&1 | grep '^elf32-i386$$' >/d ...@@ -51,12 +51,14 @@ TOOLPREFIX := $(shell if i386-jos-elf-objdump -i 2>&1 | grep '^elf32-i386$$' >/d
endif endif
# If the makefile can't find QEMU, specify its path here # If the makefile can't find QEMU, specify its path here
#QEMU = QEMU = qemu-system-i386
# Try to infer the correct QEMU # Try to infer the correct QEMU
ifndef QEMU ifndef QEMU
QEMU = $(shell if which qemu > /dev/null; \ QEMU = $(shell if which qemu > /dev/null; \
then echo qemu; exit; \ then echo qemu; exit; \
elif which qemu-system-i386 > /dev/null; \
then echo qemu-system-i386; exit; \
else \ else \
qemu=/Applications/Q.app/Contents/MacOS/i386-softmmu.app/Contents/MacOS/i386-softmmu; \ qemu=/Applications/Q.app/Contents/MacOS/i386-softmmu.app/Contents/MacOS/i386-softmmu; \
if test -x $$qemu; then echo $$qemu; exit; fi; fi; \ if test -x $$qemu; then echo $$qemu; exit; fi; fi; \
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论