ALL_OBJS-y += $(BASEDIR)/drivers/built_in.o
ALL_OBJS-y += $(BASEDIR)/xsm/built_in.o
ALL_OBJS-y += $(BASEDIR)/arch/$(TARGET_ARCH)/built_in.o
-ALL_OBJS-$(x86) += $(BASEDIR)/crypto/built_in.o
+ALL_OBJS-$(CONFIG_X86) += $(BASEDIR)/crypto/built_in.o
CFLAGS += -nostdinc -fno-builtin -fno-common
CFLAGS += -Werror -Wredundant-decls -Wno-pointer-arith
subdir-y += hvm
subdir-y += mm
subdir-y += oprofile
-
-subdir-$(x86_64) += x86_64
+subdir-y += x86_64
obj-bin-y += alternative.init.o
obj-y += apic.o
x86_emulate.o: x86_emulate/x86_emulate.c x86_emulate/x86_emulate.h
-efi-$(x86_64) := $(shell if [ ! -r $(BASEDIR)/include/xen/compile.h -o \
- -O $(BASEDIR)/include/xen/compile.h ]; then \
+efi-y := $(shell if [ ! -r $(BASEDIR)/include/xen/compile.h -o \
+ -O $(BASEDIR)/include/xen/compile.h ]; then \
echo '$(TARGET).efi'; fi)
$(TARGET): $(TARGET)-syms $(efi-y) boot/mkelf32
-U__OBJECT_LABEL__ -DHAVE_GAS_QUOTED_SYM \
'-D__OBJECT_LABEL__=$(subst $(BASEDIR)/,,$(CURDIR))/$$@')
-x86 := y
-x86_32 := n
-x86_64 := y
-
shadow-paging ?= y
bigmem ?= n
create = test -e $(1) || touch -t 199901010000 $(1)
-efi := $(filter y,$(x86_64)$(shell rm -f disabled))
+efi := y$(shell rm -f disabled)
efi := $(if $(efi),$(shell $(CC) $(filter-out $(CFLAGS-y) .%.d,$(CFLAGS)) -c check.c 2>disabled && echo y))
efi := $(if $(efi),$(shell $(LD) -mi386pep --subsystem=10 -o check.efi check.o 2>disabled && echo y))
efi := $(if $(efi),$(shell rm disabled)y,$(shell $(call create,boot.init.o); $(call create,runtime.o)))
obj-y += altp2m.o
obj-y += guest_walk_2.o
obj-y += guest_walk_3.o
-obj-$(x86_64) += guest_walk_4.o
-obj-$(x86_64) += mem_paging.o
-obj-$(x86_64) += mem_sharing.o
+obj-y += guest_walk_4.o
+obj-y += mem_paging.o
+obj-y += mem_sharing.o
guest_walk_%.o: guest_walk.c Makefile
$(CC) $(CFLAGS) -DGUEST_PAGING_LEVELS=$* -c $< -o $@
obj-y += hap.o
obj-y += guest_walk_2level.o
obj-y += guest_walk_3level.o
-obj-$(x86_64) += guest_walk_4level.o
+obj-y += guest_walk_4level.o
obj-y += nested_hap.o
obj-y += nested_ept.o
obj-$(CONFIG_COMPAT) += $(addprefix compat/,domain.o kernel.o memory.o multicall.o tmem_xen.o xlat.o)
-subdir-$(x86_64) += hvm
+subdir-$(CONFIG_X86) += hvm
subdir-$(coverage) += gcov
subdir-y += tables
subdir-y += utilities
-subdir-$(x86) += apei
+subdir-$(CONFIG_X86) += apei
obj-bin-y += tables.init.o
obj-$(HAS_NUMA) += numa.o
obj-y += osl.o
obj-y += pmstat.o
-obj-$(x86) += hwregs.o
-obj-$(x86) += reboot.o
+obj-$(CONFIG_X86) += hwregs.o
+obj-$(CONFIG_X86) += reboot.o
-subdir-$(x86) += vtd
-subdir-$(x86) += amd
-subdir-$(x86_64) += x86
+subdir-$(CONFIG_X86) += vtd
+subdir-$(CONFIG_X86) += amd
+subdir-$(CONFIG_X86) += x86
subdir-$(arm) += arm
obj-y += iommu.o
-obj-$(x86) += io.o
+obj-$(CONFIG_X86) += io.o
obj-$(CONFIG_HAS_PCI) += pci.o
obj-$(CONFIG_HAS_DEVICE_TREE) += device_tree.o
-subdir-$(x86) += x86
+subdir-$(CONFIG_X86) += x86
obj-y += iommu.o
obj-y += dmar.o