[2024.2][PATCH v2] u-boot-xlnx-scr.bbappend: Enable xen boot script using variable
From: John Vicky Vykuntapu <[email protected]>
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.
---
(v1 was directly sent to Bruce)
Update in v2: Added "and" condition between xen distro enable and the ENABLE_XEN_UBOOT_SCR variable is set from the configuration file
--- .../xilinx/recipes-bsp/u-boot/u-boot-xlnx-scr.bbappend | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
dynamic-layers/xilinx/recipes-bsp/u-boot/u-boot-xlnx-scr.bbappend +4 -2
@@ -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 ''}
Signature · 1 line
2.44.1
Quoted 11 lines · Mark Hatle
From: John Vicky Vykuntapu <[email protected]>
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_SCRvariable set from the configuration file and xen enabled inDISTRO_FEATURESto avoid override.
Quoted 8 lines
Signed-off-by John Vicky Vykuntapu <[email protected]>Signed-off-by Mark Hatle <[email protected]>---
(v1 was directly sent to Bruce)Update in v2: Added "and" condition between xen distro enable and the
ENABLE_XEN_UBOOT_SCRvariable is set from the configuration file
Is this for master ? or master + a -stable branch ?
Bruce
Quoted 24 lines
--- .../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 ae847cb..819a0c6 100644
dynamic-layers/xilinx/recipes-bsp/u-boot/u-boot-xlnx-scr.bbappend +0
-2@@ -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 ifENABLE_XEN_UBOOT_SCRis set from configurationdynamic-layers/xilinx/recipes-bsp/u-boot/u-boot-xlnx-scr.bbappend +3
-0+# 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 ''} --
2.44.1
Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end - "Use the force Harry" - Gandalf, Star Trek II
Sorry should be for both master and scarthgap. I've not tried it elsewhere.. I did not build it on master, only scarthgap -- but the code affected is the same in both.
--Mark
Quoted 58 lines · Bruce Ashfield
On Wed, Sep 11, 2024 at 1:21 PM Mark Hatle <[email protected] <mailto:[email protected]>> wrote:
From: John Vicky Vykuntapu <[email protected] <mailto:[email protected]>>
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_SCRvariable set from the configuration file and xen enabled inDISTRO_FEATURESto avoid override.Signed-off-by John Vicky Vykuntapu <[email protected]<mailto:[email protected]>>
Signed-off-by Mark Hatle <[email protected] <mailto:[email protected]>>---
(v1 was directly sent to Bruce)Update in v2: Added "and" condition between xen distro enable and the
ENABLE_XEN_UBOOT_SCRvariable is set from the configuration fileIs this for master ? or master + a -stable branch ?
Bruce
--- .../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 ae847cb..819a0c6 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 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 ''} -- 2.44.1Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end - "Use the force Harry" - Gandalf, Star Trek II