From f87d85fa2ea11cba4f7c528701d1d9e04fa73366 Mon Sep 17 00:00:00 2001 From: Marek Belisko Date: Fri, 3 Feb 2023 13:32:36 +0100 Subject: [PATCH] linux-mainline: Add handling for 6.x kernel Signed-off-by: Marek Belisko --- recipes-kernel/linux/linux-mainline.inc | 5 ++++- recipes-kernel/linux/linux-mainline_6.1.9.bb | 7 +++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 recipes-kernel/linux/linux-mainline_6.1.9.bb diff --git a/recipes-kernel/linux/linux-mainline.inc b/recipes-kernel/linux/linux-mainline.inc index e03fa62..217438e 100644 --- a/recipes-kernel/linux/linux-mainline.inc +++ b/recipes-kernel/linux/linux-mainline.inc @@ -20,7 +20,10 @@ KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT}" S = "${WORKDIR}/linux-${PV}" -SRC_URI = "https://www.kernel.org/pub/linux/kernel/v5.x/linux-${PV}.tar.xz \ +# get release version 5.x or 6.x based on version +KRELEASE = "${@d.getVar('PV', True).split('.')[0]}" + +SRC_URI = "https://www.kernel.org/pub/linux/kernel/v${KRELEASE}.x/linux-${PV}.tar.xz \ file://0001-dts-orange-pi-zero-Add-wifi-support.patch \ file://0002-dts-nanopi-neo-air-add-camera.patch \ file://0003-dts-allwinner-bananapi-m2-zreo-Enforce-consistent-MM.patch \ diff --git a/recipes-kernel/linux/linux-mainline_6.1.9.bb b/recipes-kernel/linux/linux-mainline_6.1.9.bb new file mode 100644 index 0000000..f7caf24 --- /dev/null +++ b/recipes-kernel/linux/linux-mainline_6.1.9.bb @@ -0,0 +1,7 @@ +require linux-mainline.inc + +DESCRIPTION = "Mainline Longterm Linux kernel" + +LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" + +SRC_URI[sha256sum] = "d60cf185693c386e7acd9f3eb3a94ae30ffbfee0a9447a20e83711e0bdf5922b"