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