* [meta-rockchip][PATCH 1/2] kernel: only add the rocket NPU fragment on rk3588s
@ 2026-11-27 11:40 Trevor Woerner
2026-11-27 11:40 ` [meta-rockchip][PATCH 2/2] kernel: build the rocket NPU driver as a module Trevor Woerner
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Trevor Woerner @ 2026-11-27 11:40 UTC (permalink / raw)
To: yocto-patches; +Cc: Quentin Schulz
The fragment was appended for every rockchip machine, so setting
ENABLE_UPSTREAM_RKNPU made the kernel config audit warn on all the
others: the driver only supports RK3588's NPU, and on 32-bit machines it
cannot be enabled at all. Use the rk3588s override, as the mesa
PACKAGECONFIG already does.
Cc: Quentin Schulz <quentin.schulz@cherry.de>
AI-Generated: codex/claude-opus 5.5 (xhigh)
Signed-off-by: Trevor Woerner <twoerner@gmail.com>
---
recipes-kernel/linux/linux-rockchip.inc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/recipes-kernel/linux/linux-rockchip.inc b/recipes-kernel/linux/linux-rockchip.inc
index f91492ee7968..006d9f0ecf14 100644
--- a/recipes-kernel/linux/linux-rockchip.inc
+++ b/recipes-kernel/linux/linux-rockchip.inc
@@ -37,4 +37,4 @@ SRC_URI:append:nanopi-r4s = " file://realtek-r8169.cfg"
KERNEL_FEATURES:append:rockchip = " bsp/rockchip/lttng.scc"
KERNEL_FEATURES:append:rockchip:arm = " bsp/rockchip/remove-non-rockchip-arch-arm.scc"
KERNEL_FEATURES:append:rockchip:aarch64 = " bsp/rockchip/remove-non-rockchip-arch-arm64.scc"
-KERNEL_FEATURES:append:rockchip = "${@' bsp/rockchip/rocket-npu.scc' if bb.utils.to_boolean(d.getVar('ENABLE_UPSTREAM_RKNPU'), False) else ''}"
+KERNEL_FEATURES:append:rk3588s = "${@' bsp/rockchip/rocket-npu.scc' if bb.utils.to_boolean(d.getVar('ENABLE_UPSTREAM_RKNPU'), False) else ''}"
--
2.50.0.173.g8b6f19ccfc3a
^ permalink raw reply related [flat|nested] 8+ messages in thread* [meta-rockchip][PATCH 2/2] kernel: build the rocket NPU driver as a module 2026-11-27 11:40 [meta-rockchip][PATCH 1/2] kernel: only add the rocket NPU fragment on rk3588s Trevor Woerner @ 2026-11-27 11:40 ` Trevor Woerner 2026-11-27 12:03 ` Quentin Schulz 2026-12-01 11:49 ` Trevor Woerner 2026-11-27 11:52 ` [meta-rockchip][PATCH 1/2] kernel: only add the rocket NPU fragment on rk3588s Quentin Schulz 2026-12-01 11:47 ` [meta-rockchip][PATCH v2] rknpu: gate the NPU support on a machine feature Trevor Woerner 2 siblings, 2 replies; 8+ messages in thread From: Trevor Woerner @ 2026-11-27 11:40 UTC (permalink / raw) To: yocto-patches; +Cc: Quentin Schulz DRM_ACCEL_ROCKET depends on DRM, which the arm64 defconfig builds as a module, so the fragment's =y always ended up as =m and the kernel config audit warned about the mismatch. Ask for =m. Cc: Quentin Schulz <quentin.schulz@cherry.de> AI-Generated: codex/claude-opus 5.5 (xhigh) Signed-off-by: Trevor Woerner <twoerner@gmail.com> --- .../linux-rockchip/rockchip-kmeta/bsp/rockchip/rocket-npu.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes-kernel/linux/linux-rockchip/rockchip-kmeta/bsp/rockchip/rocket-npu.cfg b/recipes-kernel/linux/linux-rockchip/rockchip-kmeta/bsp/rockchip/rocket-npu.cfg index 9f6af63928c6..18dcdc469904 100644 --- a/recipes-kernel/linux/linux-rockchip/rockchip-kmeta/bsp/rockchip/rocket-npu.cfg +++ b/recipes-kernel/linux/linux-rockchip/rockchip-kmeta/bsp/rockchip/rocket-npu.cfg @@ -1,2 +1,2 @@ CONFIG_DRM_ACCEL=y -CONFIG_DRM_ACCEL_ROCKET=y +CONFIG_DRM_ACCEL_ROCKET=m -- 2.50.0.173.g8b6f19ccfc3a ^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [meta-rockchip][PATCH 2/2] kernel: build the rocket NPU driver as a module 2026-11-27 11:40 ` [meta-rockchip][PATCH 2/2] kernel: build the rocket NPU driver as a module Trevor Woerner @ 2026-11-27 12:03 ` Quentin Schulz 2026-12-01 11:49 ` Trevor Woerner 1 sibling, 0 replies; 8+ messages in thread From: Quentin Schulz @ 2026-11-27 12:03 UTC (permalink / raw) To: Trevor Woerner, yocto-patches On 11/27/26 12:40 PM, Trevor Woerner wrote: > DRM_ACCEL_ROCKET depends on DRM, which the arm64 defconfig builds as a > module, so the fragment's =y always ended up as =m and the kernel config > audit warned about the mismatch. Ask for =m. > > Cc: Quentin Schulz <quentin.schulz@cherry.de> > AI-Generated: codex/claude-opus 5.5 (xhigh) > Signed-off-by: Trevor Woerner <twoerner@gmail.com> Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de> Thanks! Quentin ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [meta-rockchip][PATCH 2/2] kernel: build the rocket NPU driver as a module 2026-11-27 11:40 ` [meta-rockchip][PATCH 2/2] kernel: build the rocket NPU driver as a module Trevor Woerner 2026-11-27 12:03 ` Quentin Schulz @ 2026-12-01 11:49 ` Trevor Woerner 1 sibling, 0 replies; 8+ messages in thread From: Trevor Woerner @ 2026-12-01 11:49 UTC (permalink / raw) To: yocto-patches; +Cc: Quentin Schulz On Fri 2026-11-27 @ 06:40:49 AM, Trevor Woerner wrote: > DRM_ACCEL_ROCKET depends on DRM, which the arm64 defconfig builds as a > module, so the fragment's =y always ended up as =m and the kernel config > audit warned about the mismatch. Ask for =m. > > Cc: Quentin Schulz <quentin.schulz@cherry.de> > AI-Generated: codex/claude-opus 5.5 (xhigh) > Signed-off-by: Trevor Woerner <twoerner@gmail.com> > --- > .../linux-rockchip/rockchip-kmeta/bsp/rockchip/rocket-npu.cfg | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Applied to meta-rockchip, master branch. > diff --git a/recipes-kernel/linux/linux-rockchip/rockchip-kmeta/bsp/rockchip/rocket-npu.cfg b/recipes-kernel/linux/linux-rockchip/rockchip-kmeta/bsp/rockchip/rocket-npu.cfg > index 9f6af63928c6..18dcdc469904 100644 > --- a/recipes-kernel/linux/linux-rockchip/rockchip-kmeta/bsp/rockchip/rocket-npu.cfg > +++ b/recipes-kernel/linux/linux-rockchip/rockchip-kmeta/bsp/rockchip/rocket-npu.cfg > @@ -1,2 +1,2 @@ > CONFIG_DRM_ACCEL=y > -CONFIG_DRM_ACCEL_ROCKET=y > +CONFIG_DRM_ACCEL_ROCKET=m > -- > 2.50.0.173.g8b6f19ccfc3a > ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [meta-rockchip][PATCH 1/2] kernel: only add the rocket NPU fragment on rk3588s 2026-11-27 11:40 [meta-rockchip][PATCH 1/2] kernel: only add the rocket NPU fragment on rk3588s Trevor Woerner 2026-11-27 11:40 ` [meta-rockchip][PATCH 2/2] kernel: build the rocket NPU driver as a module Trevor Woerner @ 2026-11-27 11:52 ` Quentin Schulz 2026-11-27 12:11 ` Trevor Woerner 2026-12-01 11:47 ` [meta-rockchip][PATCH v2] rknpu: gate the NPU support on a machine feature Trevor Woerner 2 siblings, 1 reply; 8+ messages in thread From: Quentin Schulz @ 2026-11-27 11:52 UTC (permalink / raw) To: Trevor Woerner, yocto-patches Hi Trevor, On 11/27/26 12:40 PM, Trevor Woerner wrote: > The fragment was appended for every rockchip machine, so setting No? It's clearly only added when you set ENABLE_UPSTREAM_RKNPU boolean. Don't set it for SoCs that don't support it? > ENABLE_UPSTREAM_RKNPU made the kernel config audit warn on all the > others: the driver only supports RK3588's NPU, and on 32-bit machines it > cannot be enabled at all. Use the rk3588s override, as the mesa > PACKAGECONFIG already does. > Mesa probably should be using :rockchip as well. The knob is enough. Otherwise every time there'll be a new SoC supported by Rocket, we'll need to enable ENABLE_UPSTREAM_RKNPU (or document it's supported) in the SoC .inc file, then update linux-rockchip.inc as well as mesa.bbappend to add an SoC-specific override, which is totally unnecessary. The same logic applies to the stateless VPU for example (c.f. ENABLE_STATELESS_VPU_GST). We probably also should have a kernel config fragment to enable the appropriate stateless video codecs in the kernel (hantro, rkvdec, rkvdec2, ...). > Cc: Quentin Schulz <quentin.schulz@cherry.de> > AI-Generated: codex/claude-opus 5.5 (xhigh) > Signed-off-by: Trevor Woerner <twoerner@gmail.com> > --- > recipes-kernel/linux/linux-rockchip.inc | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/recipes-kernel/linux/linux-rockchip.inc b/recipes-kernel/linux/linux-rockchip.inc > index f91492ee7968..006d9f0ecf14 100644 > --- a/recipes-kernel/linux/linux-rockchip.inc > +++ b/recipes-kernel/linux/linux-rockchip.inc > @@ -37,4 +37,4 @@ SRC_URI:append:nanopi-r4s = " file://realtek-r8169.cfg" > KERNEL_FEATURES:append:rockchip = " bsp/rockchip/lttng.scc" > KERNEL_FEATURES:append:rockchip:arm = " bsp/rockchip/remove-non-rockchip-arch-arm.scc" > KERNEL_FEATURES:append:rockchip:aarch64 = " bsp/rockchip/remove-non-rockchip-arch-arm64.scc" > -KERNEL_FEATURES:append:rockchip = "${@' bsp/rockchip/rocket-npu.scc' if bb.utils.to_boolean(d.getVar('ENABLE_UPSTREAM_RKNPU'), False) else ''}" > +KERNEL_FEATURES:append:rk3588s = "${@' bsp/rockchip/rocket-npu.scc' if bb.utils.to_boolean(d.getVar('ENABLE_UPSTREAM_RKNPU'), False) else ''}" ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [meta-rockchip][PATCH 1/2] kernel: only add the rocket NPU fragment on rk3588s 2026-11-27 11:52 ` [meta-rockchip][PATCH 1/2] kernel: only add the rocket NPU fragment on rk3588s Quentin Schulz @ 2026-11-27 12:11 ` Trevor Woerner 2026-11-27 12:32 ` [yocto-patches] " Quentin Schulz 0 siblings, 1 reply; 8+ messages in thread From: Trevor Woerner @ 2026-11-27 12:11 UTC (permalink / raw) To: Quentin Schulz; +Cc: yocto-patches On Fri 2026-11-27 @ 12:52:49 PM, Quentin Schulz wrote: > Hi Trevor, > > On 11/27/26 12:40 PM, Trevor Woerner wrote: > > The fragment was appended for every rockchip machine, so setting > > No? It's clearly only added when you set ENABLE_UPSTREAM_RKNPU boolean. > Don't set it for SoCs that don't support it? I just performed a build test where I set ENABLE_UPSTREAM_RKNPU = "1" in conf/local.conf then build for every MACHINE in meta-rockchip. All of them show either: WARNING: linux-yocto-7.2.15+git-r0 do_kernel_configcheck: [kernel config]: specified values did not make it into the kernel's final configuration: [NOTE]: 'CONFIG_DRM_ACCEL_ROCKET' last val (y) and .config val (n) do not match [INFO]: CONFIG_DRM_ACCEL_ROCKET : n [INFO]: raw config text: config DRM_ACCEL_ROCKET tristate "Rocket (support for Rockchip NPUs)" select DRM_SCHED select DRM_GEM_SHMEM_HELPER depends on DRM_ACCEL && ((ARCH_ROCKCHIP && ARM64) || COMPILE_TEST) && (ROCKCHIP_IOMMU || COMPILE_TEST) && MMU && DRM help Choose this option if you have a Rockchip SoC that contains a compatible Neural Processing Unit (NPU), such as the RK3588. Called by Rockchip either RKNN or RKNPU, it accelerates inference of neural networks. The interface exposed to userspace is described in include/uapi/drm/rocket_accel.h and is used by the Rocket userspace driver in Mesa3D. If unsure, say N. To compile this driver as a module, choose M here: the module will be called rocket. Config 'DRM_ACCEL_ROCKET' has the following Direct dependencies (DRM_ACCEL_ROCKET=n): DRM_ACCEL(=y) && (ARCH_ROCKCHIP(=y) && ARM64(undefined/n)) || COMPILE_TEST(=n) (=n) && ROCKCHIP_IOMMU(=y) || COMPILE_TEST(=n) (=y) && MMU(=y) && DRM(=y) Parent dependencies are: ARCH_ROCKCHIP [y] MMU [y] DRM_ACCEL [y] COMPILE_TEST [n] DRM [y] ROCKCHIP_IOMMU [y] ARM64 [ARM64] [INFO]: config 'CONFIG_DRM_ACCEL_ROCKET' was set, but it wasn't assignable, check (parent) dependencies for the 32-bit MACHINEs or WARNING: linux-yocto-7.2.15+git-r0 do_kernel_configcheck: [kernel config]: specified values did not make it into the kernel's final configuration: [NOTE]: 'CONFIG_DRM_ACCEL_ROCKET' last val (y) and .config val (m) do not match [INFO]: CONFIG_DRM_ACCEL_ROCKET : m ## .config: 5561 :configs//bsp/rockchip/rocket-npu.cfg (y) [INFO]: raw config text: config DRM_ACCEL_ROCKET tristate "Rocket (support for Rockchip NPUs)" select DRM_SCHED select DRM_GEM_SHMEM_HELPER depends on DRM_ACCEL && ((ARCH_ROCKCHIP && ARM64) || COMPILE_TEST) && (ROCKCHIP_IOMMU || COMPILE_TEST) && MMU && DRM help Choose this option if you have a Rockchip SoC that contains a compatible Neural Processing Unit (NPU), such as the RK3588. Called by Rockchip either RKNN or RKNPU, it accelerates inference of neural networks. The interface exposed to userspace is described in include/uapi/drm/rocket_accel.h and is used by the Rocket userspace driver in Mesa3D. If unsure, say N. To compile this driver as a module, choose M here: the module will be called rocket. Config 'DRM_ACCEL_ROCKET' has the following Direct dependencies (DRM_ACCEL_ROCKET=m): DRM_ACCEL(=y) && (ARCH_ROCKCHIP(=y) && ARM64(=y)) || COMPILE_TEST(=n) (=y) && ROCKCHIP_IOMMU(=y) || COMPILE_TEST(=n) (=y) && MMU(=y) && DRM(=m) Parent dependencies are: MMU [y] ARCH_ROCKCHIP [y] COMPILE_TEST [n] DRM [m] ROCKCHIP_IOMMU [y] ARM64 [y] DRM_ACCEL [y] for the 64-bit ones. > > ENABLE_UPSTREAM_RKNPU made the kernel config audit warn on all the > > others: the driver only supports RK3588's NPU, and on 32-bit machines it > > cannot be enabled at all. Use the rk3588s override, as the mesa > > PACKAGECONFIG already does. > > > > Mesa probably should be using :rockchip as well. The knob is enough. > Otherwise every time there'll be a new SoC supported by Rocket, we'll need > to enable ENABLE_UPSTREAM_RKNPU (or document it's supported) in the SoC .inc > file, then update linux-rockchip.inc as well as mesa.bbappend to add an > SoC-specific override, which is totally unnecessary. > > The same logic applies to the stateless VPU for example (c.f. > ENABLE_STATELESS_VPU_GST). We probably also should have a kernel config > fragment to enable the appropriate stateless video codecs in the kernel > (hantro, rkvdec, rkvdec2, ...). > > > Cc: Quentin Schulz <quentin.schulz@cherry.de> > > AI-Generated: codex/claude-opus 5.5 (xhigh) > > Signed-off-by: Trevor Woerner <twoerner@gmail.com> > > --- > > recipes-kernel/linux/linux-rockchip.inc | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/recipes-kernel/linux/linux-rockchip.inc b/recipes-kernel/linux/linux-rockchip.inc > > index f91492ee7968..006d9f0ecf14 100644 > > --- a/recipes-kernel/linux/linux-rockchip.inc > > +++ b/recipes-kernel/linux/linux-rockchip.inc > > @@ -37,4 +37,4 @@ SRC_URI:append:nanopi-r4s = " file://realtek-r8169.cfg" > > KERNEL_FEATURES:append:rockchip = " bsp/rockchip/lttng.scc" > > KERNEL_FEATURES:append:rockchip:arm = " bsp/rockchip/remove-non-rockchip-arch-arm.scc" > > KERNEL_FEATURES:append:rockchip:aarch64 = " bsp/rockchip/remove-non-rockchip-arch-arm64.scc" > > -KERNEL_FEATURES:append:rockchip = "${@' bsp/rockchip/rocket-npu.scc' if bb.utils.to_boolean(d.getVar('ENABLE_UPSTREAM_RKNPU'), False) else ''}" > > +KERNEL_FEATURES:append:rk3588s = "${@' bsp/rockchip/rocket-npu.scc' if bb.utils.to_boolean(d.getVar('ENABLE_UPSTREAM_RKNPU'), False) else ''}" > ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [yocto-patches] [meta-rockchip][PATCH 1/2] kernel: only add the rocket NPU fragment on rk3588s 2026-11-27 12:11 ` Trevor Woerner @ 2026-11-27 12:32 ` Quentin Schulz 0 siblings, 0 replies; 8+ messages in thread From: Quentin Schulz @ 2026-11-27 12:32 UTC (permalink / raw) To: yocto-patches On 11/27/26 1:11 PM, Trevor Woerner via yocto-patches wrote: > On Fri 2026-11-27 @ 12:52:49 PM, Quentin Schulz wrote: >> Hi Trevor, >> >> On 11/27/26 12:40 PM, Trevor Woerner wrote: >>> The fragment was appended for every rockchip machine, so setting >> >> No? It's clearly only added when you set ENABLE_UPSTREAM_RKNPU boolean. >> Don't set it for SoCs that don't support it? > > I just performed a build test where I set > > ENABLE_UPSTREAM_RKNPU = "1" > > in conf/local.conf then build for every MACHINE in meta-rockchip. All of Why would you do that? We clearly specify that ENABLE_UPSTREAM_RKNPU is only supported by RK3588, so its place is in a machine conf for an RK3588-based machine? Anything else is unsupported. If you really want to use local.conf for that (why?), then use ENABLE_UPSTREAM_RKNPU:rk3588s = "1"? Cheers, Quentin ^ permalink raw reply [flat|nested] 8+ messages in thread
* [meta-rockchip][PATCH v2] rknpu: gate the NPU support on a machine feature 2026-11-27 11:40 [meta-rockchip][PATCH 1/2] kernel: only add the rocket NPU fragment on rk3588s Trevor Woerner 2026-11-27 11:40 ` [meta-rockchip][PATCH 2/2] kernel: build the rocket NPU driver as a module Trevor Woerner 2026-11-27 11:52 ` [meta-rockchip][PATCH 1/2] kernel: only add the rocket NPU fragment on rk3588s Quentin Schulz @ 2026-12-01 11:47 ` Trevor Woerner 2 siblings, 0 replies; 8+ messages in thread From: Trevor Woerner @ 2026-12-01 11:47 UTC (permalink / raw) To: yocto-patches; +Cc: Quentin Schulz ENABLE_UPSTREAM_RKNPU added the NPU kernel fragment on every rockchip machine, so setting it for a multi-machine build made the kernel config audit warn on all those whose NPU the driver does not support. The RK3588(S) include now declares an "rknpu" machine feature, which becomes a machine override under which the kernel and mesa additions apply. The knob is then safe to set in local.conf, a board can opt out with MACHINE_FEATURES:remove, and supporting another SoC only needs the feature added to its include. Cc: Quentin Schulz <quentin.schulz@cherry.de> AI-Generated: codex/claude-opus 5.5 (xhigh) Signed-off-by: Trevor Woerner <twoerner@gmail.com> --- changes in v2: - replace the rk3588s override with an "rknpu" machine feature, so neither the kernel nor the mesa line names an SoC; v1 was "kernel: only add the rocket NPU fragment on rk3588s" - document in the README that the knob may go in local.conf --- README | 7 +++++++ conf/machine/include/rk3588s.inc | 3 +++ conf/machine/include/rockchip-defaults.inc | 2 ++ recipes-graphics/mesa/mesa.bbappend | 2 +- recipes-kernel/linux/linux-rockchip.inc | 2 +- 5 files changed, 14 insertions(+), 2 deletions(-) diff --git a/README b/README index 6d9db9b31e6e..3e4c94044235 100644 --- a/README +++ b/README @@ -234,6 +234,13 @@ Notes: ENABLE_UPSTREAM_RKNPU = "1" + in the configuration (e.g. conf/local.conf). It only takes effect on + machines whose MACHINE_FEATURES contain "rknpu", which the RK3588(S) + include sets, so it is safe to set for a multi-machine build. A board + whose Device Tree does not declare the NPU can opt out with: + + MACHINE_FEATURES:remove = "rknpu" + This requires a kernel driver (CONFIG_DRM_ACCEL_ROCKET, v6.18+) and RKNN Device Tree nodes (e.g. https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=640366d644b1e282771a09c72be37162b6eda438). diff --git a/conf/machine/include/rk3588s.inc b/conf/machine/include/rk3588s.inc index 18c2fb2ecef8..a972cd61247e 100644 --- a/conf/machine/include/rk3588s.inc +++ b/conf/machine/include/rk3588s.inc @@ -20,3 +20,6 @@ TFA_PLATFORM = "rk3588" TFA_BUILD_TARGET = "bl31" ENABLE_STATELESS_VPU_GST ?= "1" + +# NPU supported by the upstream Rocket driver (see ENABLE_UPSTREAM_RKNPU) +MACHINE_FEATURES += "rknpu" diff --git a/conf/machine/include/rockchip-defaults.inc b/conf/machine/include/rockchip-defaults.inc index 9a5cf3a4cdc7..59773ec2360c 100644 --- a/conf/machine/include/rockchip-defaults.inc +++ b/conf/machine/include/rockchip-defaults.inc @@ -1,6 +1,8 @@ # meta-rockchip default settings MACHINEOVERRIDES =. "${@bb.utils.contains('ROCKCHIP_CLOSED_TPL', '1', 'closed-tpl:', '', d)}" MACHINEOVERRIDES =. "rockchip:" +# 'rknpu' marks an NPU supported by the upstream Rocket driver +MACHINEOVERRIDES .= "${@bb.utils.contains('MACHINE_FEATURES', 'rknpu', ':rknpu', '', d)}" # kernel # RK_KERNEL_FITIMAGE needs to be set before the next "require ..." diff --git a/recipes-graphics/mesa/mesa.bbappend b/recipes-graphics/mesa/mesa.bbappend index 362eced535f9..3c1134b57539 100644 --- a/recipes-graphics/mesa/mesa.bbappend +++ b/recipes-graphics/mesa/mesa.bbappend @@ -12,7 +12,7 @@ PACKAGECONFIG:append:rockchip = "${@bb.utils.contains('MALI_DRIVER', 'panfrost', # Enable teflon for upstream RKNPU/rocket support # Requires CONFIG_DRM_ACCEL_ROCKET in Linux kernel to actually work -PACKAGECONFIG:append:rk3588s = "${@' teflon rocket' if bb.utils.to_boolean(d.getVar('ENABLE_UPSTREAM_RKNPU'), False) else ''}" +PACKAGECONFIG:append:rknpu = "${@' teflon rocket' if bb.utils.to_boolean(d.getVar('ENABLE_UPSTREAM_RKNPU'), False) else ''}" # Mali Gen10 (Valhall, supported by Panthor) requires a firmware blob RRECOMMENDS:mesa-megadriver:append:rk3588s = " linux-firmware-mali-csffw-arch108" diff --git a/recipes-kernel/linux/linux-rockchip.inc b/recipes-kernel/linux/linux-rockchip.inc index f91492ee7968..cba82aa1c886 100644 --- a/recipes-kernel/linux/linux-rockchip.inc +++ b/recipes-kernel/linux/linux-rockchip.inc @@ -37,4 +37,4 @@ SRC_URI:append:nanopi-r4s = " file://realtek-r8169.cfg" KERNEL_FEATURES:append:rockchip = " bsp/rockchip/lttng.scc" KERNEL_FEATURES:append:rockchip:arm = " bsp/rockchip/remove-non-rockchip-arch-arm.scc" KERNEL_FEATURES:append:rockchip:aarch64 = " bsp/rockchip/remove-non-rockchip-arch-arm64.scc" -KERNEL_FEATURES:append:rockchip = "${@' bsp/rockchip/rocket-npu.scc' if bb.utils.to_boolean(d.getVar('ENABLE_UPSTREAM_RKNPU'), False) else ''}" +KERNEL_FEATURES:append:rknpu = "${@' bsp/rockchip/rocket-npu.scc' if bb.utils.to_boolean(d.getVar('ENABLE_UPSTREAM_RKNPU'), False) else ''}" -- 2.50.0.173.g8b6f19ccfc3a ^ permalink raw reply related [flat|nested] 8+ messages in thread
end of thread, other threads:[~2026-12-01 11:49 UTC | newest] Thread overview: 8+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2026-11-27 11:40 [meta-rockchip][PATCH 1/2] kernel: only add the rocket NPU fragment on rk3588s Trevor Woerner 2026-11-27 11:40 ` [meta-rockchip][PATCH 2/2] kernel: build the rocket NPU driver as a module Trevor Woerner 2026-11-27 12:03 ` Quentin Schulz 2026-12-01 11:49 ` Trevor Woerner 2026-11-27 11:52 ` [meta-rockchip][PATCH 1/2] kernel: only add the rocket NPU fragment on rk3588s Quentin Schulz 2026-11-27 12:11 ` Trevor Woerner 2026-11-27 12:32 ` [yocto-patches] " Quentin Schulz 2026-12-01 11:47 ` [meta-rockchip][PATCH v2] rknpu: gate the NPU support on a machine feature Trevor Woerner
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.