ia64/xen-unstable

view xen/arch/ia64/Rules.mk @ 16907:d6c12530c69d

Hypervisor build subsystem does not need COMPILE_ARCH/COMPILE_SUBARCH.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Sun Jan 27 12:49:42 2008 +0000 (2008-01-27)
parents 9ab95900afec
children f23e7e07bf1d
line source
1 ########################################
2 # ia64-specific definitions
4 ia64 := y
5 HAS_ACPI := y
6 HAS_VGA := y
7 xenoprof := y
8 no_warns ?= n
9 vti_debug ?= n
10 vmx_panic ?= n
11 xen_ia64_expose_p2m ?= y
12 xen_ia64_pervcpu_vhpt ?= y
13 xen_ia64_tlb_track ?= y
14 xen_ia64_tlb_track_cnt ?= n
15 xen_ia64_tlbflush_clock ?= y
17 # Used only by linux/Makefile.
18 AFLAGS_KERNEL += -mconstant-gp -nostdinc $(CPPFLAGS)
20 CFLAGS += -nostdinc -fno-builtin -fno-common
21 CFLAGS += -mconstant-gp
22 #CFLAGS += -O3 # -O3 over-inlines making debugging tough!
23 CFLAGS += -O2 # but no optimization causes compile errors!
24 CFLAGS += -fomit-frame-pointer -D__KERNEL__
25 CFLAGS += -iwithprefix include
26 CPPFLAGS+= -I$(BASEDIR)/include \
27 -I$(BASEDIR)/include/asm-ia64 \
28 -I$(BASEDIR)/include/asm-ia64/linux \
29 -I$(BASEDIR)/include/asm-ia64/linux-xen \
30 -I$(BASEDIR)/include/asm-ia64/linux-null \
31 -I$(BASEDIR)/arch/ia64/linux -I$(BASEDIR)/arch/ia64/linux-xen
32 CFLAGS += $(CPPFLAGS)
33 #CFLAGS += -Wno-pointer-arith -Wredundant-decls
34 CFLAGS += -DIA64 -DXEN -DLINUX_2_6
35 CFLAGS += -ffixed-r13 -mfixed-range=f2-f5,f12-f127,b2-b5
36 CFLAGS += -g
37 ifeq ($(vti_debug),y)
38 CFLAGS += -DVTI_DEBUG
39 endif
40 ifeq ($(vmx_panic),y)
41 CFLAGS += -DCONFIG_VMX_PANIC
42 endif
43 ifeq ($(xen_ia64_expose_p2m),y)
44 CFLAGS += -DCONFIG_XEN_IA64_EXPOSE_P2M
45 endif
46 ifeq ($(xen_ia64_pervcpu_vhpt),y)
47 CFLAGS += -DCONFIG_XEN_IA64_PERVCPU_VHPT
48 endif
49 ifeq ($(xen_ia64_tlb_track),y)
50 CFLAGS += -DCONFIG_XEN_IA64_TLB_TRACK
51 endif
52 ifeq ($(xen_ia64_tlb_track_cnt),y)
53 CFLAGS += -DCONFIG_TLB_TRACK_CNT
54 endif
55 ifeq ($(xen_ia64_tlbflush_clock),y)
56 CFLAGS += -DCONFIG_XEN_IA64_TLBFLUSH_CLOCK
57 endif
58 ifeq ($(no_warns),y)
59 CFLAGS += -Wa,--fatal-warnings -Werror -Wno-uninitialized
60 endif
62 LDFLAGS := -g
64 # Additionnal IA64 include dirs.
65 HDRS += $(wildcard $(BASEDIR)/include/asm-ia64/linux-null/asm/*.h)
66 HDRS += $(wildcard $(BASEDIR)/include/asm-ia64/linux-null/asm/sn/*.h)
67 HDRS += $(wildcard $(BASEDIR)/include/asm-ia64/linux-null/linux/*.h)
68 HDRS += $(wildcard $(BASEDIR)/include/asm-ia64/linux-xen/asm/*.h)
69 HDRS += $(wildcard $(BASEDIR)/include/asm-ia64/linux-xen/asm/sn/*.h)
70 HDRS += $(wildcard $(BASEDIR)/include/asm-ia64/linux-xen/linux/*.h)
71 HDRS += $(wildcard $(BASEDIR)/include/asm-ia64/linux/*.h)
72 HDRS += $(wildcard $(BASEDIR)/include/asm-ia64/linux/asm-generic/*.h)
73 HDRS += $(wildcard $(BASEDIR)/include/asm-ia64/linux/asm/*.h)
74 HDRS += $(wildcard $(BASEDIR)/include/asm-ia64/linux/byteorder/*.h)
75 HDRS += $(wildcard $(BASEDIR)/include/asm-ia64/hvm/*.h)
77 HDRS := $(filter-out %/include/asm-ia64/asm-xsi-offsets.h,$(HDRS))