source: trunk/packages/xen-common/xen-common/xen/arch/ia64/Rules.mk @ 34

Last change on this file since 34 was 34, checked in by hartmans, 17 years ago

Add xen and xen-common

File size: 2.4 KB
Line 
1########################################
2# ia64-specific definitions
3
4HAS_ACPI := y
5HAS_VGA  := y
6xenoprof := y
7no_warns ?= n
8xen_ia64_expose_p2m     ?= y
9xen_ia64_pervcpu_vhpt   ?= y
10xen_ia64_tlb_track      ?= y
11xen_ia64_tlb_track_cnt  ?= n
12xen_ia64_tlbflush_clock ?= y
13
14ifneq ($(COMPILE_ARCH),$(TARGET_ARCH))
15CROSS_COMPILE ?= /usr/local/sp_env/v2.2.5/i686/bin/ia64-unknown-linux-
16endif
17
18# Used only by linux/Makefile.
19AFLAGS_KERNEL  += -mconstant-gp -nostdinc $(CPPFLAGS)
20
21CFLAGS  += -nostdinc -fno-builtin -fno-common -fno-strict-aliasing
22CFLAGS  += -mconstant-gp
23#CFLAGS  += -O3         # -O3 over-inlines making debugging tough!
24CFLAGS  += -O2          # but no optimization causes compile errors!
25CFLAGS  += -fomit-frame-pointer -D__KERNEL__
26CFLAGS  += -iwithprefix include
27CPPFLAGS+= -I$(BASEDIR)/include                                         \
28           -I$(BASEDIR)/include/asm-ia64                                \
29           -I$(BASEDIR)/include/asm-ia64/linux                          \
30           -I$(BASEDIR)/include/asm-ia64/linux-xen                      \
31           -I$(BASEDIR)/include/asm-ia64/linux-null                     \
32           -I$(BASEDIR)/arch/ia64/linux -I$(BASEDIR)/arch/ia64/linux-xen
33CFLAGS  += $(CPPFLAGS)
34#CFLAGS  += -Wno-pointer-arith -Wredundant-decls
35CFLAGS  += -DIA64 -DXEN -DLINUX_2_6
36CFLAGS  += -ffixed-r13 -mfixed-range=f2-f5,f12-f127,b2-b5
37CFLAGS  += -g
38#CFLAGS  += -DVTI_DEBUG
39ifeq ($(xen_ia64_expose_p2m),y)
40CFLAGS  += -DCONFIG_XEN_IA64_EXPOSE_P2M
41endif
42ifeq ($(xen_ia64_pervcpu_vhpt),y)
43CFLAGS  += -DCONFIG_XEN_IA64_PERVCPU_VHPT
44endif
45ifeq ($(xen_ia64_tlb_track),y)
46CFLAGS  += -DCONFIG_XEN_IA64_TLB_TRACK
47endif
48ifeq ($(xen_ia64_tlb_track_cnt),y)
49CFLAGS  += -DCONFIG_TLB_TRACK_CNT
50endif
51ifeq ($(xen_ia64_tlbflush_clock),y)
52CFLAGS += -DCONFIG_XEN_IA64_TLBFLUSH_CLOCK
53endif
54ifeq ($(no_warns),y)
55CFLAGS  += -Wa,--fatal-warnings -Werror -Wno-uninitialized
56endif
57
58LDFLAGS := -g
59
60# Additionnal IA64 include dirs.
61HDRS += $(wildcard $(BASEDIR)/include/asm-ia64/linux-null/asm/*.h)
62HDRS += $(wildcard $(BASEDIR)/include/asm-ia64/linux-null/asm/sn/*.h)
63HDRS += $(wildcard $(BASEDIR)/include/asm-ia64/linux-null/linux/*.h)
64HDRS += $(wildcard $(BASEDIR)/include/asm-ia64/linux-xen/asm/*.h)
65HDRS += $(wildcard $(BASEDIR)/include/asm-ia64/linux-xen/asm/sn/*.h)
66HDRS += $(wildcard $(BASEDIR)/include/asm-ia64/linux-xen/linux/*.h)
67HDRS += $(wildcard $(BASEDIR)/include/asm-ia64/linux/*.h)
68HDRS += $(wildcard $(BASEDIR)/include/asm-ia64/linux/asm-generic/*.h)
69HDRS += $(wildcard $(BASEDIR)/include/asm-ia64/linux/asm/*.h)
70HDRS += $(wildcard $(BASEDIR)/include/asm-ia64/linux/byteorder/*.h)
71HDRS += $(wildcard $(BASEDIR)/include/asm-ia64/hvm/*.h)
Note: See TracBrowser for help on using the repository browser.