direct-io.hg

view xen/arch/powerpc/Makefile @ 11366:883e3dc47926

[XEN][POWERPC] Xen shadow ops, mostly skeleton code
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
author Jimi Xenidis <jimix@watson.ibm.com>
date Sun Aug 20 13:28:45 2006 -0400 (2006-08-20)
parents 3f87db7cac89
children 980ff1125446
line source
1 ifneq ($(DOM0_IMAGE),)
2 builtin_dom0 := y
3 endif
5 subdir-$(HAS_PPC64) += powerpc64
6 subdir-y += papr
8 obj-y += audit.o
9 obj-y += bitops.o
10 obj-y += boot_of.o
11 obj-y += dart.o
12 obj-y += dart_u3.o
13 obj-y += dart_u4.o
14 obj-y += delay.o
15 obj-y += dom0_ops.o
16 obj-y += domain_build.o
17 obj-y += domain.o
18 obj-y += exceptions.o
19 obj-y += external.o
20 obj-y += float.o
21 obj-y += hcalls.o
22 obj-y += htab.o
23 obj-y += iommu.o
24 obj-y += irq.o
25 obj-y += mambo.o
26 obj-y += mm.o
27 obj-y += mpic.o
28 obj-y += mpic_init.o
29 obj-y += of-devtree.o
30 obj-y += of-devwalk.o
31 obj-y += ofd_fixup.o
32 obj-y += physdev.o
33 obj-y += rtas.o
34 obj-y += setup.o
35 obj-y += shadow.o
36 obj-y += smp.o
37 obj-y += time.o
38 obj-y += usercopy.o
40 obj-$(debug) += 0opt.o
41 obj-$(crash_debug) += gdbstub.o
42 obj-$(builtin_dom0) += dom0.o
44 obj-y += firmware_image.o
46 obj-y += elf32.o
48 # These are extra warnings like for the arch/ppc directory but may not
49 # allow the rest of the tree to build.
50 PPC_C_WARNINGS += -Wundef -Wmissing-prototypes -Wmissing-declarations
51 PPC_C_WARNINGS += -Wshadow
52 CFLAGS += $(PPC_C_WARNINGS)
54 LINK=0x400000
55 boot32_link_base = $(LINK)
56 xen_link_offset = 100
57 xen_link_base = $(patsubst %000,%$(xen_link_offset),$(LINK))
59 #
60 # The following flags are fed to gcc in order to link several
61 # objects into a single ELF segment and to not link in any additional
62 # objects that gcc would normally like to
63 #
64 OMAGIC = -N -nodefaultlibs -nostartfiles
66 firmware: of_handler/built_in.o $(TARGET_SUBARCH)/memcpy.o of-devtree.o
67 $(CC) $(CFLAGS) $(OMAGIC) -e __ofh_start -Wl,-Ttext,0x0 $^ -o $@
69 firmware_image: firmware
70 $(CROSS_COMPILE)objcopy --output-target=binary $< $@
72 firmware_image.o: firmware_image
73 $(CROSS_COMPILE)objcopy --input-target=binary \
74 --output-target=elf64-powerpc \
75 --binary-architecture=powerpc \
76 --redefine-sym _binary_$<_start=$(@:%.o=%)_start \
77 --redefine-sym _binary_$<_end=$(@:%.o=%)_end \
78 --redefine-sym _binary_$<_size=$(@:%.o=%)_size $< $@
80 #
81 # Hacks for included C files
82 #
83 irq.o: ../x86/irq.c
84 physdev.o: ../x86/physdev.c
86 HDRS += $(wildcard *.h)
88 # The first token in the arguments will be silently dropped.
89 IMAGENAME = xen
90 CMDLINE = ""
91 boot_of.o: CFLAGS += -DCMDLINE="\"$(IMAGENAME) $(CMDLINE)\""
93 start.o: boot/start.S
94 $(CC) $(CFLAGS) -D__ASSEMBLY__ -c $< -o $@
96 $(TARGET)-syms: start.o $(ALL_OBJS) xen.lds
97 $(CC) $(CFLAGS) $(OMAGIC) -Wl,-Ttext,$(xen_link_base),-T,xen.lds start.o $(ALL_OBJS) -o $@
99 $(TARGET).bin: $(TARGET)-syms
100 $(CROSS_COMPILE)objcopy --output-target=binary $< $@
102 $(TARGET).bin.o: $(TARGET).bin
103 $(CROSS_COMPILE)objcopy --input-target=binary \
104 --output-target=elf32-powerpc \
105 --binary-architecture=powerpc $< $@
107 boot32.o: boot/boot32.S
108 $(CC) -m32 -Wa,-a32,-mppc64bridge \
109 -D__ASSEMBLY__ -D__BRIDGE64__ $(CFLAGS) -c $< -o $@
111 $(TARGET): boot32.o $(TARGET).bin.o
112 $(CC) -m32 -N -Wl,-melf32ppclinux -static -nostdlib \
113 -Wl,-Ttext,$(boot32_link_base) -Wl,-Tdata,$(xen_link_base) \
114 $(CFLAGS) $^ -o $@
116 asm-offsets.s: $(TARGET_SUBARCH)/asm-offsets.c $(HDRS)
117 $(CC) $(CFLAGS) -S -o $@ $<
119 xen.lds: xen.lds.S $(HDRS)
120 $(CC) $(CFLAGS) -P -E $(AFLAGS) -o $@ $<
122 dom0.bin: $(DOM0_IMAGE)
123 cp $< $@
125 clean::
126 $(MAKE) -f $(BASEDIR)/Rules.mk -C of_handler clean
127 rm -f firmware firmware_image dom0.bin