Skip to contentSkip to conversation

arm: fix compilation with CONFIG_FDT

PATCH Applied Paolo Bonzini 3 participants 4 messages Mar 11, 2013 – Mar 12, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm: fix compilation with CONFIG_FDT

A conflict was resolved the wrong way when merging commit 320ba5f (build:
always link device_tree.o into emulators if libfdt available, 2013-02-05). This causes a build failure for the arm-softmmu target due to multiply defined symbol.

---
 hw/arm/Makefile.objs | 1 -
 1 file changed, 1 deletion(-)
hw/arm/Makefile.objs +0 -1
index 2d9c69d..f5f7d0e 100644
@@ -23,7 +23,6 @@ obj-y += bitbang_i2c.o marvell_88w8618_audio.o
 obj-y += framebuffer.o
 obj-y += strongarm.o
 obj-y += imx_serial.o imx_ccm.o imx_timer.o imx_avic.o
-obj-$(CONFIG_FDT) += ../device_tree.o
 obj-$(CONFIG_KVM) += kvm/arm_gic.o
 
 obj-y := $(addprefix ../,$(obj-y))
Signature · 1 line
1.8.1.4
Tested-by on v1 1/1
#1 lore raw
Quoted 6 lines · Paolo Bonzini

A conflict was resolved the wrong way when merging commit 320ba5f (build:
always link device_tree.o into emulators if libfdt available, 2013-02-05). This causes a build failure for the arm-softmmu target due to multiply defined symbol.

Fixes the --enable-fdt build and ARM targets using device tree work OK.

thanks
-- PMM

#2 lore raw
In reply to Paolo Bonzini
Quoted 6 lines · Paolo Bonzini

A conflict was resolved the wrong way when merging commit 320ba5f (build:
always link device_tree.o into emulators if libfdt available, 2013-02-05). This causes a build failure for the arm-softmmu target due to multiply defined symbol.

Applied, thanks. I've added libfdt to my build server to prevent this in the future.

Regards,

Anthony Liguori

Quoted 18 lines
---
 hw/arm/Makefile.objs | 1 -
 1 file changed, 1 deletion(-)
hw/arm/Makefile.objs +0 -1
index 2d9c69d..f5f7d0e 100644
@@ -23,7 +23,6 @@ obj-y += bitbang_i2c.o marvell_88w8618_audio.o
 obj-y += framebuffer.o
 obj-y += strongarm.o
 obj-y += imx_serial.o imx_ccm.o imx_timer.o imx_avic.o
-obj-$(CONFIG_FDT) += ../device_tree.o
 obj-$(CONFIG_KVM) += kvm/arm_gic.o
 
 obj-y := $(addprefix ../,$(obj-y))
Signature · 1 line
1.8.1.4