From d82cc67a23f5599367a27252c715ef5b13675736 Mon Sep 17 00:00:00 2001 From: Christopher Clark Date: Sat, 24 Apr 2021 01:30:58 -0700 Subject: xen, rpi4, linux-yocto: enable linux-yocto 5.10 for RPi4 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 Signed-off-by: Bruce Ashfield --- .../raspberrypi/recipes-kernel/linux/linux-yocto-dev.bbappend | 6 ++---- .../raspberrypi/recipes-kernel/linux/linux-yocto_5.10.bbappend | 6 ++++++ .../raspberrypi/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 (limited to 'dynamic-layers/raspberrypi') 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 2a0416f7..8381e447 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 00000000..af92493d --- /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 00000000..e8c120d4 --- /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)}" -- cgit v1.2.3-54-g00ecf