qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/4] configure: TARGET_ARCH cleanups
@ 2013-05-27 11:34 Paolo Bonzini
  2013-05-27 11:34 ` [Qemu-devel] [PATCH 1/4] build: rename TARGET_ARCH2 to TARGET_NAME Paolo Bonzini
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Paolo Bonzini @ 2013-05-27 11:34 UTC (permalink / raw)
  To: qemu-devel; +Cc: peter.maydell, afaerber

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2013-05-29  6:30 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-27 11:34 [Qemu-devel] [PATCH 0/4] configure: TARGET_ARCH cleanups Paolo Bonzini
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

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).