u-boot-xlnx-scr.bbappend: Enable xen boot script using variable

Xen related boot script offset was override from
meta-virtualization for non xen builds.

ERROR: RD image overlaps OS image (OS=0xe00000..0x2610000)

Add to include xen boot script only if ENABLE_XEN_UBOOT_SCR variable
set from the configuration file and xen enabled in DISTRO_FEATURES to
avoid override.

Signed-off-by: John Vicky Vykuntapu <johnvicky.vykuntapu@amd.com>
Signed-off-by: Mark Hatle <mark.hatle@amd.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
This commit is contained in:
John Vicky Vykuntapu 2024-09-11 12:20:44 -05:00 committed by Bruce Ashfield
parent 30e5cb1ae8
commit c2d3d5001a

View File

@ -1,2 +1,4 @@
# Include xen-boot-cmd.inc only if xen distro features is enabled.
include ${@bb.utils.contains('DISTRO_FEATURES', 'xen', 'xen-boot-cmd.inc', '', d)}
# 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 ${@'xen-boot-cmd.inc' if d.getVar('ENABLE_XEN_UBOOT_SCR') == '1' and bb.utils.contains('DISTRO_FEATURES', 'xen', true, false, d) else ''}