Commit 1c8726725896c4457c03b2858e0525008bb42032

Authored by Juan Quintela
Committed by Anthony Liguori
1 parent c44098ca

TARGET_ARCH == TARGET_BASE_ARCH in m68k and arm

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Showing 1 changed file with 8 additions and 9 deletions
Makefile.target
... ... @@ -288,23 +288,22 @@ obj-$(TARGET_HAS_ELFLOAD32) += elfload32.o
288 288 ifeq ($(TARGET_ARCH), i386)
289 289 obj-y += vm86.o
290 290 endif
291   -ifeq ($(TARGET_ARCH), arm)
  291 +
292 292 nwfpe-obj-y := fpa11.o fpa11_cpdo.o fpa11_cpdt.o fpa11_cprt.o fpopcode.o
293 293 nwfpe-obj-y += single_cpdo.o double_cpdo.o extended_cpdo.o
294   -obj-y += $(addprefix nwfpe/, $(nwfpe-obj-y))
295   -obj-y += arm-semi.o
296   -endif
297   -ifeq ($(TARGET_ARCH), m68k)
298   -obj-y += m68k-sim.o m68k-semi.o
299   -endif
  294 +obj-arm-y += $(addprefix nwfpe/, $(nwfpe-obj-y))
  295 +obj-arm-y += arm-semi.o
  296 +
  297 +obj-m68k-y += m68k-sim.o m68k-semi.o
300 298  
301 299 # Note: this is a workaround. The real fix is to avoid compiling
302 300 # cpu_signal_handler() in cpu-exec.c.
303 301 signal.o: CFLAGS += $(HELPER_CFLAGS)
304 302  
305 303 $(QEMU_PROG): ARLIBS=../libqemu_user.a libqemu.a
306   -$(QEMU_PROG): $(obj-y) ../libqemu_user.a libqemu.a
307   - $(call LINK,$(obj-y))
  304 +$(QEMU_PROG): $(obj-y) $(obj-$(TARGET_BASE_ARCH)-y) ../libqemu_user.a libqemu.a
  305 + $(call LINK,$(obj-y) $(obj-$(TARGET_BASE_ARCH)-y))
  306 +
308 307 ifeq ($(ARCH),alpha)
309 308 # Mark as 32 bit binary, i. e. it will be mapped into the low 31 bit of
310 309 # the address space (31 bit so sign extending doesn't matter)
... ...