From: Bruce Ashfield <bruce.ashfield@gmail.com>
To: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com>
Cc: meta-virtualization@lists.yoctoproject.org,
christopher.w.clark@gmail.com, mark.hatle@kernel.crashing.org
Subject: Re: [meta-virtualization][master][PATCH 1/2] xen-boot-cmd: Add xen variable as addendum
Date: Sun, 27 Aug 2023 13:23:12 +0000 [thread overview]
Message-ID: <ZOtOQIeCfldaixvL@gmail.com> (raw)
In-Reply-To: <20230825181811.3306054-2-sandeep.gundlupet-raju@amd.com>
In message: [meta-virtualization][master][PATCH 1/2] xen-boot-cmd: Add xen variable as addendum
on 25/08/2023 Sandeep Gundlupet Raju wrote:
> Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com>
> ---
> .../xilinx/recipes-bsp/u-boot/xen-boot-cmd.inc | 12 ++++++++++++
> 1 file changed, 12 insertions(+)
>
> diff --git a/dynamic-layers/xilinx/recipes-bsp/u-boot/xen-boot-cmd.inc b/dynamic-layers/xilinx/recipes-bsp/u-boot/xen-boot-cmd.inc
> index b2b76120..6d113c9a 100644
> --- a/dynamic-layers/xilinx/recipes-bsp/u-boot/xen-boot-cmd.inc
> +++ b/dynamic-layers/xilinx/recipes-bsp/u-boot/xen-boot-cmd.inc
> @@ -36,3 +36,15 @@ XEN_CMDLINE_APPEND ?= ""
> # Specify the max number of vcpus for dom0
> # Example usage: DOM0_MAX_VCPUS = "2" or DOM0_MAX_VCPUS = "2-4"
> DOM0_MAX_VCPUS ?= "1"
> +
> +# Add xen variables as addendum.
> +# Variable SCRIPT_SED_ADDENDUM id defined in meta-xilinx and set to null by
> +# default and enable only for xen builds.
s/id/is/
This really entangles the meta-virt dynamic layer with the xilinx
layers. You need to have an understanding of one, to really understand
the other.
If we are setting or appending to a variable, it really should be
defined in meta-virtualization.
Is there a way to move the functions that are using this variable
into the main Xen meta-virt recipes, in such a way that this is
a generic way to customize the boot ?
Bruce
> +SCRIPT_SED_ADDENDUM += "-e 's/@@XEN_IMAGE_NAME@@/${XEN_IMAGE_NAME}/' \
> + -e 's/@@XEN_OFFSET@@/${XEN_OFFSET}/' \
> + -e 's/@@XEN_LOAD_ADDRESS@@/${XEN_LOAD_ADDRESS}/' \
> + -e 's/@@DOM0_MEM@@/${DOM0_MEM}/' \
> + -e 's/@@DOM0_MAX_VCPUS@@/${DOM0_MAX_VCPUS}/' \
> + -e 's:@@XEN_SERIAL_CONSOLES@@:${XEN_SERIAL_CONSOLES}:' \
> + -e 's:@@XEN_CMDLINE_APPEND@@:${XEN_CMDLINE_APPEND}:' \
> +"
> \ No newline at end of file
> --
> 2.34.1
>
next prev parent reply other threads:[~2023-08-27 13:23 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-25 18:18 [meta-virtualization][master][PATCH 0/2] Enable xen boot script using variable Sandeep Gundlupet Raju
2023-08-25 18:18 ` [meta-virtualization][master][PATCH 1/2] xen-boot-cmd: Add xen variable as addendum Sandeep Gundlupet Raju
2023-08-27 13:23 ` Bruce Ashfield [this message]
2023-09-06 21:31 ` Gundlupet Raju, Sandeep
2023-09-08 6:24 ` Christopher Clark
2023-08-25 18:18 ` [meta-virtualization][master][PATCH 2/2] u-boot-xlnx-scr: Enable xen boot script using variable Sandeep Gundlupet Raju
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=ZOtOQIeCfldaixvL@gmail.com \
--to=bruce.ashfield@gmail.com \
--cc=christopher.w.clark@gmail.com \
--cc=mark.hatle@kernel.crashing.org \
--cc=meta-virtualization@lists.yoctoproject.org \
--cc=sandeep.gundlupet-raju@amd.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 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.