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, stefanha@redhat.com
Subject: [Qemu-devel] [PATCH v2 0/5] configure: TARGET_ARCH cleanups
Date: Tue,  4 Jun 2013 14:45:23 +0200	[thread overview]
Message-ID: <1370349928-20419-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.

I included Alon's patch because of a nasty semantic conflict between it
and patch "build: do not use TARGET_ARCH".

Alon Levy (1):
  Add a stp file for usage from build directory

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       | 28 +++++++++++++++++++---------
 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, 63 insertions(+), 76 deletions(-)

-- 
1.8.1.4

             reply	other threads:[~2013-06-04 12:45 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-04 12:45 Paolo Bonzini [this message]
2013-06-04 12:45 ` [Qemu-devel] [PATCH v2 1/5] Add a stp file for usage from build directory Paolo Bonzini
2013-06-04 12:45 ` [Qemu-devel] [PATCH v2 2/5] build: rename TARGET_ARCH2 to TARGET_NAME Paolo Bonzini
2013-06-04 12:45 ` [Qemu-devel] [PATCH v2 3/5] build: do not use TARGET_ARCH Paolo Bonzini
2013-06-04 12:45 ` [Qemu-devel] [PATCH v2 4/5] main: use TARGET_ARCH only for the target-specific #define Paolo Bonzini
2013-06-04 12:45 ` [Qemu-devel] [PATCH v2 5/5] build: drop TARGET_TYPE Paolo Bonzini
2013-06-13 14:39 ` [Qemu-devel] [PATCH v2 0/5] configure: TARGET_ARCH cleanups Peter Maydell

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=1370349928-20419-1-git-send-email-pbonzini@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@redhat.com \
    /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).