All of lore.kernel.org
 help / color / mirror / Atom feed
From: Julien Grall <julien.grall@arm.com>
To: Andrii Anisov <andrii_anisov@epam.com>,
	Stefano Stabellini <sstabellini@kernel.org>
Cc: artem_mygaiev@epam.com, andrew.cooper3@citrix.com,
	George.Dunlap@citrix.com, xen-devel@lists.xen.org,
	dfaggioli@suse.com, volodymyr_babchuk@epam.com
Subject: Re: [PATCH v7 08/12] arm: add ALL, QEMU, Rcar3 and MPSoC configs
Date: Fri, 27 Jul 2018 12:27:50 +0100	[thread overview]
Message-ID: <077e2f97-1b5c-306d-06b7-cbd7187ac372@arm.com> (raw)
In-Reply-To: <71aaad81-9bbf-39a3-838a-cc4906887a28@epam.com>

Hi,

On 27/07/18 12:21, Andrii Anisov wrote:
> I would suggest something like:
> 
> diff --git a/xen/arch/arm/Kconfig b/xen/arch/arm/Kconfig
> index 06ba4a4..794f06e 100644
> --- a/xen/arch/arm/Kconfig
> +++ b/xen/arch/arm/Kconfig
> @@ -218,6 +218,8 @@ config ARM64_HARDEN_BRANCH_PREDICTOR
>   config ARM32_HARDEN_BRANCH_PREDICTOR
>       def_bool y if ARM_32 && HARDEN_BRANCH_PREDICTOR
> 
> +source "arch/arm/platforms/Kconfig"
> +

There are no need for duplication. You can instead do something like:

config ALL_64
     default (ALL && ARM_64)

config ALL_32
     default (ALL && ARM_32)

config MPSOC_PLATFORM
     bool
     default (ALL_64 || MPSOC)

Cheers,

>   source "common/Kconfig"
> 
>   source "drivers/Kconfig"
> diff --git a/xen/arch/arm/platforms/Kconfig 
> b/xen/arch/arm/platforms/Kconfig
> new file mode 100644
> index 0000000..badf17b
> --- /dev/null
> +++ b/xen/arch/arm/platforms/Kconfig
> @@ -0,0 +1,72 @@
> +choice
> +    prompt "Platform Support"
> +    depends on ARM_32
> +    default ALL_32
> +    ---help---
> +    Choose which hardware platform to enable in Xen.
> +
> +    If unsure, choose ALL.
> +
> +config ALL_32
> +    bool "All Platforms"
> +    ---help---
> +    Enable support for all available hardware platforms. It doesn't
> +    automatically select any of the related drivers.
> +
> +config NONE_32
> +    bool "No Platform support"
> +    ---help---
> +    Remove all platform code. > +
> +endchoice
> +
> +choice
> +    prompt "Platform Support"
> +    depends on ARM_64
> +    default ALL_64
> +    ---help---
> +    Choose which hardware platform to enable in Xen.
> +
> +    If unsure, choose ALL.
> +
> +config ALL_64
> +    bool "All Platforms"
> +    select MPSOC_PLATFORM
> +    ---help---
> +    Enable support for all available hardware platforms. It doesn't
> +    automatically select any of the related drivers.
> +
> +config QEMU
> +    bool "QEMU aarch virt machine support"
> +    depends on ARM_64
> +    select GICV3
> +    select HAS_PL011
> +    ---help---
> +    Enable all the required drivers for QEMU aarch64 virt emulated
> +    machine.
> +
> +config RCAR3
> +    bool "Renesas RCar3 support"
> +    depends on ARM_64
> +    select HAS_SCIF
> +    ---help---
> +    Enable all the required drivers for Renesas RCar3
> +
> +config MPSOC
> +    bool "Xilinx Ultrascale+ MPSoC support"
> +    depends on ARM_64
> +    select MPSOC_PLATFORM
> +    select HAS_CADENCE_UART
> +    select ARM_SMMU
> +    ---help---
> +    Enable all the required drivers for Xilinx Ultrascale+ MPSoC
> +
> +config NONE_64
> +    bool "No Platform support"
> +    ---help---
> +    Remove all platform code.
> +
> +endchoice
> +
> +config MPSOC_PLATFORM
> +    bool
> diff --git a/xen/arch/arm/platforms/Makefile 
> b/xen/arch/arm/platforms/Makefile
> index 80e555c..c8e763e 100644
> --- a/xen/arch/arm/platforms/Makefile
> +++ b/xen/arch/arm/platforms/Makefile
> @@ -1,11 +1,14 @@
> -obj-y += vexpress.o
> -obj-$(CONFIG_ARM_32) += brcm.o
> -obj-$(CONFIG_ARM_32) += exynos5.o
> -obj-$(CONFIG_ARM_32) += midway.o
> -obj-$(CONFIG_ARM_32) += omap5.o
> -obj-$(CONFIG_ARM_32) += rcar2.o
> -obj-$(CONFIG_ARM_64) += seattle.o
> -obj-y += sunxi.o
> -obj-$(CONFIG_ARM_64) += thunderx.o
> -obj-$(CONFIG_ARM_64) += xgene-storm.o
> -obj-$(CONFIG_ARM_64) += xilinx-zynqmp.o
> +obj-$(CONFIG_ALL_32) += vexpress.o
> +obj-$(CONFIG_ALL_32) += sunxi.o
> +obj-$(CONFIG_ALL_32) += brcm.o
> +obj-$(CONFIG_ALL_32) += exynos5.o
> +obj-$(CONFIG_ALL_32) += midway.o
> +obj-$(CONFIG_ALL_32) += omap5.o
> +obj-$(CONFIG_ALL_32) += rcar2.o
> +
> +obj-$(CONFIG_ALL_64) += vexpress.o
> +obj-$(CONFIG_ALL_64) += sunxi.o
> +obj-$(CONFIG_ALL_64) += seattle.o
> +obj-$(CONFIG_ALL_64) += thunderx.o
> +obj-$(CONFIG_ALL_64) += xgene-storm.o
> +obj-$(CONFIG_MPSOC_PLATFORM)  += xilinx-zynqmp.o
> 
> 

-- 
Julien Grall

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

  reply	other threads:[~2018-07-27 11:27 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-06 23:12 [PATCH v7 00/12] arm: more kconfig configurability and small default configs Stefano Stabellini
2018-07-06 23:13 ` [PATCH v7 01/12] arm: remove the ARM HDLCD driver Stefano Stabellini
2018-07-06 23:13 ` [PATCH v7 02/12] arm: make it possible to disable HAS_GICV3 Stefano Stabellini
2018-07-06 23:13 ` [PATCH v7 03/12] arm: rename HAS_GICV3 to GICV3 Stefano Stabellini
2018-07-06 23:13 ` [PATCH v7 04/12] Make MEM_ACCESS configurable Stefano Stabellini
2018-07-06 23:13 ` [PATCH v7 05/12] make it possible to enable/disable UART drivers Stefano Stabellini
2018-07-06 23:13 ` [PATCH v7 06/12] arm: make it possible to disable the SMMU driver Stefano Stabellini
2018-07-06 23:13 ` [PATCH v7 07/12] arm: add a tiny kconfig configuration Stefano Stabellini
2018-07-23 11:17   ` Julien Grall
2018-07-06 23:13 ` [PATCH v7 08/12] arm: add ALL, QEMU, Rcar3 and MPSoC configs Stefano Stabellini
2018-07-23 11:24   ` Julien Grall
2018-07-24 22:08     ` Stefano Stabellini
2018-07-24 13:27   ` Andrii Anisov
2018-07-26 22:46     ` Stefano Stabellini
2018-07-27 10:30       ` Andrii Anisov
2018-07-27 11:20         ` Julien Grall
2018-07-27 11:21         ` Andrii Anisov
2018-07-27 11:27           ` Julien Grall [this message]
2018-07-27 11:34             ` Andrii Anisov
2018-07-27 11:39               ` Julien Grall
2018-07-27 17:11         ` Stefano Stabellini
2018-07-27 18:23           ` Andrii Anisov
2018-07-27 21:35             ` Stefano Stabellini
2018-07-27 22:09               ` Julien Grall
2018-07-27 23:30                 ` Stefano Stabellini
2018-07-30 10:34                   ` Julien Grall
2018-07-30 17:39                     ` Stefano Stabellini
2018-07-30 16:11               ` Andrii Anisov
2018-07-06 23:14 ` [PATCH v7 09/12] xen: add per-platform defaults for NR_CPUS Stefano Stabellini
2018-07-23 11:26   ` Julien Grall
2018-07-06 23:14 ` [PATCH v7 10/12] xen: add cloc target Stefano Stabellini
2018-07-06 23:14 ` [PATCH v7 11/12] xen: specify support for EXPERT and DEBUG Kconfig options Stefano Stabellini
2018-07-16 12:50   ` Jan Beulich
2018-07-06 23:14 ` [PATCH v7 12/12] xen: clarify the security-support status of Kconfig options on ARM Stefano Stabellini
2018-07-23 11:37   ` Julien Grall
2018-07-24 22:31     ` Stefano Stabellini
2018-07-25  8:46       ` Julien Grall
2018-07-25  8:59         ` Andrew Cooper
2018-07-25  9:50           ` Julien Grall
2018-07-25 11:09             ` George Dunlap
2018-07-26  0:40               ` Stefano Stabellini
2018-07-25  9:11         ` Jan Beulich

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=077e2f97-1b5c-306d-06b7-cbd7187ac372@arm.com \
    --to=julien.grall@arm.com \
    --cc=George.Dunlap@citrix.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=andrii_anisov@epam.com \
    --cc=artem_mygaiev@epam.com \
    --cc=dfaggioli@suse.com \
    --cc=sstabellini@kernel.org \
    --cc=volodymyr_babchuk@epam.com \
    --cc=xen-devel@lists.xen.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.