ia64/xen-unstable

annotate xen/Rules.mk @ 19848:5839491bbf20

[IA64] replace MAX_VCPUS with d->max_vcpus where necessary.

don't use MAX_VCPUS, and use vcpu::max_vcpus.
The changeset of 2f9e1348aa98 introduced max_vcpus to allow more vcpus
per guest. This patch is ia64 counter part.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
author Isaku Yamahata <yamahata@valinux.co.jp>
date Mon Jun 29 11:26:05 2009 +0900 (2009-06-29)
parents 7d55cc23493b
children
rev   line source
kaf24@8763 1
kaf24@5581 2 #
kaf24@5581 3 # If you change any of these configuration options then you must
kaf24@5581 4 # 'make clean' before rebuilding.
kaf24@5581 5 #
kfraser@15290 6 verbose ?= n
kfraser@15290 7 perfc ?= n
kfraser@15290 8 perfc_arrays ?= n
kfraser@15290 9 crash_debug ?= n
kfraser@15290 10 frame_pointer ?= n
kaf24@1444 11
kfraser@11209 12 XEN_ROOT=$(BASEDIR)/..
kfraser@11209 13 include $(XEN_ROOT)/Config.mk
kfraser@11209 14
kaf24@9330 15 # Hardcoded configuration implications and dependencies.
kaf24@9330 16 # Do this is a neater way if it becomes unwieldy.
kaf24@9330 17 ifeq ($(debug),y)
kfraser@15290 18 verbose := y
kfraser@15290 19 frame_pointer := y
keir@16722 20 else
keir@16722 21 CFLAGS += -DNDEBUG
kaf24@9330 22 endif
kaf24@9330 23 ifeq ($(perfc_arrays),y)
kaf24@9330 24 perfc := y
kaf24@9330 25 endif
kaf24@9330 26
cl349@5092 27 # Set ARCH/SUBARCH appropriately.
cl349@5092 28 override TARGET_SUBARCH := $(XEN_TARGET_ARCH)
kaf24@10742 29 override TARGET_ARCH := $(shell echo $(XEN_TARGET_ARCH) | \
keir@17617 30 sed -e 's/x86.*/x86/')
cl349@5092 31
kaf24@9594 32 TARGET := $(BASEDIR)/xen
kaf24@9594 33
kaf24@1157 34 include $(BASEDIR)/arch/$(TARGET_ARCH)/Rules.mk
iap10@236 35
kaf24@9330 36 # Note that link order matters!
kaf24@9331 37 ALL_OBJS-y += $(BASEDIR)/common/built_in.o
kaf24@9331 38 ALL_OBJS-y += $(BASEDIR)/drivers/built_in.o
kfraser@15815 39 ALL_OBJS-y += $(BASEDIR)/xsm/built_in.o
kaf24@9332 40 ALL_OBJS-y += $(BASEDIR)/arch/$(TARGET_ARCH)/built_in.o
keir@19267 41 ALL_OBJS-$(x86) += $(BASEDIR)/crypto/built_in.o
kaf24@1274 42
kfraser@15290 43 CFLAGS-y += -g -D__XEN__
kfraser@15815 44 CFLAGS-$(XSM_ENABLE) += -DXSM_ENABLE
kfraser@15819 45 CFLAGS-$(FLASK_ENABLE) += -DFLASK_ENABLE -DXSM_MAGIC=0xf97cff8c
kfraser@15819 46 CFLAGS-$(FLASK_ENABLE) += -DFLASK_DEVELOP -DFLASK_BOOTPARAM -DFLASK_AVC_STATS
kfraser@15819 47 CFLAGS-$(ACM_SECURITY) += -DACM_SECURITY -DXSM_MAGIC=0xbcde0100
kfraser@15290 48 CFLAGS-$(verbose) += -DVERBOSE
kfraser@15290 49 CFLAGS-$(crash_debug) += -DCRASH_DEBUG
kfraser@15290 50 CFLAGS-$(perfc) += -DPERF_COUNTERS
kfraser@15290 51 CFLAGS-$(perfc_arrays) += -DPERF_ARRAYS
kfraser@15290 52 CFLAGS-$(frame_pointer) += -fno-omit-frame-pointer -DCONFIG_FRAME_POINTER
kaf24@1274 53
kaf24@9517 54 ifneq ($(max_phys_cpus),)
kfraser@15290 55 CFLAGS-y += -DMAX_PHYS_CPUS=$(max_phys_cpus)
kaf24@9517 56 endif
keir@18822 57 ifneq ($(max_phys_irqs),)
keir@18822 58 CFLAGS-y += -DMAX_PHYS_IRQS=$(max_phys_irqs)
keir@18822 59 endif
kaf24@9517 60
kfraser@15290 61 AFLAGS-y += -D__ASSEMBLY__
kaf24@9533 62
kaf24@9330 63 ALL_OBJS := $(ALL_OBJS-y)
kfraser@11872 64
keir@19030 65 # Get gcc to generate the dependencies for us.
keir@19030 66 CFLAGS-y += -MMD -MF .$(@F).d
keir@19030 67 DEPS = .*.d
keir@19030 68
keir@19030 69 CFLAGS += $(CFLAGS-y)
kfraser@11872 70
kfraser@11872 71 # Most CFLAGS are safe for assembly files:
kfraser@11872 72 # -std=gnu{89,99} gets confused by #-prefixed end-of-line comments
keir@19030 73 AFLAGS += $(AFLAGS-y) $(filter-out -std=gnu%,$(CFLAGS))
kaf24@2975 74
kfraser@11878 75 # LDFLAGS are only passed directly to $(LD)
keir@19030 76 LDFLAGS += $(LDFLAGS_DIRECT)
kfraser@11878 77
kaf24@9595 78 include Makefile
kaf24@9595 79
kaf24@9595 80 # Ensure each subdirectory has exactly one trailing slash.
kaf24@9595 81 subdir-n := $(patsubst %,%/,$(patsubst %/,%,$(subdir-n)))
kaf24@9595 82 subdir-y := $(patsubst %,%/,$(patsubst %/,%,$(subdir-y)))
kaf24@9595 83
kaf24@9595 84 # Add explicitly declared subdirectories to the object list.
kaf24@9635 85 obj-y += $(patsubst %/,%/built_in.o,$(subdir-y))
kaf24@9595 86
kaf24@9595 87 # Add implicitly declared subdirectories (in the object list) to the
kaf24@9595 88 # subdirectory list, and rewrite the object-list entry.
kaf24@9595 89 subdir-y += $(filter %/,$(obj-y))
kaf24@9595 90 obj-y := $(patsubst %/,%/built-in.o,$(obj-y))
kaf24@9595 91
kaf24@9595 92 subdir-all := $(subdir-y) $(subdir-n)
kaf24@9595 93
kaf24@9595 94 built_in.o: $(obj-y)
kaf24@9595 95 $(LD) $(LDFLAGS) -r -o $@ $^
kaf24@9595 96
kaf24@9660 97 # Force execution of pattern rules (for which PHONY cannot be directly used).
kaf24@9595 98 .PHONY: FORCE
kaf24@9595 99 FORCE:
kaf24@9595 100
kaf24@9595 101 %/built_in.o: FORCE
kaf24@9595 102 $(MAKE) -f $(BASEDIR)/Rules.mk -C $* built_in.o
kaf24@9595 103
kaf24@9660 104 .PHONY: clean
kaf24@9660 105 clean:: $(addprefix _clean_, $(subdir-all))
keir@19011 106 rm -f *.o *~ core $(DEPS)
kaf24@9595 107 _clean_%/: FORCE
kaf24@9595 108 $(MAKE) -f $(BASEDIR)/Rules.mk -C $* clean
kaf24@9595 109
keir@19011 110 %.o: %.c Makefile
kaf24@509 111 $(CC) $(CFLAGS) -c $< -o $@
iap10@236 112
keir@19011 113 %.o: %.S Makefile
kfraser@11872 114 $(CC) $(AFLAGS) -c $< -o $@
kfraser@10915 115
keir@19011 116 %.i: %.c Makefile
kfraser@10915 117 $(CPP) $(CFLAGS) $< -o $@
kfraser@10915 118
kfraser@11872 119 # -std=gnu{89,99} gets confused by # as an end-of-line comment marker
keir@19011 120 %.s: %.S Makefile
kfraser@11872 121 $(CPP) $(AFLAGS) $< -o $@
keir@19011 122
keir@19011 123 -include $(DEPS)