From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I7VjL-0005eC-Ax for qemu-devel@nongnu.org; Sun, 08 Jul 2007 08:19:11 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I7VjJ-0005bo-Gu for qemu-devel@nongnu.org; Sun, 08 Jul 2007 08:19:10 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I7VjJ-0005be-8V for qemu-devel@nongnu.org; Sun, 08 Jul 2007 08:19:09 -0400 Received: from aybabtu.com ([69.60.117.155]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I7VjI-0006tR-SN for qemu-devel@nongnu.org; Sun, 08 Jul 2007 08:19:09 -0400 Received: from [192.168.10.6] (helo=aragorn) by aybabtu.com with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1I7VjH-0007nP-7O for qemu-devel@nongnu.org; Sun, 08 Jul 2007 14:19:07 +0200 Received: from rmh by aragorn with local (Exim 4.63) (envelope-from ) id 1I7Vl8-0004Fa-NG for qemu-devel@nongnu.org; Sun, 08 Jul 2007 14:21:02 +0200 Date: Sun, 8 Jul 2007 14:21:02 +0200 From: Robert Millan Message-ID: <20070708122102.GA16291@aragorn> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="OgqxwSJOaUobr8KG" Content-Disposition: inline Subject: [Qemu-devel] [PATCH] make /usr/bin/qemu the native arch Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --OgqxwSJOaUobr8KG Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, Shouldn't /usr/bin/qemu be an alias for qemu-system-$(ARCH), where $(ARCH) is the native architecture? Defaulting to i386 doesn't make much sense nowadays, specially since x86_64 is gradually obsoleting it. See attached patch. -- Robert Millan My spam trap is honeypot@aybabtu.com. Note: this address is only intended for spam harvesters. Writing to it will get you added to my black list. --OgqxwSJOaUobr8KG Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="system.diff" --- qemu-0.8.2.old/Makefile.target 2006-07-22 19:23:34.000000000 +0200 +++ qemu-0.8.2/Makefile.target 2007-07-08 14:05:33.000000000 +0200 @@ -43,11 +43,7 @@ QEMU_USER=qemu-$(TARGET_ARCH2) # system emulator name ifdef CONFIG_SOFTMMU -ifeq ($(TARGET_ARCH), i386) -QEMU_SYSTEM=qemu$(EXESUF) -else QEMU_SYSTEM=qemu-system-$(TARGET_ARCH2)$(EXESUF) -endif else QEMU_SYSTEM=qemu-fast endif @@ -531,6 +527,13 @@ install: all ifneq ($(PROGS),) $(INSTALL) -m 755 -s $(PROGS) "$(DESTDIR)$(bindir)" +ifeq ($(ARCH), $(TARGET_ARCH2)) +ifdef _WIN32 + mv "$(DESTDIR)$(bindir)/qemu-system-$(TARGET_ARCH2)$(EXESUF)" "$(DESTDIR)$(bindir)/qemu$(EXESUF)" +else + ln -s qemu-system-$(TARGET_ARCH2)$(EXESUF) "$(DESTDIR)$(bindir)/qemu$(EXESUF)" +endif +endif endif ifneq ($(wildcard .depend),) --OgqxwSJOaUobr8KG--