qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v2 0/5] configure: TARGET_ARCH cleanups
@ 2013-06-04 12:45 Paolo Bonzini
  2013-06-04 12:45 ` [Qemu-devel] [PATCH v2 1/5] Add a stp file for usage from build directory Paolo Bonzini
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Paolo Bonzini @ 2013-06-04 12:45 UTC (permalink / raw)
  To: qemu-devel; +Cc: peter.maydell, stefanha

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

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

end of thread, other threads:[~2013-06-13 14:40 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-04 12:45 [Qemu-devel] [PATCH v2 0/5] configure: TARGET_ARCH cleanups Paolo Bonzini
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

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