From: "Philippe Mathieu-Daudé" <philmd@linaro.org>
To: Gregory Price <gourry.memverge@gmail.com>, qemu-devel@nongnu.org
Cc: jonathan.cameron@huawei.com, linux-cxl@vger.kernel.org,
Gregory Price <gregory.price@memverge.com>
Subject: Re: [PATCH] cxl/vendor: update niagara to only build on linux, add KConfig options
Date: Thu, 21 Sep 2023 09:38:37 +0200 [thread overview]
Message-ID: <3f9ebfe7-47f8-4aaf-d241-0d6576993bd4@linaro.org> (raw)
In-Reply-To: <20230920155020.550112-1-gregory.price@memverge.com>
Hi Gregory,
On 20/9/23 17:50, Gregory Price wrote:
> Niagara uses <sys/shm.h> which presently limits its compatibility to
> linux hosts. Change build to only build it on linux.
>
> Add Kconfig file for skhynix directory, and make niagara depend on
> CXL_MEM_DEVICE. Add an explicit flag for niagara.
>
> Signed-off-by: Gregory Price <gregory.price@memverge.com>
> ---
> hw/cxl/Kconfig | 2 ++
> hw/cxl/vendor/Kconfig | 1 +
> hw/cxl/vendor/skhynix/Kconfig | 4 ++++
> hw/cxl/vendor/skhynix/meson.build | 4 +++-
> 4 files changed, 10 insertions(+), 1 deletion(-)
> create mode 100644 hw/cxl/vendor/Kconfig
> create mode 100644 hw/cxl/vendor/skhynix/Kconfig
> diff --git a/hw/cxl/vendor/skhynix/Kconfig b/hw/cxl/vendor/skhynix/Kconfig
> new file mode 100644
> index 0000000000..382fa0cd6c
> --- /dev/null
> +++ b/hw/cxl/vendor/skhynix/Kconfig
> @@ -0,0 +1,4 @@
> +config CXL_SKHYNIX_NIAGARA
> + bool
> + depends on CXL_MEM_DEVICE
You want:
depends on CXL_MEM_DEVICE && LINUX
> + default y if CXL_VENDOR
> diff --git a/hw/cxl/vendor/skhynix/meson.build b/hw/cxl/vendor/skhynix/meson.build
> index 4e57db65f1..6f194aa517 100644
> --- a/hw/cxl/vendor/skhynix/meson.build
> +++ b/hw/cxl/vendor/skhynix/meson.build
> @@ -1 +1,3 @@
> -system_ss.add(when: 'CONFIG_CXL_VENDOR', if_true: files('skhynix_niagara.c',))
> +if targetos == 'linux'
(Then this check is not necessary).
> + system_ss.add(when: 'CONFIG_CXL_SKHYNIX_NIAGARA', if_true: files('skhynix_niagara.c',))
> +endif
prev parent reply other threads:[~2023-09-21 7:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-20 15:50 [PATCH] cxl/vendor: update niagara to only build on linux, add KConfig options Gregory Price
2023-09-21 7:38 ` Philippe Mathieu-Daudé [this message]
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=3f9ebfe7-47f8-4aaf-d241-0d6576993bd4@linaro.org \
--to=philmd@linaro.org \
--cc=gourry.memverge@gmail.com \
--cc=gregory.price@memverge.com \
--cc=jonathan.cameron@huawei.com \
--cc=linux-cxl@vger.kernel.org \
--cc=qemu-devel@nongnu.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 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).