From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47056) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UjqcO-0000FX-H9 for qemu-devel@nongnu.org; Tue, 04 Jun 2013 08:45:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UjqcJ-0005tH-OV for qemu-devel@nongnu.org; Tue, 04 Jun 2013 08:45:40 -0400 Received: from mail-bk0-x22c.google.com ([2a00:1450:4008:c01::22c]:40047) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UjqcJ-0005sV-Hu for qemu-devel@nongnu.org; Tue, 04 Jun 2013 08:45:35 -0400 Received: by mail-bk0-f44.google.com with SMTP id r7so113613bkg.31 for ; Tue, 04 Jun 2013 05:45:34 -0700 (PDT) Sender: Paolo Bonzini From: Paolo Bonzini Date: Tue, 4 Jun 2013 14:45:23 +0200 Message-Id: <1370349928-20419-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PATCH v2 0/5] configure: TARGET_ARCH cleanups List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, stefanha@redhat.com 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