From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:36404) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ugvhb-00025z-Ta for qemu-devel@nongnu.org; Mon, 27 May 2013 07:35:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ugvha-0004dR-BO for qemu-devel@nongnu.org; Mon, 27 May 2013 07:34:59 -0400 Received: from mail-ee0-f45.google.com ([74.125.83.45]:34930) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ugvha-0004dE-5f for qemu-devel@nongnu.org; Mon, 27 May 2013 07:34:58 -0400 Received: by mail-ee0-f45.google.com with SMTP id l10so3812338eei.18 for ; Mon, 27 May 2013 04:34:57 -0700 (PDT) Sender: Paolo Bonzini From: Paolo Bonzini Date: Mon, 27 May 2013 13:34:47 +0200 Message-Id: <1369654491-1467-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PATCH 0/4] 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, afaerber@suse.de 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