root / Makefile.target @ 4115852b
History | View | Annotate | Download (13.6 kB)
1 | 562593aa | Anthony Liguori | # -*- Mode: makefile -*- |
---|---|---|---|
2 | 562593aa | Anthony Liguori | |
3 | b3a29fd5 | Isaku Yamahata | CONFIG_NO_PCI = $(if $(subst n,,$(CONFIG_PCI)),n,y) |
4 | 98c8573e | Paolo Bonzini | CONFIG_NO_KVM = $(if $(subst n,,$(CONFIG_KVM)),n,y) |
5 | 6dbd588a | Jan Kiszka | CONFIG_NO_XEN = $(if $(subst n,,$(CONFIG_XEN)),n,y) |
6 | f527c579 | Juan Quintela | |
7 | deed3ccf | Juan Quintela | include ../config-host.mak |
8 | 1f3d3c8f | Juan Quintela | include config-devices.mak |
9 | 25be210f | Juan Quintela | include config-target.mak |
10 | 17759187 | aliguori | include $(SRC_PATH)/rules.mak |
11 | 0e8c9214 | Andreas Färber | ifneq ($(HWDIR),) |
12 | 0e8c9214 | Andreas Färber | include $(HWDIR)/config.mak |
13 | 0e8c9214 | Andreas Färber | endif |
14 | 626df76a | bellard | |
15 | 0b0babc6 | bellard | TARGET_PATH=$(SRC_PATH)/target-$(TARGET_BASE_ARCH) |
16 | 076d2471 | Paolo Bonzini | $(call set-vpath, $(SRC_PATH):$(TARGET_PATH):$(SRC_PATH)/hw) |
17 | af2be207 | Jan Kiszka | ifdef CONFIG_LINUX |
18 | af2be207 | Jan Kiszka | QEMU_CFLAGS += -I../linux-headers |
19 | af2be207 | Jan Kiszka | endif |
20 | af2be207 | Jan Kiszka | QEMU_CFLAGS += -I.. -I$(TARGET_PATH) -DNEED_CPU_H |
21 | 40293e58 | bellard | |
22 | 0e8c9214 | Andreas Färber | include $(SRC_PATH)/Makefile.objs |
23 | 0e8c9214 | Andreas Färber | |
24 | 2f28d2ff | Anthony Liguori | QEMU_CFLAGS+=-I$(SRC_PATH)/include |
25 | 2f28d2ff | Anthony Liguori | |
26 | 40293e58 | bellard | ifdef CONFIG_USER_ONLY |
27 | 40293e58 | bellard | # user emulator name |
28 | 40293e58 | bellard | QEMU_PROG=qemu-$(TARGET_ARCH2) |
29 | 40293e58 | bellard | else |
30 | 1e43adfc | bellard | # system emulator name |
31 | 0fa5491e | Stefan Weil | ifneq (,$(findstring -mwindows,$(LIBS))) |
32 | 0fa5491e | Stefan Weil | # Terminate program name with a 'w' because the linker builds a windows executable. |
33 | 0fa5491e | Stefan Weil | QEMU_PROGW=qemu-system-$(TARGET_ARCH2)w$(EXESUF) |
34 | 0fa5491e | Stefan Weil | endif # windows executable |
35 | 40293e58 | bellard | QEMU_PROG=qemu-system-$(TARGET_ARCH2)$(EXESUF) |
36 | a541f297 | bellard | endif |
37 | 626df76a | bellard | |
38 | 40293e58 | bellard | PROGS=$(QEMU_PROG) |
39 | 0fa5491e | Stefan Weil | ifdef QEMU_PROGW |
40 | 0fa5491e | Stefan Weil | PROGS+=$(QEMU_PROGW) |
41 | 0fa5491e | Stefan Weil | endif |
42 | b8841706 | Peter Maydell | STPFILES= |
43 | 626df76a | bellard | |
44 | aff447c9 | Andreas Färber | ifndef CONFIG_HAIKU |
45 | 626df76a | bellard | LIBS+=-lm |
46 | aff447c9 | Andreas Färber | endif |
47 | 831b7825 | ths | |
48 | 91880d96 | Juan Quintela | config-target.h: config-target.h-timestamp |
49 | 91880d96 | Juan Quintela | config-target.h-timestamp: config-target.mak |
50 | 91880d96 | Juan Quintela | |
51 | 6d8a764e | Lluís | ifdef CONFIG_TRACE_SYSTEMTAP |
52 | c276b17d | Daniel P. Berrange | stap: $(QEMU_PROG).stp |
53 | c276b17d | Daniel P. Berrange | |
54 | c276b17d | Daniel P. Berrange | ifdef CONFIG_USER_ONLY |
55 | c276b17d | Daniel P. Berrange | TARGET_TYPE=user |
56 | c276b17d | Daniel P. Berrange | else |
57 | c276b17d | Daniel P. Berrange | TARGET_TYPE=system |
58 | c276b17d | Daniel P. Berrange | endif |
59 | c276b17d | Daniel P. Berrange | |
60 | 2174e238 | Alon Levy | $(QEMU_PROG).stp: $(SRC_PATH)/trace-events |
61 | c0424934 | Lluís Vilanova | $(call quiet-command,$(TRACETOOL) \ |
62 | 650ab98d | Lluís Vilanova | --format=stap \ |
63 | 650ab98d | Lluís Vilanova | --backend=$(TRACE_BACKEND) \ |
64 | 650ab98d | Lluís Vilanova | --binary=$(bindir)/$(QEMU_PROG) \ |
65 | 650ab98d | Lluís Vilanova | --target-arch=$(TARGET_ARCH) \ |
66 | 650ab98d | Lluís Vilanova | --target-type=$(TARGET_TYPE) \ |
67 | c0424934 | Lluís Vilanova | < $< > $@," GEN $(QEMU_PROG).stp") |
68 | c276b17d | Daniel P. Berrange | else |
69 | c276b17d | Daniel P. Berrange | stap: |
70 | c276b17d | Daniel P. Berrange | endif |
71 | c276b17d | Daniel P. Berrange | |
72 | c276b17d | Daniel P. Berrange | all: $(PROGS) stap |
73 | 91880d96 | Juan Quintela | |
74 | c2fb2637 | Paul Brook | # Dummy command so that make thinks it has done something |
75 | c2fb2637 | Paul Brook | @true |
76 | 626df76a | bellard | |
77 | 40293e58 | bellard | ######################################################### |
78 | 626df76a | bellard | # cpu emulator library |
79 | c2b023b6 | Blue Swirl | libobj-y = exec.o translate-all.o cpu-exec.o translate.o |
80 | 8f2e8c07 | Kirill Batuzov | libobj-y += tcg/tcg.o tcg/optimize.o |
81 | 9195b2c2 | Stefan Weil | libobj-$(CONFIG_TCG_INTERPRETER) += tci.o |
82 | cf67c6ba | Aurelien Jarno | libobj-y += fpu/softfloat.o |
83 | 0184e266 | Blue Swirl | ifneq ($(TARGET_BASE_ARCH), sparc) |
84 | c3082755 | Richard Henderson | ifneq ($(TARGET_BASE_ARCH), alpha) |
85 | 0184e266 | Blue Swirl | libobj-y += op_helper.o |
86 | 0184e266 | Blue Swirl | endif |
87 | c3082755 | Richard Henderson | endif |
88 | 0184e266 | Blue Swirl | libobj-y += helper.o |
89 | 894a84e6 | Andreas Färber | ifneq ($(TARGET_BASE_ARCH), ppc) |
90 | 30471bc9 | Andreas Färber | libobj-y += cpu.o |
91 | c6dc6f63 | Andre Przywara | endif |
92 | 1bccec25 | Blue Swirl | libobj-$(TARGET_SPARC64) += vis_helper.o |
93 | 471857dd | Juan Quintela | libobj-$(CONFIG_NEED_MMU) += mmu.o |
94 | e18ea868 | Juan Quintela | libobj-$(TARGET_ARM) += neon_helper.o iwmmxt_helper.o |
95 | ab3b491f | Blue Swirl | ifeq ($(TARGET_BASE_ARCH), sparc) |
96 | fafd8bce | Blue Swirl | libobj-y += fop_helper.o cc_helper.o win_helper.o mmu_helper.o ldst_helper.o |
97 | ab3b491f | Blue Swirl | endif |
98 | ab3b491f | Blue Swirl | libobj-$(TARGET_SPARC) += int32_helper.o |
99 | ab3b491f | Blue Swirl | libobj-$(TARGET_SPARC64) += int64_helper.o |
100 | c3082755 | Richard Henderson | libobj-$(TARGET_ALPHA) += int_helper.o fpu_helper.o sys_helper.o mem_helper.o |
101 | cf6c1b16 | j_mayer | |
102 | c9e0df73 | Juan Quintela | libobj-y += disas.o |
103 | 9195b2c2 | Stefan Weil | libobj-$(CONFIG_TCI_DIS) += tci-dis.o |
104 | 9195b2c2 | Stefan Weil | |
105 | 9195b2c2 | Stefan Weil | tci-dis.o: QEMU_CFLAGS += -I$(SRC_PATH)/tcg -I$(SRC_PATH)/tcg/tci |
106 | 626df76a | bellard | |
107 | 0184e266 | Blue Swirl | # HELPER_CFLAGS is used for all the legacy code compiled with static register |
108 | 40293e58 | bellard | # variables |
109 | 0184e266 | Blue Swirl | ifneq ($(TARGET_BASE_ARCH), sparc) |
110 | 0184e266 | Blue Swirl | op_helper.o: QEMU_CFLAGS += $(HELPER_CFLAGS) |
111 | 0184e266 | Blue Swirl | endif |
112 | 0184e266 | Blue Swirl | user-exec.o: QEMU_CFLAGS += $(HELPER_CFLAGS) |
113 | 40293e58 | bellard | |
114 | c81da56e | Juan Quintela | # Note: this is a workaround. The real fix is to avoid compiling |
115 | 42a623c7 | Blue Swirl | # cpu_signal_handler() in user-exec.c. |
116 | c81da56e | Juan Quintela | signal.o: QEMU_CFLAGS += $(HELPER_CFLAGS) |
117 | c81da56e | Juan Quintela | |
118 | 40293e58 | bellard | ######################################################### |
119 | 40293e58 | bellard | # Linux user emulator target |
120 | 40293e58 | bellard | |
121 | 40293e58 | bellard | ifdef CONFIG_LINUX_USER |
122 | 40293e58 | bellard | |
123 | 076d2471 | Paolo Bonzini | $(call set-vpath, $(SRC_PATH)/linux-user:$(SRC_PATH)/linux-user/$(TARGET_ABI_DIR)) |
124 | 076d2471 | Paolo Bonzini | |
125 | c3109ba1 | Mike Frysinger | QEMU_CFLAGS+=-I$(SRC_PATH)/linux-user/$(TARGET_ABI_DIR) -I$(SRC_PATH)/linux-user |
126 | 37022086 | Blue Swirl | obj-y = main.o syscall.o strace.o mmap.o signal.o thunk.o \ |
127 | 680c877a | Richard Henderson | elfload.o linuxload.o uaccess.o gdbstub.o cpu-uname.o \ |
128 | 41a74826 | Anthony Liguori | user-exec.o $(oslib-obj-y) |
129 | 5ba65319 | Blue Swirl | |
130 | 943e0a31 | Juan Quintela | obj-$(TARGET_HAS_BFLT) += flatload.o |
131 | 40293e58 | bellard | |
132 | e18ea868 | Juan Quintela | obj-$(TARGET_I386) += vm86.o |
133 | 1c872672 | Juan Quintela | |
134 | e27b27b3 | Blue Swirl | obj-i386-y += ioport-user.o |
135 | 5ba65319 | Blue Swirl | |
136 | ed69c30d | Juan Quintela | nwfpe-obj-y = fpa11.o fpa11_cpdo.o fpa11_cpdt.o fpa11_cprt.o fpopcode.o |
137 | 9c1dd99b | Juan Quintela | nwfpe-obj-y += single_cpdo.o double_cpdo.o extended_cpdo.o |
138 | 1c872672 | Juan Quintela | obj-arm-y += $(addprefix nwfpe/, $(nwfpe-obj-y)) |
139 | 1c872672 | Juan Quintela | obj-arm-y += arm-semi.o |
140 | 1c872672 | Juan Quintela | |
141 | 1c872672 | Juan Quintela | obj-m68k-y += m68k-sim.o m68k-semi.o |
142 | 40293e58 | bellard | |
143 | ce008c1f | Andreas Färber | obj-y += $(addprefix ../, $(universal-obj-y)) |
144 | 0e8c9214 | Andreas Färber | obj-y += $(addprefix ../libuser/, $(user-obj-y)) |
145 | 4d904533 | Blue Swirl | obj-y += $(addprefix ../libdis-user/, $(libdis-y)) |
146 | 0e8c9214 | Andreas Färber | obj-y += $(libobj-y) |
147 | add16157 | Blue Swirl | |
148 | 40293e58 | bellard | endif #CONFIG_LINUX_USER |
149 | 40293e58 | bellard | |
150 | 40293e58 | bellard | ######################################################### |
151 | 84778508 | blueswir1 | # BSD user emulator target |
152 | 84778508 | blueswir1 | |
153 | 84778508 | blueswir1 | ifdef CONFIG_BSD_USER |
154 | 84778508 | blueswir1 | |
155 | 076d2471 | Paolo Bonzini | $(call set-vpath, $(SRC_PATH)/bsd-user) |
156 | 076d2471 | Paolo Bonzini | |
157 | a558ee17 | Juan Quintela | QEMU_CFLAGS+=-I$(SRC_PATH)/bsd-user -I$(SRC_PATH)/bsd-user/$(TARGET_ARCH) |
158 | 84778508 | blueswir1 | |
159 | 37022086 | Blue Swirl | obj-y = main.o bsdload.o elfload.o mmap.o signal.o strace.o syscall.o \ |
160 | 42a623c7 | Blue Swirl | gdbstub.o uaccess.o user-exec.o |
161 | 5ba65319 | Blue Swirl | |
162 | e27b27b3 | Blue Swirl | obj-i386-y += ioport-user.o |
163 | 84778508 | blueswir1 | |
164 | ce008c1f | Andreas Färber | obj-y += $(addprefix ../, $(universal-obj-y)) |
165 | 0e8c9214 | Andreas Färber | obj-y += $(addprefix ../libuser/, $(user-obj-y)) |
166 | 4d904533 | Blue Swirl | obj-y += $(addprefix ../libdis-user/, $(libdis-y)) |
167 | 0e8c9214 | Andreas Färber | obj-y += $(libobj-y) |
168 | 84778508 | blueswir1 | |
169 | 84778508 | blueswir1 | endif #CONFIG_BSD_USER |
170 | 84778508 | blueswir1 | |
171 | 84778508 | blueswir1 | ######################################################### |
172 | 40293e58 | bellard | # System emulator target |
173 | 76dfdd24 | Juan Quintela | ifdef CONFIG_SOFTMMU |
174 | 40293e58 | bellard | |
175 | 6bf9fd43 | Avi Kivity | obj-y = arch_init.o cpus.o monitor.o machine.o gdbstub.o balloon.o ioport.o |
176 | 1fd31ad7 | aliguori | # virtio has to be here due to weird dependency between PCI and virtio-net. |
177 | 1fd31ad7 | aliguori | # need to fix this properly |
178 | b3a29fd5 | Isaku Yamahata | obj-$(CONFIG_NO_PCI) += pci-stub.o |
179 | 21673cde | Blue Swirl | obj-$(CONFIG_VIRTIO) += virtio.o virtio-blk.o virtio-balloon.o virtio-net.o virtio-serial-bus.o |
180 | 7725d146 | Paolo Bonzini | obj-$(CONFIG_VIRTIO) += virtio-scsi.o |
181 | d5970055 | Michael S. Tsirkin | obj-y += vhost_net.o |
182 | d5970055 | Michael S. Tsirkin | obj-$(CONFIG_VHOST_NET) += vhost.o |
183 | f4f61d27 | Aneesh Kumar K.V | obj-$(CONFIG_REALLY_VIRTFS) += 9pfs/virtio-9p-device.o |
184 | a8e492c0 | Juan Quintela | obj-$(CONFIG_KVM) += kvm.o kvm-all.o |
185 | 98c8573e | Paolo Bonzini | obj-$(CONFIG_NO_KVM) += kvm-stub.o |
186 | 3d402831 | Blue Swirl | obj-$(CONFIG_VGA) += vga.o |
187 | 0cac1b66 | Blue Swirl | obj-y += memory.o savevm.o cputlb.o |
188 | 80167a8a | Wen Congyang | obj-y += memory_mapping.o |
189 | fae001f5 | Wen Congyang | obj-$(CONFIG_HAVE_GET_MEMORY_MAPPING) += arch_memory_mapping.o |
190 | 9fecbed0 | Wen Congyang | obj-$(CONFIG_HAVE_CORE_DUMP) += arch_dump.o |
191 | 40293e58 | bellard | LIBS+=-lz |
192 | 4fb240a4 | bellard | |
193 | 61eb1f38 | Blue Swirl | obj-i386-$(CONFIG_KVM) += hyperv.o |
194 | 28f52cc0 | Vadim Rozenfeld | |
195 | a558ee17 | Juan Quintela | QEMU_CFLAGS += $(VNC_TLS_CFLAGS) |
196 | a558ee17 | Juan Quintela | QEMU_CFLAGS += $(VNC_SASL_CFLAGS) |
197 | 2f6f5c7a | Corentin Chary | QEMU_CFLAGS += $(VNC_JPEG_CFLAGS) |
198 | efe556ad | Corentin Chary | QEMU_CFLAGS += $(VNC_PNG_CFLAGS) |
199 | 2f9606b3 | aliguori | |
200 | 3285cf4f | Anthony PERARD | # xen support |
201 | 868bb33f | Jan Kiszka | obj-$(CONFIG_XEN) += xen-all.o xen_machine_pv.o xen_domainbuild.o xen-mapcache.o |
202 | 3285cf4f | Anthony PERARD | obj-$(CONFIG_NO_XEN) += xen-stub.o |
203 | 3285cf4f | Anthony PERARD | |
204 | 9468e9c4 | Wei Liu | obj-i386-$(CONFIG_XEN) += xen_platform.o xen_apic.o |
205 | 01195b73 | Steven Smith | |
206 | 6cbf4c8c | Cam Macdonell | # Inter-VM PCI shared memory |
207 | 1b01b4e7 | Alexander Graf | CONFIG_IVSHMEM = |
208 | 1b01b4e7 | Alexander Graf | ifeq ($(CONFIG_KVM), y) |
209 | 1b01b4e7 | Alexander Graf | ifeq ($(CONFIG_PCI), y) |
210 | 1b01b4e7 | Alexander Graf | CONFIG_IVSHMEM = y |
211 | 1b01b4e7 | Alexander Graf | endif |
212 | 1b01b4e7 | Alexander Graf | endif |
213 | 1b01b4e7 | Alexander Graf | obj-$(CONFIG_IVSHMEM) += ivshmem.o |
214 | 6cbf4c8c | Cam Macdonell | |
215 | 963d83c8 | Alexander Graf | # Generic hotplugging |
216 | 963d83c8 | Alexander Graf | obj-y += device-hotplug.o |
217 | 963d83c8 | Alexander Graf | |
218 | a541f297 | bellard | # Hardware support |
219 | cfce6d89 | Jan Kiszka | obj-i386-y += mc146818rtc.o pc.o |
220 | e5ad936b | Jan Kiszka | obj-i386-y += apic_common.o apic.o kvmvapic.o |
221 | e5ad936b | Jan Kiszka | obj-i386-y += sga.o ioapic_common.o ioapic.o piix_pci.o |
222 | 1c9c5fcd | Blue Swirl | obj-i386-y += vmport.o |
223 | 963d83c8 | Alexander Graf | obj-i386-y += pci-hotplug.o smbios.o wdt_ib700.o |
224 | d3ffc7a6 | Blue Swirl | obj-i386-y += debugcon.o multiboot.o |
225 | af2be207 | Jan Kiszka | obj-i386-y += pc_piix.o |
226 | cbc5b5f3 | Jordan Justen | obj-i386-y += pc_sysfw.o |
227 | 5d17c0d2 | Jan Kiszka | obj-i386-$(CONFIG_KVM) += kvm/clock.o kvm/apic.o kvm/i8259.o kvm/ioapic.o kvm/i8254.o |
228 | a19cbfb3 | Gerd Hoffmann | obj-i386-$(CONFIG_SPICE) += qxl.o qxl-logger.o qxl-render.o |
229 | 9637443f | Juan Quintela | |
230 | 3cbee15b | j_mayer | # shared objects |
231 | ddd1055b | Fabien Chouteau | obj-ppc-y = ppc.o ppc_booke.o |
232 | 3cbee15b | j_mayer | # PREP target |
233 | cfce6d89 | Jan Kiszka | obj-ppc-y += mc146818rtc.o |
234 | add85a76 | Blue Swirl | obj-ppc-y += ppc_prep.o |
235 | 3cbee15b | j_mayer | # OldWorld PowerMac |
236 | 2b5eb371 | Blue Swirl | obj-ppc-y += ppc_oldworld.o |
237 | 3cbee15b | j_mayer | # NewWorld PowerMac |
238 | 2b5eb371 | Blue Swirl | obj-ppc-y += ppc_newworld.o |
239 | 4040ab72 | David Gibson | # IBM pSeries (sPAPR) |
240 | 0a6b8dde | Alexander Graf | obj-ppc-$(CONFIG_PSERIES) += spapr.o spapr_hcall.o spapr_rtas.o spapr_vio.o |
241 | 0a6b8dde | Alexander Graf | obj-ppc-$(CONFIG_PSERIES) += xics.o spapr_vty.o spapr_llan.o spapr_vscsi.o |
242 | 3384f95c | David Gibson | obj-ppc-$(CONFIG_PSERIES) += spapr_pci.o device-hotplug.o pci-hotplug.o |
243 | 3cbee15b | j_mayer | # PowerPC 4xx boards |
244 | 5f9fc5ad | Blue Swirl | obj-ppc-y += ppc4xx_devs.o ppc4xx_pci.o ppc405_uc.o ppc405_boards.o |
245 | 3960b04d | Alexander Graf | obj-ppc-y += ppc440_bamboo.o |
246 | 74c62ba8 | aurel32 | # PowerPC E500 boards |
247 | 5c145dac | Alexander Graf | obj-ppc-y += ppce500_mpc8544ds.o mpc8544_guts.o ppce500_spin.o |
248 | 2c50e26e | Edgar E. Iglesias | # PowerPC 440 Xilinx ML507 reference board. |
249 | 2c50e26e | Edgar E. Iglesias | obj-ppc-y += virtex_ml507.o |
250 | 9637443f | Juan Quintela | obj-ppc-$(CONFIG_KVM) += kvm_ppc.o |
251 | 3f0855b1 | Juan Quintela | obj-ppc-$(CONFIG_FDT) += device_tree.o |
252 | d751dfb3 | Alexander Graf | # PowerPC OpenPIC |
253 | d751dfb3 | Alexander Graf | obj-ppc-y += openpic.o |
254 | 9637443f | Juan Quintela | |
255 | 2c50e26e | Edgar E. Iglesias | # Xilinx PPC peripherals |
256 | 2c50e26e | Edgar E. Iglesias | obj-ppc-y += xilinx_intc.o |
257 | 2c50e26e | Edgar E. Iglesias | obj-ppc-y += xilinx_timer.o |
258 | 2c50e26e | Edgar E. Iglesias | obj-ppc-y += xilinx_uartlite.o |
259 | 2c50e26e | Edgar E. Iglesias | obj-ppc-y += xilinx_ethlite.o |
260 | 2c50e26e | Edgar E. Iglesias | |
261 | d821732a | Michael Walle | # LM32 boards |
262 | d821732a | Michael Walle | obj-lm32-y += lm32_boards.o |
263 | 5052d227 | Michael Walle | obj-lm32-y += milkymist.o |
264 | d821732a | Michael Walle | |
265 | 81ea0e13 | Michael Walle | # LM32 peripherals |
266 | 4ef66fa7 | Michael Walle | obj-lm32-y += lm32_pic.o |
267 | 15d7dc4f | Michael Walle | obj-lm32-y += lm32_juart.o |
268 | ea7924dc | Michael Walle | obj-lm32-y += lm32_timer.o |
269 | 770ae571 | Michael Walle | obj-lm32-y += lm32_uart.o |
270 | f19410ca | Michael Walle | obj-lm32-y += lm32_sys.o |
271 | 25a8bb96 | Michael Walle | obj-lm32-y += milkymist-ac97.o |
272 | e4dc6d2c | Michael Walle | obj-lm32-y += milkymist-hpdmc.o |
273 | b4e37d98 | Michael Walle | obj-lm32-y += milkymist-memcard.o |
274 | 57aa265d | Michael Walle | obj-lm32-y += milkymist-minimac2.o |
275 | 5ee18b9c | Michael Walle | obj-lm32-y += milkymist-pfpu.o |
276 | 87a381ec | Michael Walle | obj-lm32-y += milkymist-softusb.o |
277 | 96832424 | Michael Walle | obj-lm32-y += milkymist-sysctl.o |
278 | 0670dadd | Michael Walle | obj-lm32-$(CONFIG_OPENGL) += milkymist-tmu2.o |
279 | 883de16b | Michael Walle | obj-lm32-y += milkymist-uart.o |
280 | d23948b1 | Michael Walle | obj-lm32-y += milkymist-vgafb.o |
281 | d23948b1 | Michael Walle | obj-lm32-y += framebuffer.o |
282 | 81ea0e13 | Michael Walle | |
283 | 9637443f | Juan Quintela | obj-mips-y = mips_r4k.o mips_jazz.o mips_malta.o mips_mipssim.o |
284 | 409dbce5 | Aurelien Jarno | obj-mips-y += mips_addr.o mips_timer.o mips_int.o |
285 | 956a3e6b | Blue Swirl | obj-mips-y += gt64xxx.o mc146818rtc.o |
286 | 051c190b | Huacai Chen | obj-mips-$(CONFIG_FULONG) += bonito.o vt82c686.o mips_fulong2e.o |
287 | 9637443f | Juan Quintela | |
288 | 9637443f | Juan Quintela | obj-microblaze-y = petalogix_s3adsp1800_mmu.o |
289 | 00914b7d | Michal Simek | obj-microblaze-y += petalogix_ml605_mmu.o |
290 | d94e7434 | Peter A. G. Crosthwaite | obj-microblaze-y += microblaze_boot.o |
291 | 9637443f | Juan Quintela | |
292 | 9637443f | Juan Quintela | obj-microblaze-y += microblaze_pic_cpu.o |
293 | 9637443f | Juan Quintela | obj-microblaze-y += xilinx_intc.o |
294 | 9637443f | Juan Quintela | obj-microblaze-y += xilinx_timer.o |
295 | 9637443f | Juan Quintela | obj-microblaze-y += xilinx_uartlite.o |
296 | 9637443f | Juan Quintela | obj-microblaze-y += xilinx_ethlite.o |
297 | 93f1e401 | Edgar E. Iglesias | obj-microblaze-y += xilinx_axidma.o |
298 | 93f1e401 | Edgar E. Iglesias | obj-microblaze-y += xilinx_axienet.o |
299 | 9637443f | Juan Quintela | |
300 | 3f0855b1 | Juan Quintela | obj-microblaze-$(CONFIG_FDT) += device_tree.o |
301 | 9637443f | Juan Quintela | |
302 | 10c144e2 | edgar_igl | # Boards |
303 | 77d4f95e | Edgar E. Iglesias | obj-cris-y = cris_pic_cpu.o |
304 | 77d4f95e | Edgar E. Iglesias | obj-cris-y += cris-boot.o |
305 | 77d4f95e | Edgar E. Iglesias | obj-cris-y += axis_dev88.o |
306 | 10c144e2 | edgar_igl | |
307 | 10c144e2 | edgar_igl | # IO blocks |
308 | 9637443f | Juan Quintela | obj-cris-y += etraxfs_dma.o |
309 | 9637443f | Juan Quintela | obj-cris-y += etraxfs_pic.o |
310 | 9637443f | Juan Quintela | obj-cris-y += etraxfs_eth.o |
311 | 9637443f | Juan Quintela | obj-cris-y += etraxfs_timer.o |
312 | 9637443f | Juan Quintela | obj-cris-y += etraxfs_ser.o |
313 | 9637443f | Juan Quintela | |
314 | 3475187d | bellard | ifeq ($(TARGET_ARCH), sparc64) |
315 | 956a3e6b | Blue Swirl | obj-sparc-y = sun4u.o apb_pci.o |
316 | 2d48377a | Blue Swirl | obj-sparc-y += mc146818rtc.o |
317 | 3475187d | bellard | else |
318 | 24056690 | Blue Swirl | obj-sparc-y = sun4m.o lance.o tcx.o sun4m_iommu.o slavio_intctl.o |
319 | 35da37e1 | Blue Swirl | obj-sparc-y += slavio_timer.o slavio_misc.o sparc32_dma.o |
320 | b04d9890 | Fabien Chouteau | obj-sparc-y += cs4231.o eccmemctl.o sbi.o sun4c_intctl.o leon3.o |
321 | b04d9890 | Fabien Chouteau | |
322 | b04d9890 | Fabien Chouteau | # GRLIB |
323 | b04d9890 | Fabien Chouteau | obj-sparc-y += grlib_gptimer.o grlib_irqmp.o grlib_apbuart.o |
324 | 9637443f | Juan Quintela | endif |
325 | 9637443f | Juan Quintela | |
326 | f165b53a | Paul Brook | obj-arm-y = integratorcp.o versatilepb.o arm_pic.o arm_timer.o |
327 | 9637443f | Juan Quintela | obj-arm-y += arm_boot.o pl011.o pl031.o pl050.o pl080.o pl110.o pl181.o pl190.o |
328 | 9637443f | Juan Quintela | obj-arm-y += versatile_pci.o |
329 | d1157ca4 | Oskar Andero | obj-arm-y += versatile_i2c.o |
330 | 35548b06 | Peter A. G. Crosthwaite | obj-arm-y += cadence_uart.o |
331 | f3a6cc07 | Peter A. G. Crosthwaite | obj-arm-y += cadence_ttc.o |
332 | e9f186e5 | Peter A. G. Crosthwaite | obj-arm-y += cadence_gem.o |
333 | e3260506 | Peter A. G. Crosthwaite | obj-arm-y += xilinx_zynq.o zynq_slcr.o |
334 | 496dbcd1 | Peter Maydell | obj-arm-y += arm_gic.o |
335 | f7c70325 | Paul Brook | obj-arm-y += realview_gic.o realview.o arm_sysctl.o arm11mpcore.o a9mpcore.o |
336 | 0caa7113 | Evgeny Voevodin | obj-arm-y += exynos4210_gic.o exynos4210_combiner.o exynos4210.o |
337 | 62db8bf3 | Evgeny Voevodin | obj-arm-y += exynos4_boards.o exynos4210_uart.o exynos4210_pwm.o |
338 | 30628cb1 | Mitsyanko Igor | obj-arm-y += exynos4210_pmu.o exynos4210_mct.o exynos4210_fimd.o |
339 | b2123a48 | Rob Herring | obj-arm-y += arm_l2x0.o |
340 | 5d782e08 | Peter Maydell | obj-arm-y += arm_mptimer.o a15mpcore.o |
341 | 9637443f | Juan Quintela | obj-arm-y += armv7m.o armv7m_nvic.o stellaris.o pl022.o stellaris_enet.o |
342 | 2488514c | Rob Herring | obj-arm-y += highbank.o |
343 | 9637443f | Juan Quintela | obj-arm-y += pl061.o |
344 | 4c0e167c | Rob Herring | obj-arm-y += xgmac.o |
345 | 9637443f | Juan Quintela | obj-arm-y += arm-semi.o |
346 | 9637443f | Juan Quintela | obj-arm-y += pxa2xx.o pxa2xx_pic.o pxa2xx_gpio.o pxa2xx_timer.o pxa2xx_dma.o |
347 | 9637443f | Juan Quintela | obj-arm-y += pxa2xx_lcd.o pxa2xx_mmci.o pxa2xx_pcmcia.o pxa2xx_keypad.o |
348 | 3d08ff69 | Blue Swirl | obj-arm-y += gumstix.o |
349 | f7736b91 | Blue Swirl | obj-arm-y += zaurus.o ide/microdrive.o spitz.o tosa.o tc6393xb.o |
350 | 02d74341 | cmchao | obj-arm-y += omap1.o omap_lcdc.o omap_dma.o omap_clk.o omap_mmc.o omap_i2c.o \ |
351 | 02d74341 | cmchao | omap_gpio.o omap_intc.o omap_uart.o |
352 | 2c1d9ecb | cmchao | obj-arm-y += omap2.o omap_dss.o soc_dma.o omap_gptimer.o omap_synctimer.o \ |
353 | 2c1d9ecb | cmchao | omap_gpmc.o omap_sdrc.o omap_spi.o omap_tap.o omap_l4.o |
354 | 9637443f | Juan Quintela | obj-arm-y += omap_sx1.o palm.o tsc210x.o |
355 | f1ae32a1 | Gerd Hoffmann | obj-arm-y += nseries.o blizzard.o onenand.o cbus.o tusb6010.o usb/hcd-musb.o |
356 | 9637443f | Juan Quintela | obj-arm-y += mst_fpga.o mainstone.o |
357 | 3bf11207 | Vasily Khoruzhick | obj-arm-y += z2.o |
358 | 5f9fc5ad | Blue Swirl | obj-arm-y += musicpal.o bitbang_i2c.o marvell_88w8618_audio.o |
359 | 9637443f | Juan Quintela | obj-arm-y += framebuffer.o |
360 | 2055283b | Peter Maydell | obj-arm-y += vexpress.o |
361 | 5bc95aa2 | Dmitry Eremin-Solenikov | obj-arm-y += strongarm.o |
362 | c64b21d5 | Dmitry Eremin-Solenikov | obj-arm-y += collie.o |
363 | d028d02d | Mathieu Sonet | obj-arm-y += pl041.o lm4549.o |
364 | 412beee6 | Grant Likely | obj-arm-$(CONFIG_FDT) += device_tree.o |
365 | 9637443f | Juan Quintela | |
366 | 9637443f | Juan Quintela | obj-sh4-y = shix.o r2d.o sh7750.o sh7750_regnames.o tc58128.o |
367 | 2d48377a | Blue Swirl | obj-sh4-y += sh_timer.o sh_serial.o sh_intc.o sh_pci.o sm501.o |
368 | f7736b91 | Blue Swirl | obj-sh4-y += ide/mmio.o |
369 | 9637443f | Juan Quintela | |
370 | 9637443f | Juan Quintela | obj-m68k-y = an5206.o mcf5206.o mcf_uart.o mcf_intc.o mcf5208.o mcf_fec.o |
371 | 9637443f | Juan Quintela | obj-m68k-y += m68k-semi.o dummy_m68k.o |
372 | 9637443f | Juan Quintela | |
373 | 8cb310e1 | Alexander Graf | obj-s390x-y = s390-virtio-bus.o s390-virtio.o |
374 | f3304eea | Alexander Graf | |
375 | cfce6d89 | Jan Kiszka | obj-alpha-y = mc146818rtc.o |
376 | 80bb2ff7 | Richard Henderson | obj-alpha-y += alpha_pci.o alpha_dp264.o alpha_typhoon.o |
377 | 6049f4f8 | Richard Henderson | |
378 | 2328826b | Max Filippov | obj-xtensa-y += xtensa_pic.o |
379 | 5e408573 | Max Filippov | obj-xtensa-y += xtensa_sim.o |
380 | 0200db65 | Max Filippov | obj-xtensa-y += xtensa_lx60.o |
381 | 1ddeaa5d | Max Filippov | obj-xtensa-y += xtensa-semi.o |
382 | 53add759 | Max Filippov | obj-xtensa-y += core-dc232b.o |
383 | 176ac95e | Max Filippov | obj-xtensa-y += core-dc233c.o |
384 | 935f7a2b | Max Filippov | obj-xtensa-y += core-fsf.o |
385 | 2328826b | Max Filippov | |
386 | ad96090a | Blue Swirl | main.o: QEMU_CFLAGS+=$(GPROF_CFLAGS) |
387 | 5824d651 | blueswir1 | |
388 | 4115852b | Paolo Bonzini | GENERATED_HEADERS += hmp-commands.h qmp-commands-old.h |
389 | 0e8c9214 | Andreas Färber | |
390 | ce008c1f | Andreas Färber | obj-y += $(addprefix ../, $(universal-obj-y)) |
391 | 0e8c9214 | Andreas Färber | obj-y += $(addprefix ../, $(common-obj-y)) |
392 | 4d904533 | Blue Swirl | obj-y += $(addprefix ../libdis/, $(libdis-y)) |
393 | 0e8c9214 | Andreas Färber | obj-y += $(libobj-y) |
394 | 0e8c9214 | Andreas Färber | obj-y += $(addprefix $(HWDIR)/, $(hw-obj-y)) |
395 | 937b1258 | Lluís Vilanova | obj-y += $(addprefix ../, $(trace-obj-y)) |
396 | 626df76a | bellard | |
397 | 76dfdd24 | Juan Quintela | endif # CONFIG_SOFTMMU |
398 | 00a67ba1 | bellard | |
399 | 783e9b48 | Wen Congyang | obj-y += dump.o |
400 | 783e9b48 | Wen Congyang | |
401 | 111a38b0 | Robert Relyea | ifndef CONFIG_LINUX_USER |
402 | 0fc6b582 | Brad | ifndef CONFIG_BSD_USER |
403 | 111a38b0 | Robert Relyea | # libcacard needs qemu-thread support, and besides is only needed by devices |
404 | 0fc6b582 | Brad | # so not requires with linux-user / bsd-user targets |
405 | 111a38b0 | Robert Relyea | obj-$(CONFIG_SMARTCARD_NSS) += $(addprefix ../libcacard/, $(libcacard-y)) |
406 | 0fc6b582 | Brad | endif # CONFIG_BSD_USER |
407 | 111a38b0 | Robert Relyea | endif # CONFIG_LINUX_USER |
408 | 111a38b0 | Robert Relyea | |
409 | 3d0f1517 | Juan Quintela | obj-$(CONFIG_GDBSTUB_XML) += gdbstub-xml.o |
410 | 3d0f1517 | Juan Quintela | |
411 | 0fa5491e | Stefan Weil | ifdef QEMU_PROGW |
412 | 0fa5491e | Stefan Weil | # The linker builds a windows executable. Make also a console executable. |
413 | 0fa5491e | Stefan Weil | $(QEMU_PROGW): $(obj-y) $(obj-$(TARGET_BASE_ARCH)-y) |
414 | 0fa5491e | Stefan Weil | $(call LINK,$^) |
415 | 0fa5491e | Stefan Weil | $(QEMU_PROG): $(QEMU_PROGW) |
416 | 0fa5491e | Stefan Weil | $(call quiet-command,$(OBJCOPY) --subsystem console $(QEMU_PROGW) $(QEMU_PROG)," GEN $(TARGET_DIR)$(QEMU_PROG)") |
417 | 0fa5491e | Stefan Weil | else |
418 | 0e8c9214 | Andreas Färber | $(QEMU_PROG): $(obj-y) $(obj-$(TARGET_BASE_ARCH)-y) |
419 | e03b41d4 | Lluís | $(call LINK,$^) |
420 | 0fa5491e | Stefan Weil | endif |
421 | 16394485 | Juan Quintela | |
422 | 4c3b5a48 | Blue Swirl | gdbstub-xml.c: $(TARGET_XML_FILES) $(SRC_PATH)/scripts/feature_to_c.sh |
423 | 4c3b5a48 | Blue Swirl | $(call quiet-command,rm -f $@ && $(SHELL) $(SRC_PATH)/scripts/feature_to_c.sh $@ $(TARGET_XML_FILES)," GEN $(TARGET_DIR)$@") |
424 | 56aebc89 | pbrook | |
425 | acd0a093 | Luiz Capitulino | hmp-commands.h: $(SRC_PATH)/hmp-commands.hx |
426 | 4c3b5a48 | Blue Swirl | $(call quiet-command,sh $(SRC_PATH)/scripts/hxtool -h < $< > $@," GEN $(TARGET_DIR)$@") |
427 | 2313086a | Blue Swirl | |
428 | e3193601 | Anthony Liguori | qmp-commands-old.h: $(SRC_PATH)/qmp-commands.hx |
429 | 4c3b5a48 | Blue Swirl | $(call quiet-command,sh $(SRC_PATH)/scripts/hxtool -h < $< > $@," GEN $(TARGET_DIR)$@") |
430 | 2313086a | Blue Swirl | |
431 | 626df76a | bellard | clean: |
432 | 2313086a | Blue Swirl | rm -f *.o *.a *~ $(PROGS) nwfpe/*.o fpu/*.o |
433 | 3b9a6ee5 | Jan Kiszka | rm -f *.d */*.d tcg/*.o ide/*.o 9pfs/*.o kvm/*.o |
434 | e3193601 | Anthony Liguori | rm -f hmp-commands.h qmp-commands-old.h gdbstub-xml.c |
435 | 6d8a764e | Lluís | ifdef CONFIG_TRACE_SYSTEMTAP |
436 | c276b17d | Daniel P. Berrange | rm -f *.stp |
437 | c276b17d | Daniel P. Berrange | endif |
438 | 1e43adfc | bellard | |
439 | 5fafdf24 | ths | install: all |
440 | 9b14bb04 | bellard | ifneq ($(PROGS),) |
441 | 52ba784d | Hollis Blanchard | $(INSTALL) -m 755 $(PROGS) "$(DESTDIR)$(bindir)" |
442 | 52ba784d | Hollis Blanchard | ifneq ($(STRIP),) |
443 | 52ba784d | Hollis Blanchard | $(STRIP) $(patsubst %,"$(DESTDIR)$(bindir)/%",$(PROGS)) |
444 | 52ba784d | Hollis Blanchard | endif |
445 | 9b14bb04 | bellard | endif |
446 | 6d8a764e | Lluís | ifdef CONFIG_TRACE_SYSTEMTAP |
447 | 6aae2a2e | Eduardo Habkost | $(INSTALL_DIR) "$(DESTDIR)$(qemu_datadir)/../systemtap/tapset" |
448 | 6aae2a2e | Eduardo Habkost | $(INSTALL_DATA) $(QEMU_PROG).stp "$(DESTDIR)$(qemu_datadir)/../systemtap/tapset" |
449 | c276b17d | Daniel P. Berrange | endif |
450 | 626df76a | bellard | |
451 | 4115852b | Paolo Bonzini | GENERATED_HEADERS += config-target.h |
452 | 4115852b | Paolo Bonzini | Makefile: $(GENERATED_HEADERS) |
453 | 4115852b | Paolo Bonzini | |
454 | 2f96c28d | j_mayer | # Include automatically generated dependency files |
455 | 2f96c28d | j_mayer | -include $(wildcard *.d */*.d) |