diff options
author | Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com> | 2024-12-11 18:19:43 -0700 |
---|---|---|
committer | Mark Hatle <mark.hatle@amd.com> | 2025-03-30 14:16:06 -0600 |
commit | 1cc51d3ff4286397fc7dfe37957cfb2d96092c78 (patch) | |
tree | b458d7f2dcaae9451a0d3311eb4e27352a0c3e5b | |
parent | 132f93718841f4b177c79a953075e6c038cdc0f3 (diff) | |
download | meta-xilinx-1cc51d3ff4286397fc7dfe37957cfb2d96092c78.tar.gz |
u-boot-xlnx-scr: Enable addendum if BOOTMODE is xen
Enable SCRIPT_SED_ADDENDUM if BOOTMODE is set to xen by including
mxv-xen-boot-cmd inclusion file to u-boot-xlnx-scr bbappend.
Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com>
Signed-off-by: Mark Hatle <mark.hatle@amd.com>
-rw-r--r-- | meta-xilinx-virtualization/recipes-bsp/u-boot/mxv-xen-boot-cmd.inc | 2 | ||||
-rw-r--r-- | meta-xilinx-virtualization/recipes-bsp/u-boot/u-boot-xlnx-scr.bbappend | 6 |
2 files changed, 3 insertions, 5 deletions
diff --git a/meta-xilinx-virtualization/recipes-bsp/u-boot/mxv-xen-boot-cmd.inc b/meta-xilinx-virtualization/recipes-bsp/u-boot/mxv-xen-boot-cmd.inc index 81f9c5f2..7330bfd2 100644 --- a/meta-xilinx-virtualization/recipes-bsp/u-boot/mxv-xen-boot-cmd.inc +++ b/meta-xilinx-virtualization/recipes-bsp/u-boot/mxv-xen-boot-cmd.inc | |||
@@ -1,5 +1,5 @@ | |||
1 | # Add xen variables as addendum. | 1 | # Add xen variables as addendum. |
2 | # Variable SCRIPT_SED_ADDENDUM id defined in meta-xilinx and set to null by | 2 | # Variable SCRIPT_SED_ADDENDUM is defined in meta-xilinx and set to null by |
3 | # default and enable only for xen builds. | 3 | # default and enable only for xen builds. |
4 | SCRIPT_SED_ADDENDUM += "-e 's/@@XEN_IMAGE_NAME@@/${XEN_IMAGE_NAME}/' \ | 4 | SCRIPT_SED_ADDENDUM += "-e 's/@@XEN_IMAGE_NAME@@/${XEN_IMAGE_NAME}/' \ |
5 | -e 's/@@XEN_OFFSET@@/${XEN_OFFSET}/' \ | 5 | -e 's/@@XEN_OFFSET@@/${XEN_OFFSET}/' \ |
diff --git a/meta-xilinx-virtualization/recipes-bsp/u-boot/u-boot-xlnx-scr.bbappend b/meta-xilinx-virtualization/recipes-bsp/u-boot/u-boot-xlnx-scr.bbappend index c8a21b3b..528cd834 100644 --- a/meta-xilinx-virtualization/recipes-bsp/u-boot/u-boot-xlnx-scr.bbappend +++ b/meta-xilinx-virtualization/recipes-bsp/u-boot/u-boot-xlnx-scr.bbappend | |||
@@ -1,5 +1,3 @@ | |||
1 | # Include xen-boot-cmd.inc only if ENABLE_XEN_UBOOT_SCR is set from configuration | 1 | # Include mxv-xen-boot-cmd.inc only if BOOTMODE = "xen" is set from configuration |
2 | # file and xen enabled in DISTRO_FEATURES. | 2 | # file and xen enabled in DISTRO_FEATURES. |
3 | ENABLE_XEN_UBOOT_SCR ?= "" | 3 | include ${@'mxv-xen-boot-cmd.inc' if d.getVar('BOOTMODE') == 'xen' and bb.utils.contains('DISTRO_FEATURES', 'xen', True, False, d) else ''} |
4 | 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 ''} | ||
5 | |||