Skip to contentSkip to conversation

Make "platform-bus" enabled only on E500 by default

PATCH In review David Gibson 3 participants 3 messages Feb 18, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Make "platform-bus" enabled only on E500 by default

Despite the name, "platform-bus" is used only by PPC E500 targets. This patch alters the default config to include it in the build only when E500 is enabled.

---
 hw/core/Makefile.objs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/core/Makefile.objs +1 -1
index 9dce1bc..2c46edc 100644
@@ -14,4 +14,4 @@ common-obj-$(CONFIG_SOFTMMU) += machine.o
 common-obj-$(CONFIG_SOFTMMU) += null-machine.o
 common-obj-$(CONFIG_SOFTMMU) += loader.o
 common-obj-$(CONFIG_SOFTMMU) += qdev-properties-system.o
-common-obj-$(CONFIG_SOFTMMU) += platform-bus.o
+common-obj-$(CONFIG_E500) += platform-bus.o
Signature · 1 line
2.1.0
#1 lore raw
Quoted 10 lines

Am 18.02.2015 um 06:28 schrieb David Gibson <[email protected]>:

Despite the name, "platform-bus" is used only by PPC E500 targets. This patch alters the default config to include it in the build only when E500 is enabled.

It's not e500 specific though. I'm hoping to see it used on more machines that need dynamic sysbus device creation. The ARM "virt" machine is definitely next on the list.

Alex

#2 lore raw
In reply to David Gibson
Quoted 8 lines · David Gibson

Despite the name, "platform-bus" is used only by PPC E500 targets. This patch alters the default config to include it in the build only when E500 is enabled.

---
 hw/core/Makefile.objs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Can you instead give it its own symbol in default-configs/? I think ARM's -M virt wants to use it too.

Paolo