ia64/xen-unstable

view xen/arch/ia64/Makefile @ 5797:ca44d2dbb273

Intel's pre-bk->hg transition patches
Signed-off-by Eddie Dong <Eddie.dong@intel.com>
Signed-off-by Anthony Xu <Anthony.xu@intel.com>
Signed-off-by Kevin Tian <Kevin.tian@intel.com>
author djm@kirby.fc.hp.com
date Sat Jul 09 07:58:56 2005 -0700 (2005-07-09)
parents 51d5c1d35710
children a83ac0806d6b
line source
1 include $(BASEDIR)/Rules.mk
3 # libs-y += arch/ia64/lib/lib.a
5 OBJS = xensetup.o setup.o time.o irq.o ia64_ksyms.o process.o smp.o \
6 xenmisc.o pdb-stub.o acpi.o hypercall.o \
7 machvec.o dom0_ops.o domain.o hpsimserial.o pcdp.o \
8 idle0_task.o pal.o hpsim.o efi.o efi_stub.o ivt.o mm_contig.o \
9 xenmem.o sal.o cmdline.o mm_init.o tlb.o smpboot.o \
10 extable.o linuxextable.o xenirq.o xentime.o \
11 regionreg.o entry.o unaligned.o privop.o vcpu.o \
12 irq_ia64.o irq_lsapic.o vhpt.o xenasm.o hyperprivop.o dom_fw.o \
13 grant_table.o sn_console.o
15 ifeq ($(CONFIG_VTI),y)
16 OBJS += vmx_init.o vmx_virt.o vmx_vcpu.o vmx_process.o vmx_vsa.o vmx_ivt.o \
17 vmx_phy_mode.o vmx_utility.o vmx_interrupt.o vmx_entry.o vmmu.o \
18 vtlb.o mmio.o vlsapic.o vmx_hypercall.o mm.o vmx_support.o pal_emul.o
19 endif
20 # perfmon.o
21 # unwind.o needed for kernel unwinding (rare)
23 OBJS := $(subst $(TARGET_ARCH)/asm-offsets.o,,$(OBJS))
25 # remove following line if not privifying in memory
26 # OBJS += privify.o
28 default: $(OBJS) head.o ia64lib.o xen.lds.s
29 $(LD) -r -o arch.o $(OBJS) ia64lib.o
30 $(LD) $(LDFLAGS) -T $(BASEDIR)/arch/$(TARGET_ARCH)/xen.lds.s -N \
31 -Map map.out head.o $(ALL_OBJS) -o $(TARGET)-syms
32 $(OBJCOPY) -R .note -R .comment -S $(TARGET)-syms $(TARGET)
33 $(NM) -n $(TARGET)-syms | grep -v '\( [aUw] \)\|\(__crc_\)\|\( \$[adt]\)'\
34 > $(BASEDIR)/System.map
37 asm-offsets.s: asm-offsets.c $(BASEDIR)/include/asm-ia64/.offsets.h.stamp
38 $(CC) $(CFLAGS) -S -o $@ $<
40 $(BASEDIR)/include/asm-ia64/.offsets.h.stamp:
41 # Need such symbol link to make linux headers available
42 [ -e $(BASEDIR)/include/linux ] \
43 || ln -s $(BASEDIR)/include/xen $(BASEDIR)/include/linux
44 [ -e $(BASEDIR)/include/asm-ia64/xen ] \
45 || ln -s $(BASEDIR)/include/asm-ia64/linux $(BASEDIR)/include/asm-ia64/xen
46 # Solve circular reference on asm-offsets.h
47 [ -f $(BASEDIR)/include/asm-ia64/asm-offsets.h ] \
48 || echo "#define IA64_TASK_SIZE 0" > $(BASEDIR)/include/asm-ia64/asm-offsets.h
49 #Bad hack. Force asm-offsets.h out-of-date
50 sleep 1
51 touch $@
53 # I'm sure a Makefile wizard would know a better way to do this
54 xen.lds.s: xen.lds.S
55 $(CC) -E $(CPPFLAGS) -P -DXEN -D__ASSEMBLY__ \
56 -o xen.lds.s xen.lds.S
58 ia64lib.o:
59 $(MAKE) -C lib && cp lib/ia64lib.o .
61 clean:
62 rm -f *.o *~ core xen.lds.s $(BASEDIR)/include/asm-ia64/.offsets.h.stamp asm-offsets.s
63 rm -f lib/*.o
65 # setup.o contains bits of compile.h so it must be blown away
66 delete-unfresh-files:
67 echo any unfresh-files to delete for ia64\?
68 # rm -f setup.o
70 .PHONY: default clean delete-unfresh-files