ia64/xen-unstable

view xen/Rules.mk @ 6042:69b7c9c3a9fd

Fix mach2phys table allocation for 32-bit PAE Xen.
Found by Gerd Knorr.
author kaf24@firebug.cl.cam.ac.uk
date Fri Aug 05 15:11:46 2005 +0000 (2005-08-05)
parents a83ac0806d6b
children 424166f4f3cf 8864f0be80c6 f51fe43c5d1c 6783e59e1c45 8799d14bef77 29aab159846c e3d811cca4e1
line source
1 #
2 # If you change any of these configuration options then you must
3 # 'make clean' before rebuilding.
4 #
5 verbose ?= n
6 debug ?= n
7 perfc ?= n
8 perfc_arrays?= n
9 trace ?= n
10 optimize ?= y
11 domu_debug ?= n
12 crash_debug ?= n
14 # ACM_USE_SECURITY_POLICY is set to security policy of Xen
15 # Supported models are:
16 # ACM_NULL_POLICY (ACM will not be built with this policy)
17 # ACM_CHINESE_WALL_POLICY
18 # ACM_SIMPLE_TYPE_ENFORCEMENT_POLICY
19 # ACM_CHINESE_WALL_AND_SIMPLE_TYPE_ENFORCEMENT_POLICY
20 ACM_USE_SECURITY_POLICY ?= ACM_NULL_POLICY
22 include $(BASEDIR)/../Config.mk
24 # Set ARCH/SUBARCH appropriately.
25 override COMPILE_SUBARCH := $(XEN_COMPILE_ARCH)
26 override TARGET_SUBARCH := $(XEN_TARGET_ARCH)
27 override COMPILE_ARCH := $(patsubst x86%,x86,$(XEN_COMPILE_ARCH))
28 override TARGET_ARCH := $(patsubst x86%,x86,$(XEN_TARGET_ARCH))
30 TARGET := $(BASEDIR)/xen
31 HDRS := $(wildcard $(BASEDIR)/include/xen/*.h)
32 HDRS += $(wildcard $(BASEDIR)/include/public/*.h)
33 HDRS += $(wildcard $(BASEDIR)/include/asm-$(TARGET_ARCH)/*.h)
34 HDRS += $(wildcard $(BASEDIR)/include/asm-$(TARGET_ARCH)/$(TARGET_SUBARCH)/*.h)
35 # Do not depend on auto-generated header files.
36 HDRS := $(subst $(BASEDIR)/include/asm-$(TARGET_ARCH)/asm-offsets.h,,$(HDRS))
37 HDRS := $(subst $(BASEDIR)/include/xen/banner.h,,$(HDRS))
38 HDRS := $(subst $(BASEDIR)/include/xen/compile.h,,$(HDRS))
40 C_SRCS := $(wildcard *.c)
41 S_SRCS := $(wildcard *.S)
42 OBJS := $(patsubst %.S,%.o,$(S_SRCS))
43 OBJS += $(patsubst %.c,%.o,$(C_SRCS))
45 # Note that link order matters!
46 ALL_OBJS := $(BASEDIR)/common/common.o
47 ALL_OBJS += $(BASEDIR)/drivers/char/driver.o
48 ALL_OBJS += $(BASEDIR)/drivers/acpi/driver.o
49 ifneq ($(ACM_USE_SECURITY_POLICY),ACM_NULL_POLICY)
50 ALL_OBJS += $(BASEDIR)/acm/acm.o
51 endif
52 ALL_OBJS += $(BASEDIR)/arch/$(TARGET_ARCH)/arch.o
54 test-gcc-flag = $(shell $(CC) -v --help 2>&1 | grep -q " $(1) " && echo $(1))
56 include $(BASEDIR)/arch/$(TARGET_ARCH)/Rules.mk
58 ifneq ($(debug),y)
59 CFLAGS += -DNDEBUG
60 ifeq ($(verbose),y)
61 CFLAGS += -DVERBOSE
62 endif
63 else
64 CFLAGS += -g -DVERBOSE
65 endif
67 ifeq ($(domu_debug),y)
68 CFLAGS += -DDOMU_DEBUG
69 endif
71 ifeq ($(crash_debug),y)
72 CFLAGS += -g -DCRASH_DEBUG
73 endif
75 ifeq ($(perfc),y)
76 CFLAGS += -DPERF_COUNTERS
77 ifeq ($(perfc_arrays),y)
78 CFLAGS += -DPERF_ARRAYS
79 endif
80 endif
82 ifeq ($(trace),y)
83 CFLAGS += -DTRACE_BUFFER
84 endif
86 CFLAGS := $(strip $(CFLAGS))
88 %.o: %.c $(HDRS) Makefile
89 $(CC) $(CFLAGS) -c $< -o $@
91 %.o: %.S $(HDRS) Makefile
92 $(CC) $(CFLAGS) -D__ASSEMBLY__ -c $< -o $@