qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: qemu-devel@nongnu.org
Cc: peter.maydell@linaro.org, afaerber@suse.de
Subject: [Qemu-devel] [PATCH 0/4] configure: TARGET_ARCH cleanups
Date: Mon, 27 May 2013 13:34:47 +0200	[thread overview]
Message-ID: <1369654491-1467-1-git-send-email-pbonzini@redhat.com> (raw)

We have three variables currently in config-target.h:

- TARGET_ARCH is used to create a unique per-arch symbol, used in #ifdefs.
  It is also used as a string through config-target.h, but this is almost
  always wrong.

- TARGET_ARCH2 is the name of the executable (minus the qemu-/qemu-system-
  prefix); it is not available in config-target.h.

- TARGET_TYPE is an enum but is otherwise the same as TARGET_ARCH2

This series changes all uses of TARGET_ARCH to refer to TARGET_ARCH2
instead (which is renamed to TARGET_NAME).  The TARGET_ARCH #define
is dropped, only the per-arch symbol remains.  TARGET_TYPE is then also
removed since it is serialized to the same string if TARGET_NAME is
used directly.

Paolo Bonzini (4):
  build: rename TARGET_ARCH2 to TARGET_NAME
  build: do not use TARGET_ARCH
  main: use TARGET_ARCH only for the target-specific #define
  build: drop TARGET_TYPE

 Makefile.target       | 12 ++++++------
 arch_init.c           |  4 ++--
 bsd-user/main.c       |  6 +++---
 configure             | 42 ++++++++++++++++++++----------------------
 docs/tracing.txt      |  2 +-
 linux-user/main.c     |  6 +++---
 qapi-schema.json      | 18 +-----------------
 scripts/create_config | 15 +++++----------
 scripts/tracetool.py  | 18 +++++++++---------
 9 files changed, 50 insertions(+), 73 deletions(-)

-- 
1.8.1.4

             reply	other threads:[~2013-05-27 11:35 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-27 11:34 Paolo Bonzini [this message]
2013-05-27 11:34 ` [Qemu-devel] [PATCH 1/4] build: rename TARGET_ARCH2 to TARGET_NAME Paolo Bonzini
2013-05-27 11:34 ` [Qemu-devel] [PATCH 2/4] build: do not use TARGET_ARCH Paolo Bonzini
2013-05-28 18:14   ` Peter Maydell
2013-05-27 11:34 ` [Qemu-devel] [PATCH 3/4] main: use TARGET_ARCH only for the target-specific #define Paolo Bonzini
2013-05-28 18:09   ` Peter Maydell
2013-05-29  6:30     ` Paolo Bonzini
2013-05-27 11:34 ` [Qemu-devel] [PATCH 4/4] build: drop TARGET_TYPE Paolo Bonzini
2013-05-28 15:20   ` Eric Blake

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=1369654491-1467-1-git-send-email-pbonzini@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=afaerber@suse.de \
    --cc=peter.maydell@linaro.org \
    --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).