From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33048) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UqDU7-0006ea-Mf for qemu-devel@nongnu.org; Fri, 21 Jun 2013 22:23:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UqDU2-00072l-Nr for qemu-devel@nongnu.org; Fri, 21 Jun 2013 22:23:27 -0400 Received: from mail-ee0-x235.google.com ([2a00:1450:4013:c00::235]:39306) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UqDU2-00072h-H7 for qemu-devel@nongnu.org; Fri, 21 Jun 2013 22:23:22 -0400 Received: by mail-ee0-f53.google.com with SMTP id c41so4953095eek.26 for ; Fri, 21 Jun 2013 19:23:21 -0700 (PDT) From: akoskovacs0@gmail.com Date: Sat, 22 Jun 2013 04:23:09 +0200 Message-Id: <51c50a99.c4730e0a.40e4.6fb9@mx.google.com> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [Qemu-devel] [PATCH 2/3] Makefile.target: CONFIG_NO_* variables deleted List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: pbonzini@redhat.com, =?UTF-8?q?=C3=81kos=20Kov=C3=A1cs?= From: Ákos Kovács CONFIG_NO_* variables replaced with the lnot logical function Signed-off-by: Ákos Kovács --- Makefile.target | 14 ++++---------- 1 files changed, 4 insertions(+), 10 deletions(-) diff --git a/Makefile.target b/Makefile.target index ce4391f..180f1ec 100644 --- a/Makefile.target +++ b/Makefile.target @@ -60,12 +60,6 @@ all: $(PROGS) stap # Dummy command so that make thinks it has done something @true -CONFIG_NO_PCI = $(if $(subst n,,$(CONFIG_PCI)),n,y) -CONFIG_NO_KVM = $(if $(subst n,,$(CONFIG_KVM)),n,y) -CONFIG_NO_XEN = $(if $(subst n,,$(CONFIG_XEN)),n,y) -CONFIG_NO_GET_MEMORY_MAPPING = $(if $(subst n,,$(CONFIG_HAVE_GET_MEMORY_MAPPING)),n,y) -CONFIG_NO_CORE_DUMP = $(if $(subst n,,$(CONFIG_HAVE_CORE_DUMP)),n,y) - ######################################################### # cpu emulator library obj-y = exec.o translate-all.o cpu-exec.o @@ -76,7 +70,7 @@ obj-y += fpu/softfloat.o obj-y += target-$(TARGET_BASE_ARCH)/ obj-y += disas.o obj-$(CONFIG_GDBSTUB_XML) += gdbstub-xml.o -obj-$(CONFIG_NO_KVM) += kvm-stub.o +obj-$(call lnot,$(CONFIG_KVM)) += kvm-stub.o ######################################################### # Linux user emulator target @@ -113,13 +107,13 @@ obj-$(CONFIG_KVM) += kvm-all.o obj-y += memory.o savevm.o cputlb.o obj-$(CONFIG_HAVE_GET_MEMORY_MAPPING) += memory_mapping.o obj-$(CONFIG_HAVE_CORE_DUMP) += dump.o -obj-$(CONFIG_NO_GET_MEMORY_MAPPING) += memory_mapping-stub.o -obj-$(CONFIG_NO_CORE_DUMP) += dump-stub.o +obj-$(call lnot,$(CONFIG_HAVE_GET_MEMORY_MAPPING)) += memory_mapping-stub.o +obj-$(call lnot,$(CONFIG_HAVE_CORE_DUMP)) += dump-stub.o LIBS+=$(libs_softmmu) # xen support obj-$(CONFIG_XEN) += xen-all.o xen-mapcache.o -obj-$(CONFIG_NO_XEN) += xen-stub.o +obj-$(call lnot,$(CONFIG_XEN)) += xen-stub.o # Hardware support ifeq ($(TARGET_ARCH), sparc64) -- 1.7.2.5