From: Robert Millan <rmh@aybabtu.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH] make /usr/bin/qemu the native arch
Date: Sun, 8 Jul 2007 14:21:02 +0200 [thread overview]
Message-ID: <20070708122102.GA16291@aragorn> (raw)
[-- Attachment #1: Type: text/plain, Size: 403 bytes --]
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.
[-- Attachment #2: system.diff --]
[-- Type: text/x-diff, Size: 786 bytes --]
--- 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),)
next reply other threads:[~2007-07-08 12:19 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-08 12:21 Robert Millan [this message]
2007-07-08 16:35 ` [Qemu-devel] [PATCH] make /usr/bin/qemu the native arch Daniel P. Berrange
2007-07-08 17:04 ` Ricardo Almeida
2007-07-08 20:16 ` Daniel P. Berrange
2007-07-11 18:54 ` andrzej zaborowski
-- strict thread matches above, loose matches on Subject: below --
2007-08-01 19:53 Robert Millan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070708122102.GA16291@aragorn \
--to=rmh@aybabtu.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).