From: Thomas Huth <thuth@redhat.com>
To: qemu-devel@nongnu.org
Cc: David Gibson <david@gibson.dropbear.id.au>,
qemu-ppc@nongnu.org, Paolo Bonzini <pbonzini@redhat.com>,
yang.zhong@intel.com
Subject: [Qemu-devel] [PATCH v2 5/5] ppc: Express dependencies of the embedded machines with kconfig
Date: Thu, 31 Jan 2019 14:53:30 +0100 [thread overview]
Message-ID: <1548942810-22942-6-git-send-email-thuth@redhat.com> (raw)
In-Reply-To: <1548942810-22942-1-git-send-email-thuth@redhat.com>
This makes it much easier if the users want to disable some of
the embedded machines for their builds.
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
---
default-configs/ppc-softmmu.mak | 18 ++++--------------
hw/nvram/Kconfig | 2 ++
hw/ppc/Kconfig | 12 ++++++++++++
3 files changed, 18 insertions(+), 14 deletions(-)
diff --git a/default-configs/ppc-softmmu.mak b/default-configs/ppc-softmmu.mak
index 5265d8a..5192aca 100644
--- a/default-configs/ppc-softmmu.mak
+++ b/default-configs/ppc-softmmu.mak
@@ -1,27 +1,17 @@
# Default configuration for ppc-softmmu
-CONFIG_PCI=y
CONFIG_PCI_DEVICES=y
-CONFIG_ISA_BUS=y
CONFIG_TEST_DEVICES=y
-# For embedded PPCs:
-CONFIG_PPC4XX=y
-CONFIG_M48T59=y
+# FIXME: CONFIG_SERIAL is currently still required to link all of the
+# ppc machines (due to the usage of serial_mm_init() in ppc405_uc.c).
CONFIG_SERIAL=y
-CONFIG_OPENPIC=y
-CONFIG_PPCE500_PCI=y
-CONFIG_PFLASH_CFI01=y
-CONFIG_PFLASH_CFI02=y
-CONFIG_XILINX=y
-CONFIG_XILINX_ETHLITE=y
+
+# For embedded PPCs:
CONFIG_E500=y
-CONFIG_PLATFORM_BUS=y
-CONFIG_ETSEC=y
CONFIG_PPC405=y
CONFIG_PPC440=y
CONFIG_VIRTEX=y
-CONFIG_PCI_EXPRESS=y
# For Sam460ex
CONFIG_SAM460EX=y
diff --git a/hw/nvram/Kconfig b/hw/nvram/Kconfig
index 1f5ec95..4f44f9b 100644
--- a/hw/nvram/Kconfig
+++ b/hw/nvram/Kconfig
@@ -3,6 +3,8 @@ config DS1225Y
config AT24C
bool
+ default y if E500
+ depends on I2C
config MAC_NVRAM
bool
diff --git a/hw/ppc/Kconfig b/hw/ppc/Kconfig
index 35e3704..4085107 100644
--- a/hw/ppc/Kconfig
+++ b/hw/ppc/Kconfig
@@ -21,9 +21,14 @@ config POWERNV
config PPC405
bool
+ select M48T59
+ select PFLASH_CFI02
+ select PPC4XX
config PPC440
bool
+ select PCI_EXPRESS
+ select PPC4XX
config PPC4XX
bool
@@ -72,9 +77,16 @@ config MAC_NEWWORLD
config E500
bool
+ select ETSEC
+ select OPENPIC
+ select PLATFORM_BUS
+ select PPCE500_PCI
config VIRTEX
bool
+ select PFLASH_CFI01
+ select XILINX
+ select XILINX_ETHLITE
config MAC_DBDMA
bool
--
1.8.3.1
next prev parent reply other threads:[~2019-01-31 13:54 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-31 13:53 [Qemu-devel] [PATCH v2 0/5] Kconfig dependencies for ppc machines Thomas Huth
2019-01-31 13:53 ` [Qemu-devel] [PATCH v2 1/5] ppc64: Express dependencies of 'pseries' and 'powernv' machines with kconfig Thomas Huth
2019-01-31 14:54 ` Paolo Bonzini
2019-01-31 13:53 ` [Qemu-devel] [PATCH v2 2/5] ppc: Express dependencies of the 'prep' and '40p' " Thomas Huth
2019-02-02 17:13 ` Hervé Poussineau
2019-01-31 13:53 ` [Qemu-devel] [PATCH v2 3/5] ppc: Express dependencies of the Mac " Thomas Huth
2019-01-31 13:53 ` [Qemu-devel] [PATCH v2 4/5] ppc: Express dependencies of the Sam460EX " Thomas Huth
2019-01-31 13:53 ` Thomas Huth [this message]
2019-01-31 15:02 ` [Qemu-devel] [PATCH v2 0/5] Kconfig dependencies for ppc machines Paolo Bonzini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1548942810-22942-6-git-send-email-thuth@redhat.com \
--to=thuth@redhat.com \
--cc=david@gibson.dropbear.id.au \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
--cc=yang.zhong@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).