Skip to content

Commit

Permalink
xen-boot-cmd: Add xen variable as addendum
Browse files Browse the repository at this point in the history
For xen boot the u-boot script environment variables needs to
be complied as part of u-boot-xlnx-scr recipe. In order to duplicate
the variables definition for xen and non-xen boot make xen variables
as addendum to u-boot-xlnx-scr recipe.

Upstream-Status: Submitted [https://lists.yoctoproject.org/g/meta-virtualization/message/8233]

Signed-off-by: Sandeep Gundlupet Raju <[email protected]>
Signed-off-by: Mark Hatle <[email protected]>

Transfer from 2024.2 fork of meta-virtualization, as this won't be in meta-virtualization
scarthgap.

Signed-off-by: Mark Hatle <[email protected]>
  • Loading branch information
mhatle committed Nov 11, 2024
1 parent b358340 commit c5bee84
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
11 changes: 11 additions & 0 deletions meta-xilinx-virtualization/recipes-bsp/u-boot/mxv-xen-boot-cmd.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# 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.
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}:' \
"
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Include xen-boot-cmd.inc only if ENABLE_XEN_UBOOT_SCR is set from configuration
# file and xen enabled in DISTRO_FEATURES.
ENABLE_XEN_UBOOT_SCR ?= ""
include ${@'mxv-xen-boot-cmd.inc' if d.getVar('ENABLE_XEN_UBOOT_SCR') == '1' and bb.utils.contains('DISTRO_FEATURES', 'xen', True, False, d) else ''}

0 comments on commit c5bee84

Please sign in to comment.