ia64/xen-unstable

view xen/arch/powerpc/Makefile @ 14237:eceb9ccd84a8

[POWERPC][XEN] Introduce "platform" abstraction to describe the IO hole.
Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
author Hollis Blanchard <hollisb@us.ibm.com>
date Fri Mar 02 17:06:50 2007 -0600 (2007-03-02)
parents aea80dbf6d96
children bb02de55017b
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 += backtrace.o
10 obj-y += bitops.o
11 obj-y += boot_of.o
12 obj-y += cmdline.o
13 obj-y += dart.o
14 obj-y += dart_u3.o
15 obj-y += dart_u4.o
16 obj-y += domctl.o
17 obj-y += domain_build.o
18 obj-y += domain.o
19 obj-y += exceptions.o
20 obj-y += external.o
21 obj-y += float.o
22 obj-y += hcalls.o
23 obj-y += iommu.o
24 obj-y += irq.o
25 obj-y += systemsim.o
26 obj-y += memory.o
27 obj-y += mm.o
28 obj-y += mpic.o
29 obj-y += mpic_init.o
30 obj-y += numa.o
31 obj-y += of-devtree.o
32 obj-y += of-devwalk.o
33 obj-y += ofd_fixup.o
34 obj-y += ofd_fixup_memory.o
35 obj-y += physdev.o
36 obj-y += platform.o
37 obj-y += rtas.o
38 obj-y += setup.o
39 obj-y += shadow.o
40 obj-y += smp.o
41 obj-y += smpboot.o
42 obj-y += smp-tbsync.o
43 obj-y += sysctl.o
44 obj-y += time.o
45 obj-y += usercopy.o
46 obj-y += machine_kexec.o
47 obj-y += crash.o
49 obj-$(debug) += 0opt.o
50 obj-$(crash_debug) += gdbstub.o
51 obj-$(builtin_dom0) += dom0.o
53 obj-y += firmware_image.o
55 # These are extra warnings like for the arch/ppc directory but may not
56 # allow the rest of the tree to build.
57 PPC_C_WARNINGS += -Wundef -Wmissing-prototypes -Wmissing-declarations
58 PPC_C_WARNINGS += -Wshadow
59 CFLAGS += $(PPC_C_WARNINGS)
61 #
62 # The following flags are fed to gcc in order to link several
63 # objects into a single ELF segment and to not link in any additional
64 # objects that gcc would normally like to
65 #
66 OMAGIC = -nodefaultlibs -nostartfiles
68 firmware: of_handler/built_in.o $(TARGET_SUBARCH)/memcpy.o of-devtree.o
69 $(CC) $(CFLAGS) $(OMAGIC) -e __ofh_start -Wl,-Ttext,0x0 $^ -o $@
71 firmware_image.bin: firmware
72 $(CROSS_COMPILE)objcopy --output-target=binary $< $@
74 #
75 # Hacks for included C files
76 #
77 irq.o: ../x86/irq.c
78 physdev.o: ../x86/physdev.c
79 numa.o: ../x86/numa.c
81 HDRS += $(wildcard *.h)
83 ifneq ($(CMDLINE),)
84 # The first token in the arguments will be silently dropped.
85 FULL_CMDLINE := xen $(CMDLINE)
86 endif
88 ifeq ($(wildcard cmdline.dep),)
89 cmdline.dep:
90 echo $(FULL_CMDLINE) > cmdline.dep
91 else
92 ifneq ($(FULL_CMDLINE),$(shell cat cmdline.dep))
93 cmdline.dep::
94 echo $(FULL_CMDLINE) > cmdline.dep
95 else
96 cmdline.dep:
97 endif
98 endif
100 cmdline.o: cmdline.dep
101 cmdline.o: CFLAGS += -DCMDLINE="\"$(FULL_CMDLINE)\""
103 TARGET_OPTS = $(OMAGIC) -Wl,-T,xen.lds
104 TARGET_OPTS += start.o $(ALL_OBJS)
106 .xen-syms: start.o $(ALL_OBJS) xen.lds
107 $(MAKE) -f $(BASEDIR)/Rules.mk $(BASEDIR)/common/symbols-dummy.o
108 $(CC) $(CFLAGS) $(TARGET_OPTS) $(BASEDIR)/common/symbols-dummy.o -o $@
110 NM=$(CROSS_COMPILE)nm
111 new_nm := $(shell if $(NM) --help 2>&1 | grep -- '--synthetic' > /dev/null; then echo y; else echo n; fi)
113 ifeq ($(new_nm),y)
114 NM := $(NM) --synthetic
115 endif
117 xen-syms.S: .xen-syms
118 $(NM) -n $^ | $(BASEDIR)/tools/symbols > $@
120 xen-syms.o: xen-syms.S
121 $(CC) $(CFLAGS) -D__ASSEMBLY__ -c $< -o $@
123 $(TARGET)-syms: start.o $(ALL_OBJS) xen-syms.o xen.lds
124 $(CC) $(CFLAGS) $(TARGET_OPTS) xen-syms.o -o $@
126 # our firmware only loads 32-bit ELF files
127 OCPYFLAGS := --input-target=elf64-powerpc --output-target=elf32-powerpc
128 $(TARGET): $(TARGET)-syms
129 $(CROSS_COMPILE)objcopy $(OCPYFLAGS) $^ $@
131 asm-offsets.s: $(TARGET_SUBARCH)/asm-offsets.c $(HDRS)
132 $(CC) $(CFLAGS) -S -o $@ $<
134 xen.lds: xen.lds.S $(HDRS)
135 $(CC) -P -E $(AFLAGS) -o $@ $<
137 dom0.bin: $(DOM0_IMAGE)
138 cp $< $@
140 clean::
141 $(MAKE) -f $(BASEDIR)/Rules.mk -C of_handler clean
142 rm -f firmware firmware_image.bin dom0.bin .xen-syms xen-syms.S \
143 xen.lds asm-offsets.s cmdline.dep