arm-bsp/linux-yocto: add recipe for v6.4 kernel
PATCH 1/2 arm-bsp/linux-yocto: add recipe for v6.4 kernel
The v6.4 kernel is needed for some platforms in meta-arm-bsp. Temporarily add it here to give those machines enough time to update to the latest version.
Signed-off-by Jon Mason <[email protected]>
--- .../recipes-kernel/linux/linux-yocto_6.4.bb | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 meta-arm-bsp/recipes-kernel/linux/linux-yocto_6.4.bb
meta-arm-bsp/recipes-kernel/linux/linux-yocto_6.4.bb new file +37 -0
@@ -0,0 +1,37 @@ +KBRANCH ?= "v6.4/standard/base" + +require recipes-kernel/linux/linux-yocto.inc + +# CVE exclusions +include recipes-kernel/linux/cve-exclusion.inc +include recipes-kernel/linux/cve-exclusion_6.4.inc + +SRCREV_machine ?= "ef91ff6a4be36037808af1ca786fdd557f265a1d" +SRCREV_meta ?= "13efe44fe9dd2626eaf6552288ea31770ec71cf1" + +# set your preferred provider of linux-yocto to 'linux-yocto-upstream', and you'll +# get the <version>/base branch, which is pure upstream -stable, and the same +# meta SRCREV as the linux-yocto-standard builds. Select your version using the +# normal PREFERRED_VERSION settings. +BBCLASSEXTEND = "devupstream:target" +SRCREV_machine:class-devupstream ?= "ae4e4fc35b4258626644c162a702e2bce2b79190" +PN:class-devupstream = "linux-yocto-upstream" +KBRANCH:class-devupstream = "v6.4/base" + +SRC_URI = "git://git.yoctoproject.org/linux-yocto.git;name=machine;branch=${KBRANCH};protocol=https \ + git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-6.4;destsuffix=${KMETA};protocol=https" + +LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" +LINUX_VERSION ?= "6.4.16" + +PV = "${LINUX_VERSION}+git" + +KMETA = "kernel-meta" +KCONF_BSP_AUDIT_LEVEL = "1" + +# Functionality flags +KERNEL_EXTRA_FEATURES ?= "features/netfilter/netfilter.scc" +KERNEL_FEATURES:append = " ${KERNEL_EXTRA_FEATURES}" +KERNEL_FEATURES:append = " ${@bb.utils.contains("TUNE_FEATURES", "mx32", " cfg/x32.scc", "", d)}" +KERNEL_FEATURES:append = " ${@bb.utils.contains("DISTRO_FEATURES", "ptest", " features/scsi/scsi-debug.scc", "", d)}" +KERNEL_FEATURES:append = " ${@bb.utils.contains("DISTRO_FEATURES", "ptest", " features/gpio/mockup.scc", "", d)}"
Signature · 1 line
2.30.2
PATCH 2/2 arm/linux-yocto: remove defconfig patch
Patch was accepted upstream and has been pulled back the 6.5 and 6.1 kernels. So, it is no longer needed here.
Signed-off-by Jon Mason <[email protected]>
--- ...g-remove-CONFIG_COMMON_CLK_NPCM8XX-y.patch | 50 ------------------- .../linux/linux-yocto%.bbappend | 5 -- 2 files changed, 55 deletions(-) delete mode 100644 meta-arm/recipes-kernel/linux/files/aarch64/0001-arm64-defconfig-remove-CONFIG_COMMON_CLK_NPCM8XX-y.patch
meta-arm/recipes-kernel/linux/files/aarch64/0001-arm64-defconfig-remove-CONFIG_COMMON_CLK_NPCM8XX-y.patch deleted +0 -50
@@ -1,50 +0,0 @@ -From 94a5e7ffe5855272708a94190820534c4f51bdd8 Mon Sep 17 00:00:00 2001 -From: Mikko Rapeli <[email protected]> -Date: Tue, 15 Aug 2023 10:36:56 +0300 -Subject: [PATCH] arm64: defconfig: remove CONFIG_COMMON_CLK_NPCM8XX=y - -There is no code for this config option and enabling it in defconfig -causes warnings from tools which are detecting unused and obsolete -kernel config flags since the flag will be completely missing from -effective build config after "make olddefconfig". - -Fixes yocto kernel recipe build time warning: - -WARNING: [kernel config]: This BSP contains fragments with warnings: -... -[INFO]: the following symbols were not found in the active -configuration: - - CONFIG_COMMON_CLK_NPCM8XX - -The flag was added with commit 45472f1e5348c7b755b4912f2f529ec81cea044b -v5.19-rc4-15-g45472f1e5348 so 6.1 and 6.4 stable kernel trees are -affected. - -Fixes: 45472f1e5348c7b755b4912f2f529ec81cea044b ("arm64: defconfig: Add Nuvoton NPCM family support") -Cc: [email protected] -Cc: Bruce Ashfield <[email protected]> -Cc: Jon Mason <[email protected]> -Cc: Jon Mason <[email protected]> -Cc: Ross Burton <[email protected]> -Cc: Arnd Bergmann <[email protected]> -Signed-off-by: Mikko Rapeli <[email protected]> - -Signed-off-by: Jon Mason <[email protected]> -Upstream-Status: Submitted [https://lists.infradead.org/pipermail/linux-arm-kernel/2023-August/859760.html] - ---- - arch/arm64/configs/defconfig | 1 - - 1 file changed, 1 deletion(-) - -diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig -index 0777bcae9104..1cf24537fda2 100644 ---- a/arch/arm64/configs/defconfig -+++ b/arch/arm64/configs/defconfig -@@ -1146,7 +1146,6 @@ CONFIG_COMMON_CLK_S2MPS11=y - CONFIG_COMMON_CLK_PWM=y - CONFIG_COMMON_CLK_RS9_PCIE=y - CONFIG_COMMON_CLK_VC5=y --CONFIG_COMMON_CLK_NPCM8XX=y - CONFIG_COMMON_CLK_BD718XX=m - CONFIG_CLK_RASPBERRYPI=m - CONFIG_CLK_IMX8MM=y
meta-arm/recipes-kernel/linux/linux-yocto%.bbappend +0 -5
@@ -1,10 +1,5 @@ ARMFILESPATHS := "${THISDIR}/files:" -FILESEXTRAPATHS:prepend:aarch64 = "${ARMFILESPATHS}" -SRC_URI:append:aarch64 = " \ - file://0001-arm64-defconfig-remove-CONFIG_COMMON_CLK_NPCM8XX-y.patch \ - " - COMPATIBLE_MACHINE:generic-arm64 = "generic-arm64" FILESEXTRAPATHS:prepend:generic-arm64 = "${ARMFILESPATHS}" SRC_URI:append:generic-arm64 = " \
Signature · 1 line
2.30.2
Jon Mason
AppliedQuoted 5 lines · Jon Mason
The v6.4 kernel is needed for some platforms in meta-arm-bsp. Temporarily add it here to give those machines enough time to update to the latest version.
Applied, thanks!
[1/2] arm-bsp/linux-yocto: add recipe for v6.4 kernel
commit: 07dbfed721a571d45a07c55ad7464d4b5fd26465
[2/2] arm/linux-yocto: remove defconfig patch
commit: 86e17cf0737c62e8a610d060a430d5d808a7b832Best regards,
Signature · 1 line
Jon Mason <[email protected]>