Skip to content

Commit cf01ba9

Browse files
akoskovacsbonzini
authored andcommitted
Makefile.target: CONFIG_NO_* variables removed
CONFIG_NO_* variables replaced with the lnot logical function Signed-off-by: Ákos Kovács <akoskovacs@gmx.com> [PMM: fixed a few CONFIG_NO_* uses that were missed] Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
1 parent 9ef622e commit cf01ba9

File tree

5 files changed

+6
-10
lines changed

5 files changed

+6
-10
lines changed

Makefile.target

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,6 @@ all: $(PROGS) stap
7070
# Dummy command so that make thinks it has done something
7171
@true
7272

73-
CONFIG_NO_PCI = $(if $(subst n,,$(CONFIG_PCI)),n,y)
74-
CONFIG_NO_KVM = $(if $(subst n,,$(CONFIG_KVM)),n,y)
75-
CONFIG_NO_XEN = $(if $(subst n,,$(CONFIG_XEN)),n,y)
76-
7773
#########################################################
7874
# cpu emulator library
7975
obj-y = exec.o translate-all.o cpu-exec.o
@@ -84,7 +80,7 @@ obj-y += fpu/softfloat.o
8480
obj-y += target-$(TARGET_BASE_ARCH)/
8581
obj-y += disas.o
8682
obj-$(CONFIG_GDBSTUB_XML) += gdbstub-xml.o
87-
obj-$(CONFIG_NO_KVM) += kvm-stub.o
83+
obj-$(call lnot,$(CONFIG_KVM)) += kvm-stub.o
8884

8985
#########################################################
9086
# Linux user emulator target
@@ -125,7 +121,7 @@ LIBS+=$(libs_softmmu)
125121

126122
# xen support
127123
obj-$(CONFIG_XEN) += xen-all.o xen-mapcache.o
128-
obj-$(CONFIG_NO_XEN) += xen-stub.o
124+
obj-$(call lnot,$(CONFIG_XEN)) += xen-stub.o
129125

130126
# Hardware support
131127
ifeq ($(TARGET_NAME), sparc64)

hw/pci/Makefile.objs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ common-obj-$(CONFIG_PCI) += slotid_cap.o
55
common-obj-$(CONFIG_PCI) += pci_host.o pcie_host.o
66
common-obj-$(CONFIG_PCI) += pcie.o pcie_aer.o pcie_port.o
77

8-
common-obj-$(CONFIG_NO_PCI) += pci-stub.o
8+
common-obj-$(call lnot,$(CONFIG_PCI)) += pci-stub.o
99
common-obj-$(CONFIG_ALL) += pci-stub.o
1010

1111
common-obj-$(CONFIG_PCI_HOTPLUG_OLD) += pci-hotplug-old.o

target-arm/Makefile.objs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
obj-y += arm-semi.o
22
obj-$(CONFIG_SOFTMMU) += machine.o
33
obj-$(CONFIG_KVM) += kvm.o
4-
obj-$(CONFIG_NO_KVM) += kvm-stub.o
4+
obj-$(call lnot,$(CONFIG_KVM)) += kvm-stub.o
55
obj-y += translate.o op_helper.o helper.o cpu.o
66
obj-y += neon_helper.o iwmmxt_helper.o
77
obj-y += gdbstub.o

target-i386/Makefile.objs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ obj-y += smm_helper.o misc_helper.o mem_helper.o seg_helper.o
44
obj-y += gdbstub.o
55
obj-$(CONFIG_SOFTMMU) += machine.o arch_memory_mapping.o arch_dump.o
66
obj-$(CONFIG_KVM) += kvm.o
7-
obj-$(CONFIG_NO_KVM) += kvm-stub.o
7+
obj-$(call lnot,$(CONFIG_KVM)) += kvm-stub.o
88
obj-$(CONFIG_LINUX_USER) += ioport-user.o
99
obj-$(CONFIG_BSD_USER) += ioport-user.o

target-ppc/Makefile.objs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ obj-y += machine.o mmu_helper.o mmu-hash32.o
55
obj-$(TARGET_PPC64) += mmu-hash64.o
66
endif
77
obj-$(CONFIG_KVM) += kvm.o kvm_ppc.o
8-
obj-$(CONFIG_NO_KVM) += kvm-stub.o
8+
obj-$(call lnot,$(CONFIG_KVM)) += kvm-stub.o
99
obj-y += excp_helper.o
1010
obj-y += fpu_helper.o
1111
obj-y += int_helper.o

0 commit comments

Comments
 (0)