build: move device tree to per-target Makefile.objs
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 29 May 2012 15:50:03 +0000 (17:50 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 7 Jun 2012 07:21:18 +0000 (09:21 +0200)
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Makefile.target
hw/arm/Makefile.objs
hw/microblaze/Makefile.objs
hw/ppc/Makefile.objs

index 5635043f4ac19687bc1c2f5480c07a1c61c96228..3dfdf925fdc2c92239b7053a3d4e09687dcc2171 100644 (file)
@@ -149,13 +149,6 @@ else
 obj-y += hw/$(TARGET_BASE_ARCH)/
 endif
 
-# Device tree
-ifeq ($(CONFIG_FDT), y)
-obj-$(TARGET_ARM) += device_tree.o
-obj-$(TARGET_MICROBLAZE) += device_tree.o
-obj-$(TARGET_PPC) += device_tree.o
-endif
-
 main.o: QEMU_CFLAGS+=$(GPROF_CFLAGS)
 
 GENERATED_HEADERS += hmp-commands.h qmp-commands-old.h
index 92b4f1eb7f889c2a947f0cc6cebc9b928aa5f659..a0ff6a62d6bdaf74ba0518057b541b55b919d5ca 100644 (file)
@@ -35,5 +35,6 @@ obj-y += vexpress.o
 obj-y += strongarm.o
 obj-y += collie.o
 obj-y += pl041.o lm4549.o
+obj-$(CONFIG_FDT) += ../device_tree.o
 
 obj-y := $(addprefix ../,$(obj-y))
index 41724425cb2217d842cf39aed0e95eaa86f8d563..020f7b6e9b642461f053b6777e249cc942e07afb 100644 (file)
@@ -9,5 +9,6 @@ obj-y += xilinx_uartlite.o
 obj-y += xilinx_ethlite.o
 obj-y += xilinx_axidma.o
 obj-y += xilinx_axienet.o
+obj-$(CONFIG_FDT) += ../device_tree.o
 
 obj-y := $(addprefix ../,$(obj-y))
index 5b09849bed61ab6e34bc4a990626b55da006a8e9..842e7b929935bebf6d7cc694c45b6af39c3ff996 100644 (file)
@@ -21,6 +21,7 @@ obj-y += virtex_ml507.o
 obj-$(CONFIG_KVM) += kvm_ppc.o
 # PowerPC OpenPIC
 obj-y += openpic.o
+obj-$(CONFIG_FDT) += ../device_tree.o
 
 # Xilinx PPC peripherals
 obj-y += xilinx_intc.o