mirror of
https://github.com/xemu-project/xemu.git
synced 2025-02-13 16:40:16 +00:00
Substitute ifdef CONFIG_FOO by obj-
Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
0e22fd2f11
commit
943e0a319c
@ -135,9 +135,7 @@ all: $(PROGS)
|
|||||||
#########################################################
|
#########################################################
|
||||||
# cpu emulator library
|
# cpu emulator library
|
||||||
libobj-y = exec.o translate-all.o cpu-exec.o translate.o host-utils.o
|
libobj-y = exec.o translate-all.o cpu-exec.o translate.o host-utils.o
|
||||||
ifdef CONFIG_KQEMU
|
libobj-$(CONFIG_KQEMU) += kqemu.o
|
||||||
libobj-y += kqemu.o
|
|
||||||
endif
|
|
||||||
# TCG code generator
|
# TCG code generator
|
||||||
libobj-y += tcg/tcg.o tcg/tcg-runtime.o
|
libobj-y += tcg/tcg.o tcg/tcg-runtime.o
|
||||||
CPPFLAGS+=-I$(SRC_PATH)/tcg -I$(SRC_PATH)/tcg/$(ARCH)
|
CPPFLAGS+=-I$(SRC_PATH)/tcg -I$(SRC_PATH)/tcg/$(ARCH)
|
||||||
@ -176,9 +174,7 @@ endif
|
|||||||
ifeq ($(findstring x86_64, $(TARGET_ARCH) $(ARCH)),x86_64)
|
ifeq ($(findstring x86_64, $(TARGET_ARCH) $(ARCH)),x86_64)
|
||||||
USE_I386_DIS=y
|
USE_I386_DIS=y
|
||||||
endif
|
endif
|
||||||
ifdef USE_I386_DIS
|
libobj-$(USE_I386_DIS) += i386-dis.o
|
||||||
libobj-y += i386-dis.o
|
|
||||||
endif
|
|
||||||
ifeq ($(findstring alpha, $(TARGET_ARCH) $(ARCH)),alpha)
|
ifeq ($(findstring alpha, $(TARGET_ARCH) $(ARCH)),alpha)
|
||||||
libobj-y += alpha-dis.o
|
libobj-y += alpha-dis.o
|
||||||
endif
|
endif
|
||||||
@ -328,13 +324,12 @@ obj-y = main.o syscall.o strace.o mmap.o signal.o path.o thunk.o \
|
|||||||
elfload.o linuxload.o uaccess.o envlist.o gdbstub.o gdbstub-xml.o
|
elfload.o linuxload.o uaccess.o envlist.o gdbstub.o gdbstub-xml.o
|
||||||
LIBS+= $(PTHREADLIBS)
|
LIBS+= $(PTHREADLIBS)
|
||||||
LIBS+= $(CLOCKLIBS)
|
LIBS+= $(CLOCKLIBS)
|
||||||
ifdef TARGET_HAS_BFLT
|
obj-$(TARGET_HAS_BFLT) += flatload.o
|
||||||
obj-y += flatload.o
|
|
||||||
endif
|
|
||||||
ifdef TARGET_HAS_ELFLOAD32
|
ifdef TARGET_HAS_ELFLOAD32
|
||||||
obj-y += elfload32.o
|
|
||||||
elfload32.o: elfload.c
|
elfload32.o: elfload.c
|
||||||
endif
|
endif
|
||||||
|
obj-$(TARGET_HAS_ELFLOAD32) += elfload32.o
|
||||||
|
|
||||||
ifeq ($(TARGET_ARCH), i386)
|
ifeq ($(TARGET_ARCH), i386)
|
||||||
obj-y += vm86.o
|
obj-y += vm86.o
|
||||||
@ -547,9 +542,8 @@ LIBS += $(CONFIG_BLUEZ_LIBS)
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# xen backend driver support
|
# xen backend driver support
|
||||||
XEN_OBJS := xen_machine_pv.o xen_domainbuild.o
|
obj-$(CONFIG_XEN) += xen_machine_pv.o xen_domainbuild.o
|
||||||
ifeq ($(CONFIG_XEN), yes)
|
ifeq ($(CONFIG_XEN), yes)
|
||||||
obj-y += $(XEN_OBJS)
|
|
||||||
LIBS += $(XEN_LIBS)
|
LIBS += $(XEN_LIBS)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@ -597,9 +591,7 @@ ifdef FDT_LIBS
|
|||||||
obj-y += device_tree.o
|
obj-y += device_tree.o
|
||||||
LIBS+= $(FDT_LIBS)
|
LIBS+= $(FDT_LIBS)
|
||||||
endif
|
endif
|
||||||
ifdef CONFIG_KVM
|
obj-$(CONFIG_KVM) += kvm_ppc.o
|
||||||
obj-y += kvm_ppc.o
|
|
||||||
endif
|
|
||||||
endif
|
endif
|
||||||
ifeq ($(TARGET_BASE_ARCH), mips)
|
ifeq ($(TARGET_BASE_ARCH), mips)
|
||||||
obj-y += mips_r4k.o mips_jazz.o mips_malta.o mips_mipssim.o
|
obj-y += mips_r4k.o mips_jazz.o mips_malta.o mips_mipssim.o
|
||||||
|
Loading…
x
Reference in New Issue
Block a user