By default xen DISTRO_FEATURES are enabled for ZynqMP and Versal
for non xen builds KERNEL and DEVICETREE boot script offset was
override from meta-virtualization. Hence enable xen boot script
using variable ENABLE_XEN_UBOOT_SCR from configuration file only
for xen builds.

Signed-off-by: Sandeep Gundlupet Raju <[email protected]>
---
 .../xilinx/recipes-bsp/u-boot/u-boot-xlnx-scr.bbappend      | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/dynamic-layers/xilinx/recipes-bsp/u-boot/u-boot-xlnx-scr.bbappend 
b/dynamic-layers/xilinx/recipes-bsp/u-boot/u-boot-xlnx-scr.bbappend
index ae847cbc..07685117 100644
--- a/dynamic-layers/xilinx/recipes-bsp/u-boot/u-boot-xlnx-scr.bbappend
+++ b/dynamic-layers/xilinx/recipes-bsp/u-boot/u-boot-xlnx-scr.bbappend
@@ -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.
+ENABLE_XEN_UBOOT_SCR ?= ""
+include ${@'xen-boot-cmd.inc' if d.getVar('ENABLE_XEN_UBOOT_SCR') == '1' else 
''}
-- 
2.34.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#8235): 
https://lists.yoctoproject.org/g/meta-virtualization/message/8235
Mute This Topic: https://lists.yoctoproject.org/mt/100961345/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to