Added to the raspberrypi dynamic layer for use with Xen as
preparation for switching to it as the default preference.

Signed-off-by: Christopher Clark <[email protected]>
---
 .../recipes-kernel/linux/linux-yocto-dev.bbappend           | 6 ++----
 .../recipes-kernel/linux/linux-yocto_5.10.bbappend          | 6 ++++++
 .../recipes-kernel/linux/linux-yocto_xen-rpi.inc            | 6 ++++++
 3 files changed, 14 insertions(+), 4 deletions(-)
 create mode 100644 
dynamic-layers/raspberrypi/recipes-kernel/linux/linux-yocto_5.10.bbappend
 create mode 100644 
dynamic-layers/raspberrypi/recipes-kernel/linux/linux-yocto_xen-rpi.inc

diff --git 
a/dynamic-layers/raspberrypi/recipes-kernel/linux/linux-yocto-dev.bbappend 
b/dynamic-layers/raspberrypi/recipes-kernel/linux/linux-yocto-dev.bbappend
index 2a0416f..8381e44 100644
--- a/dynamic-layers/raspberrypi/recipes-kernel/linux/linux-yocto-dev.bbappend
+++ b/dynamic-layers/raspberrypi/recipes-kernel/linux/linux-yocto-dev.bbappend
@@ -1,10 +1,8 @@
 # For a Xen-enabled distro on the Raspberry Pi, override the contents of 
cmdline.txt
 # with Xen-on-ARM-specific command line options
 
-DEFAULT_CMDLINE := "${CMDLINE}"
-XEN_LINUX_CMDLINE ?= "console=hvc0 clk_ignore_unused earlycon=xenboot debug 
root=/dev/mmcblk0p2 rootwait"
-CMDLINE = "${@bb.utils.contains('DISTRO_FEATURES', 'xen', 
'${XEN_LINUX_CMDLINE}', '${DEFAULT_CMDLINE}', d)}"
-
 KBRANCH_raspberrypi4-64 ?= "standard/bcm-2xxx-rpi"
 KMACHINE_raspberrypi4-64 ?= "bcm-2xxx-rpi4"
 COMPATIBLE_MACHINE_raspberrypi4-64 = "(raspberrypi4-64)"
+
+require linux-yocto_xen-rpi.inc
diff --git 
a/dynamic-layers/raspberrypi/recipes-kernel/linux/linux-yocto_5.10.bbappend 
b/dynamic-layers/raspberrypi/recipes-kernel/linux/linux-yocto_5.10.bbappend
new file mode 100644
index 0000000..af92493
--- /dev/null
+++ b/dynamic-layers/raspberrypi/recipes-kernel/linux/linux-yocto_5.10.bbappend
@@ -0,0 +1,6 @@
+# Enable use of the linux-yocto 5.10 kernel for the Raspberry Pi 4
+KBRANCH_raspberrypi4-64 ?= "v5.10/standard/bcm-2xxx-rpi"
+KMACHINE_raspberrypi4-64 ?= "bcm-2xxx-rpi4"
+COMPATIBLE_MACHINE_raspberrypi4-64 = "(raspberrypi4-64)"
+
+require linux-yocto_xen-rpi.inc
diff --git 
a/dynamic-layers/raspberrypi/recipes-kernel/linux/linux-yocto_xen-rpi.inc 
b/dynamic-layers/raspberrypi/recipes-kernel/linux/linux-yocto_xen-rpi.inc
new file mode 100644
index 0000000..e8c120d
--- /dev/null
+++ b/dynamic-layers/raspberrypi/recipes-kernel/linux/linux-yocto_xen-rpi.inc
@@ -0,0 +1,6 @@
+# For a Xen-enabled distro on the Raspberry Pi, override the contents of 
cmdline.txt
+# with Xen-on-ARM-specific command line options
+
+DEFAULT_CMDLINE := "${CMDLINE}"
+XEN_LINUX_CMDLINE ?= "console=hvc0 clk_ignore_unused earlycon=xenboot debug 
root=/dev/mmcblk0p2 rootwait"
+CMDLINE = "${@bb.utils.contains('DISTRO_FEATURES', 'xen', 
'${XEN_LINUX_CMDLINE}', '${DEFAULT_CMDLINE}', d)}"
-- 
2.25.1

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

Reply via email to